Skip to content

Commit 3b59756

Browse files
committed
Fix return code warnings
- Remove STORAGE_FAILURE from hash and abort functions - Remove BUFFER_TOO_SMALL from psa_mac_verify
1 parent fa2cefa commit 3b59756

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

include/psa/crypto.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,6 @@ psa_status_t psa_copy_key(psa_key_handle_t source_handle,
834834
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
835835
* \retval #PSA_ERROR_HARDWARE_FAILURE
836836
* \retval #PSA_ERROR_CORRUPTION_DETECTED
837-
* \retval #PSA_ERROR_STORAGE_FAILURE
838837
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
839838
* \retval #PSA_ERROR_BAD_STATE
840839
* The library has not been previously initialized by psa_crypto_init().
@@ -871,7 +870,6 @@ psa_status_t psa_hash_compute(psa_algorithm_t alg,
871870
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
872871
* \retval #PSA_ERROR_HARDWARE_FAILURE
873872
* \retval #PSA_ERROR_CORRUPTION_DETECTED
874-
* \retval #PSA_ERROR_STORAGE_FAILURE
875873
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
876874
* \retval #PSA_ERROR_BAD_STATE
877875
* The library has not been previously initialized by psa_crypto_init().
@@ -1248,8 +1246,6 @@ psa_status_t psa_mac_compute(psa_key_handle_t handle,
12481246
* \p handle is not compatible with \p alg.
12491247
* \retval #PSA_ERROR_NOT_SUPPORTED
12501248
* \p alg is not supported or is not a MAC algorithm.
1251-
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
1252-
* \p mac_size is too small
12531249
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
12541250
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
12551251
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -1582,8 +1578,6 @@ psa_status_t psa_mac_verify_finish(psa_mac_operation_t *operation,
15821578
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
15831579
* \retval #PSA_ERROR_HARDWARE_FAILURE
15841580
* \retval #PSA_ERROR_CORRUPTION_DETECTED
1585-
* \retval #PSA_ERROR_STORAGE_FAILURE
1586-
* The key could not be retrieved from storage.
15871581
* \retval #PSA_ERROR_BAD_STATE
15881582
* The library has not been previously initialized by psa_crypto_init().
15891583
* It is implementation-dependent whether a failure to initialize
@@ -2049,7 +2043,6 @@ psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
20492043
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
20502044
* \retval #PSA_ERROR_HARDWARE_FAILURE
20512045
* \retval #PSA_ERROR_CORRUPTION_DETECTED
2052-
* \retval #PSA_ERROR_STORAGE_FAILURE
20532046
* \retval #PSA_ERROR_BAD_STATE
20542047
* The library has not been previously initialized by psa_crypto_init().
20552048
* It is implementation-dependent whether a failure to initialize
@@ -2766,7 +2759,6 @@ psa_status_t psa_aead_verify(psa_aead_operation_t *operation,
27662759
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
27672760
* \retval #PSA_ERROR_HARDWARE_FAILURE
27682761
* \retval #PSA_ERROR_CORRUPTION_DETECTED
2769-
* \retval #PSA_ERROR_STORAGE_FAILURE
27702762
* \retval #PSA_ERROR_BAD_STATE
27712763
* The library has not been previously initialized by psa_crypto_init().
27722764
* It is implementation-dependent whether a failure to initialize

0 commit comments

Comments
 (0)