@@ -193,7 +193,7 @@ psa_algorithm_t psa_key_policy_get_algorithm(const psa_key_policy_t *policy);
193
193
* the policy has been saved to persistent storage. Implementations
194
194
* may defer saving the policy until the key material is created.
195
195
* \retval #PSA_ERROR_INVALID_HANDLE
196
- * \retval #PSA_ERROR_OCCUPIED_SLOT
196
+ * \retval #PSA_ERROR_ALREADY_EXISTS
197
197
* \retval #PSA_ERROR_NOT_SUPPORTED
198
198
* \retval #PSA_ERROR_INVALID_ARGUMENT
199
199
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
@@ -285,7 +285,7 @@ psa_status_t psa_allocate_key(psa_key_handle_t *handle);
285
285
* Success. The application can now use the value of `*handle`
286
286
* to access the newly allocated key slot.
287
287
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
288
- * \retval #PSA_ERROR_EMPTY_SLOT
288
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
289
289
* \retval #PSA_ERROR_INVALID_ARGUMENT
290
290
* \p lifetime is invalid, for example #PSA_KEY_LIFETIME_VOLATILE.
291
291
* \retval #PSA_ERROR_INVALID_ARGUMENT
@@ -322,7 +322,7 @@ psa_status_t psa_open_key(psa_key_lifetime_t lifetime,
322
322
* to access the newly allocated key slot.
323
323
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
324
324
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
325
- * \retval #PSA_ERROR_OCCUPIED_SLOT
325
+ * \retval #PSA_ERROR_ALREADY_EXISTS
326
326
* There is already a key with the identifier \p id in the storage
327
327
* area designated by \p lifetime.
328
328
* \retval #PSA_ERROR_INVALID_ARGUMENT
@@ -401,7 +401,7 @@ psa_status_t psa_close_key(psa_key_handle_t handle);
401
401
* \retval #PSA_ERROR_INVALID_ARGUMENT
402
402
* The key slot is invalid,
403
403
* or the key data is not correctly formatted.
404
- * \retval #PSA_ERROR_OCCUPIED_SLOT
404
+ * \retval #PSA_ERROR_ALREADY_EXISTS
405
405
* There is already a key in the specified slot.
406
406
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
407
407
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
@@ -470,7 +470,7 @@ psa_status_t psa_destroy_key(psa_key_handle_t handle);
470
470
*
471
471
* \retval #PSA_SUCCESS
472
472
* \retval #PSA_ERROR_INVALID_HANDLE
473
- * \retval #PSA_ERROR_EMPTY_SLOT
473
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
474
474
* The handle is to a key slot which does not contain key material yet.
475
475
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
476
476
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -554,7 +554,7 @@ psa_status_t psa_get_key_information(psa_key_handle_t handle,
554
554
*
555
555
* \retval #PSA_SUCCESS
556
556
* \retval #PSA_ERROR_INVALID_HANDLE
557
- * \retval #PSA_ERROR_EMPTY_SLOT
557
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
558
558
* \retval #PSA_ERROR_NOT_PERMITTED
559
559
* \retval #PSA_ERROR_NOT_SUPPORTED
560
560
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
@@ -641,7 +641,7 @@ psa_status_t psa_export_key(psa_key_handle_t handle,
641
641
*
642
642
* \retval #PSA_SUCCESS
643
643
* \retval #PSA_ERROR_INVALID_HANDLE
644
- * \retval #PSA_ERROR_EMPTY_SLOT
644
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
645
645
* \retval #PSA_ERROR_INVALID_ARGUMENT
646
646
* The key is neither a public key nor a key pair.
647
647
* \retval #PSA_ERROR_NOT_SUPPORTED
@@ -710,9 +710,9 @@ psa_status_t psa_export_public_key(psa_key_handle_t handle,
710
710
*
711
711
* \retval #PSA_SUCCESS
712
712
* \retval #PSA_ERROR_INVALID_HANDLE
713
- * \retval #PSA_ERROR_OCCUPIED_SLOT
713
+ * \retval #PSA_ERROR_ALREADY_EXISTS
714
714
* \p target already contains key material.
715
- * \retval #PSA_ERROR_EMPTY_SLOT
715
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
716
716
* \p source does not contain key material.
717
717
* \retval #PSA_ERROR_INVALID_ARGUMENT
718
718
* The policy constraints on the source, on the target and
@@ -1071,7 +1071,7 @@ static psa_mac_operation_t psa_mac_operation_init(void);
1071
1071
* \retval #PSA_SUCCESS
1072
1072
* Success.
1073
1073
* \retval #PSA_ERROR_INVALID_HANDLE
1074
- * \retval #PSA_ERROR_EMPTY_SLOT
1074
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
1075
1075
* \retval #PSA_ERROR_NOT_PERMITTED
1076
1076
* \retval #PSA_ERROR_INVALID_ARGUMENT
1077
1077
* \p key is not compatible with \p alg.
@@ -1128,7 +1128,7 @@ psa_status_t psa_mac_sign_setup(psa_mac_operation_t *operation,
1128
1128
* \retval #PSA_SUCCESS
1129
1129
* Success.
1130
1130
* \retval #PSA_ERROR_INVALID_HANDLE
1131
- * \retval #PSA_ERROR_EMPTY_SLOT
1131
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
1132
1132
* \retval #PSA_ERROR_NOT_PERMITTED
1133
1133
* \retval #PSA_ERROR_INVALID_ARGUMENT
1134
1134
* \c key is not compatible with \c alg.
@@ -1373,7 +1373,7 @@ static psa_cipher_operation_t psa_cipher_operation_init(void);
1373
1373
* \retval #PSA_SUCCESS
1374
1374
* Success.
1375
1375
* \retval #PSA_ERROR_INVALID_HANDLE
1376
- * \retval #PSA_ERROR_EMPTY_SLOT
1376
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
1377
1377
* \retval #PSA_ERROR_NOT_PERMITTED
1378
1378
* \retval #PSA_ERROR_INVALID_ARGUMENT
1379
1379
* \p key is not compatible with \p alg.
@@ -1432,7 +1432,7 @@ psa_status_t psa_cipher_encrypt_setup(psa_cipher_operation_t *operation,
1432
1432
* \retval #PSA_SUCCESS
1433
1433
* Success.
1434
1434
* \retval #PSA_ERROR_INVALID_HANDLE
1435
- * \retval #PSA_ERROR_EMPTY_SLOT
1435
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
1436
1436
* \retval #PSA_ERROR_NOT_PERMITTED
1437
1437
* \retval #PSA_ERROR_INVALID_ARGUMENT
1438
1438
* \p key is not compatible with \p alg.
@@ -1660,7 +1660,7 @@ psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation);
1660
1660
* \retval #PSA_SUCCESS
1661
1661
* Success.
1662
1662
* \retval #PSA_ERROR_INVALID_HANDLE
1663
- * \retval #PSA_ERROR_EMPTY_SLOT
1663
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
1664
1664
* \retval #PSA_ERROR_NOT_PERMITTED
1665
1665
* \retval #PSA_ERROR_INVALID_ARGUMENT
1666
1666
* \p key is not compatible with \p alg.
@@ -1716,7 +1716,7 @@ psa_status_t psa_aead_encrypt(psa_key_handle_t handle,
1716
1716
* \retval #PSA_SUCCESS
1717
1717
* Success.
1718
1718
* \retval #PSA_ERROR_INVALID_HANDLE
1719
- * \retval #PSA_ERROR_EMPTY_SLOT
1719
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
1720
1720
* \retval #PSA_ERROR_INVALID_SIGNATURE
1721
1721
* The ciphertext is not authentic.
1722
1722
* \retval #PSA_ERROR_NOT_PERMITTED
@@ -2034,7 +2034,7 @@ psa_status_t psa_get_generator_capacity(const psa_crypto_generator_t *generator,
2034
2034
* \param output_length Number of bytes to output.
2035
2035
*
2036
2036
* \retval #PSA_SUCCESS
2037
- * \retval #PSA_ERROR_INSUFFICIENT_CAPACITY
2037
+ * \retval #PSA_ERROR_INSUFFICIENT_DATA
2038
2038
* There were fewer than \p output_length bytes
2039
2039
* in the generator. Note that in this case, no
2040
2040
* output is written to the output buffer.
@@ -2076,7 +2076,7 @@ psa_status_t psa_generator_read(psa_crypto_generator_t *generator,
2076
2076
* Success.
2077
2077
* If the key is persistent, the key material and the key's metadata
2078
2078
* have been saved to persistent storage.
2079
- * \retval #PSA_ERROR_INSUFFICIENT_CAPACITY
2079
+ * \retval #PSA_ERROR_INSUFFICIENT_DATA
2080
2080
* There were fewer than \p output_length bytes
2081
2081
* in the generator. Note that in this case, no
2082
2082
* output is written to the output buffer.
@@ -2088,7 +2088,7 @@ psa_status_t psa_generator_read(psa_crypto_generator_t *generator,
2088
2088
* implementation in general or in this particular slot.
2089
2089
* \retval #PSA_ERROR_BAD_STATE
2090
2090
* \retval #PSA_ERROR_INVALID_HANDLE
2091
- * \retval #PSA_ERROR_OCCUPIED_SLOT
2091
+ * \retval #PSA_ERROR_ALREADY_EXISTS
2092
2092
* There is already a key in the specified slot.
2093
2093
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
2094
2094
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
@@ -2172,7 +2172,7 @@ psa_status_t psa_generator_abort(psa_crypto_generator_t *generator);
2172
2172
* \retval #PSA_SUCCESS
2173
2173
* Success.
2174
2174
* \retval #PSA_ERROR_INVALID_HANDLE
2175
- * \retval #PSA_ERROR_EMPTY_SLOT
2175
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
2176
2176
* \retval #PSA_ERROR_NOT_PERMITTED
2177
2177
* \retval #PSA_ERROR_INVALID_ARGUMENT
2178
2178
* \c key is not compatible with \c alg,
@@ -2233,7 +2233,7 @@ psa_status_t psa_key_derivation(psa_crypto_generator_t *generator,
2233
2233
* \retval #PSA_SUCCESS
2234
2234
* Success.
2235
2235
* \retval #PSA_ERROR_INVALID_HANDLE
2236
- * \retval #PSA_ERROR_EMPTY_SLOT
2236
+ * \retval #PSA_ERROR_DOES_NOT_EXIST
2237
2237
* \retval #PSA_ERROR_NOT_PERMITTED
2238
2238
* \retval #PSA_ERROR_INVALID_ARGUMENT
2239
2239
* \c private_key is not compatible with \c alg,
@@ -2332,7 +2332,7 @@ typedef struct {
2332
2332
* If the key is persistent, the key material and the key's metadata
2333
2333
* have been saved to persistent storage.
2334
2334
* \retval #PSA_ERROR_INVALID_HANDLE
2335
- * \retval #PSA_ERROR_OCCUPIED_SLOT
2335
+ * \retval #PSA_ERROR_ALREADY_EXISTS
2336
2336
* There is already a key in the specified slot.
2337
2337
* \retval #PSA_ERROR_NOT_SUPPORTED
2338
2338
* \retval #PSA_ERROR_INVALID_ARGUMENT
0 commit comments