|
|
|
@ -86,7 +86,7 @@ extern "C" {
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_crypto_init(void);
|
|
|
|
@ -651,7 +651,7 @@ psa_status_t psa_close_key(psa_key_handle_t handle);
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_STORAGE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -692,7 +692,7 @@ psa_status_t psa_import_key(const psa_key_attributes_t *attributes,
|
|
|
|
|
* to erase key material even in this stage, however applications
|
|
|
|
|
* should be aware that it may be impossible to guarantee that the
|
|
|
|
|
* key material is not recoverable in such cases.
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* An unexpected condition which is not a storage corruption or
|
|
|
|
|
* a communication failure occurred. The cryptoprocessor may have
|
|
|
|
|
* been compromised.
|
|
|
|
@ -782,7 +782,7 @@ psa_status_t psa_destroy_key(psa_key_handle_t handle);
|
|
|
|
|
* and \c bits is the key size in bits.
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -854,7 +854,7 @@ psa_status_t psa_export_key(psa_key_handle_t handle,
|
|
|
|
|
* and \c bits is the key size in bits.
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -947,7 +947,7 @@ psa_status_t psa_export_public_key(psa_key_handle_t handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_copy_key(psa_key_handle_t source_handle,
|
|
|
|
|
const psa_key_attributes_t *attributes,
|
|
|
|
@ -981,7 +981,7 @@ psa_status_t psa_copy_key(psa_key_handle_t source_handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_compute(psa_algorithm_t alg,
|
|
|
|
|
const uint8_t *input,
|
|
|
|
@ -1010,7 +1010,7 @@ psa_status_t psa_hash_compute(psa_algorithm_t alg,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_compare(psa_algorithm_t alg,
|
|
|
|
|
const uint8_t *input,
|
|
|
|
@ -1104,7 +1104,7 @@ static psa_hash_operation_t psa_hash_operation_init(void);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_setup(psa_hash_operation_t *operation,
|
|
|
|
|
psa_algorithm_t alg);
|
|
|
|
@ -1126,7 +1126,7 @@ psa_status_t psa_hash_setup(psa_hash_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_update(psa_hash_operation_t *operation,
|
|
|
|
|
const uint8_t *input,
|
|
|
|
@ -1167,7 +1167,7 @@ psa_status_t psa_hash_update(psa_hash_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_finish(psa_hash_operation_t *operation,
|
|
|
|
|
uint8_t *hash,
|
|
|
|
@ -1203,7 +1203,7 @@ psa_status_t psa_hash_finish(psa_hash_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_verify(psa_hash_operation_t *operation,
|
|
|
|
|
const uint8_t *hash,
|
|
|
|
@ -1234,7 +1234,7 @@ psa_status_t psa_hash_verify(psa_hash_operation_t *operation,
|
|
|
|
|
* \p operation is not an active hash operation.
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_abort(psa_hash_operation_t *operation);
|
|
|
|
|
|
|
|
|
@ -1260,7 +1260,7 @@ psa_status_t psa_hash_abort(psa_hash_operation_t *operation);
|
|
|
|
|
* \p target_operation is active.
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_hash_clone(const psa_hash_operation_t *source_operation,
|
|
|
|
|
psa_hash_operation_t *target_operation);
|
|
|
|
@ -1303,7 +1303,7 @@ psa_status_t psa_hash_clone(const psa_hash_operation_t *source_operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -1342,7 +1342,7 @@ psa_status_t psa_mac_compute(psa_key_handle_t handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_mac_verify(psa_key_handle_t handle,
|
|
|
|
|
psa_algorithm_t alg,
|
|
|
|
@ -1445,7 +1445,7 @@ static psa_mac_operation_t psa_mac_operation_init(void);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
|
* subsequently completed).
|
|
|
|
@ -1505,7 +1505,7 @@ psa_status_t psa_mac_sign_setup(psa_mac_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
|
* subsequently completed).
|
|
|
|
@ -1537,7 +1537,7 @@ psa_status_t psa_mac_verify_setup(psa_mac_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_mac_update(psa_mac_operation_t *operation,
|
|
|
|
|
const uint8_t *input,
|
|
|
|
@ -1579,7 +1579,7 @@ psa_status_t psa_mac_update(psa_mac_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_mac_sign_finish(psa_mac_operation_t *operation,
|
|
|
|
|
uint8_t *mac,
|
|
|
|
@ -1615,7 +1615,7 @@ psa_status_t psa_mac_sign_finish(psa_mac_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_mac_verify_finish(psa_mac_operation_t *operation,
|
|
|
|
|
const uint8_t *mac,
|
|
|
|
@ -1647,7 +1647,7 @@ psa_status_t psa_mac_verify_finish(psa_mac_operation_t *operation,
|
|
|
|
|
* \p operation is not an active MAC operation.
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_mac_abort(psa_mac_operation_t *operation);
|
|
|
|
|
|
|
|
|
@ -1690,7 +1690,7 @@ psa_status_t psa_mac_abort(psa_mac_operation_t *operation);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_cipher_encrypt(psa_key_handle_t handle,
|
|
|
|
|
psa_algorithm_t alg,
|
|
|
|
@ -1732,7 +1732,7 @@ psa_status_t psa_cipher_encrypt(psa_key_handle_t handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_cipher_decrypt(psa_key_handle_t handle,
|
|
|
|
|
psa_algorithm_t alg,
|
|
|
|
@ -1837,7 +1837,7 @@ static psa_cipher_operation_t psa_cipher_operation_init(void);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
|
* subsequently completed).
|
|
|
|
@ -1899,7 +1899,7 @@ psa_status_t psa_cipher_encrypt_setup(psa_cipher_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
|
* subsequently completed).
|
|
|
|
@ -1938,7 +1938,7 @@ psa_status_t psa_cipher_decrypt_setup(psa_cipher_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_cipher_generate_iv(psa_cipher_operation_t *operation,
|
|
|
|
|
unsigned char *iv,
|
|
|
|
@ -1973,7 +1973,7 @@ psa_status_t psa_cipher_generate_iv(psa_cipher_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_cipher_set_iv(psa_cipher_operation_t *operation,
|
|
|
|
|
const unsigned char *iv,
|
|
|
|
@ -2009,7 +2009,7 @@ psa_status_t psa_cipher_set_iv(psa_cipher_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
|
|
|
|
|
const uint8_t *input,
|
|
|
|
@ -2047,7 +2047,7 @@ psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
|
|
|
|
|
uint8_t *output,
|
|
|
|
@ -2080,7 +2080,7 @@ psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
|
|
|
|
|
* \p operation is not an active cipher operation.
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation);
|
|
|
|
|
|
|
|
|
@ -2130,7 +2130,7 @@ psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -2188,7 +2188,7 @@ psa_status_t psa_aead_encrypt(psa_key_handle_t handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -2307,7 +2307,7 @@ static psa_aead_operation_t psa_aead_operation_init(void);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -2369,7 +2369,7 @@ psa_status_t psa_aead_encrypt_setup(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -2406,7 +2406,7 @@ psa_status_t psa_aead_decrypt_setup(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_generate_nonce(psa_aead_operation_t *operation,
|
|
|
|
|
unsigned char *nonce,
|
|
|
|
@ -2440,7 +2440,7 @@ psa_status_t psa_aead_generate_nonce(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_set_nonce(psa_aead_operation_t *operation,
|
|
|
|
|
const unsigned char *nonce,
|
|
|
|
@ -2478,7 +2478,7 @@ psa_status_t psa_aead_set_nonce(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_set_lengths(psa_aead_operation_t *operation,
|
|
|
|
|
size_t ad_length,
|
|
|
|
@ -2520,7 +2520,7 @@ psa_status_t psa_aead_set_lengths(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_update_ad(psa_aead_operation_t *operation,
|
|
|
|
|
const uint8_t *input,
|
|
|
|
@ -2592,7 +2592,7 @@ psa_status_t psa_aead_update_ad(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_update(psa_aead_operation_t *operation,
|
|
|
|
|
const uint8_t *input,
|
|
|
|
@ -2661,7 +2661,7 @@ psa_status_t psa_aead_update(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_finish(psa_aead_operation_t *operation,
|
|
|
|
|
uint8_t *ciphertext,
|
|
|
|
@ -2719,7 +2719,7 @@ psa_status_t psa_aead_finish(psa_aead_operation_t *operation,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_verify(psa_aead_operation_t *operation,
|
|
|
|
|
uint8_t *plaintext,
|
|
|
|
@ -2754,7 +2754,7 @@ psa_status_t psa_aead_verify(psa_aead_operation_t *operation,
|
|
|
|
|
* \p operation is not an active AEAD operation.
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_aead_abort(psa_aead_operation_t *operation);
|
|
|
|
|
|
|
|
|
@ -2796,7 +2796,7 @@ psa_status_t psa_aead_abort(psa_aead_operation_t *operation);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
@ -2840,7 +2840,7 @@ psa_status_t psa_asymmetric_sign(psa_key_handle_t handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -2893,7 +2893,7 @@ psa_status_t psa_asymmetric_verify(psa_key_handle_t handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
@ -2949,7 +2949,7 @@ psa_status_t psa_asymmetric_encrypt(psa_key_handle_t handle,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
* \retval #PSA_ERROR_INVALID_PADDING
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
@ -3062,7 +3062,7 @@ static psa_key_derivation_operation_t psa_key_derivation_operation_init(void);
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_key_derivation_setup(
|
|
|
|
@ -3144,7 +3144,7 @@ psa_status_t psa_key_derivation_set_capacity(
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The value of \p step is not valid given the state of \p operation.
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
@ -3190,7 +3190,7 @@ psa_status_t psa_key_derivation_input_bytes(
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The value of \p step is not valid given the state of \p operation.
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
@ -3254,7 +3254,7 @@ psa_status_t psa_key_derivation_input_key(
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_key_derivation_key_agreement(
|
|
|
|
|
psa_key_derivation_operation_t *operation,
|
|
|
|
@ -3288,7 +3288,7 @@ psa_status_t psa_key_derivation_key_agreement(
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_key_derivation_output_bytes(
|
|
|
|
|
psa_key_derivation_operation_t *operation,
|
|
|
|
@ -3403,7 +3403,7 @@ psa_status_t psa_key_derivation_output_bytes(
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -3434,7 +3434,7 @@ psa_status_t psa_key_derivation_output_key(
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_key_derivation_abort(
|
|
|
|
|
psa_key_derivation_operation_t *operation);
|
|
|
|
@ -3481,7 +3481,7 @@ psa_status_t psa_key_derivation_abort(
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
*/
|
|
|
|
|
psa_status_t psa_raw_key_agreement(psa_algorithm_t alg,
|
|
|
|
|
psa_key_handle_t private_key,
|
|
|
|
@ -3514,7 +3514,7 @@ psa_status_t psa_raw_key_agreement(psa_algorithm_t alg,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
@ -3560,7 +3560,7 @@ psa_status_t psa_generate_random(uint8_t *output,
|
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
|