|
|
@ -86,7 +86,7 @@ extern "C" {
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
psa_status_t psa_crypto_init(void);
|
|
|
|
psa_status_t psa_crypto_init(void);
|
|
|
@ -554,7 +554,7 @@ psa_status_t psa_close_key(psa_key_handle_t handle);
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_STORAGE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_STORAGE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -595,7 +595,7 @@ psa_status_t psa_import_key(const psa_key_attributes_t *attributes,
|
|
|
|
* to erase key material even in this stage, however applications
|
|
|
|
* to erase key material even in this stage, however applications
|
|
|
|
* should be aware that it may be impossible to guarantee that the
|
|
|
|
* should be aware that it may be impossible to guarantee that the
|
|
|
|
* key material is not recoverable in such cases.
|
|
|
|
* 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
|
|
|
|
* An unexpected condition which is not a storage corruption or
|
|
|
|
* a communication failure occurred. The cryptoprocessor may have
|
|
|
|
* a communication failure occurred. The cryptoprocessor may have
|
|
|
|
* been compromised.
|
|
|
|
* been compromised.
|
|
|
@ -682,7 +682,7 @@ psa_status_t psa_destroy_key(psa_key_handle_t handle);
|
|
|
|
* and \c bits is the key size in bits.
|
|
|
|
* and \c bits is the key size in bits.
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -751,7 +751,7 @@ psa_status_t psa_export_key(psa_key_handle_t handle,
|
|
|
|
* and \c bits is the key size in bits.
|
|
|
|
* and \c bits is the key size in bits.
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -841,7 +841,7 @@ psa_status_t psa_export_public_key(psa_key_handle_t handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_copy_key(psa_key_handle_t source_handle,
|
|
|
|
const psa_key_attributes_t *attributes,
|
|
|
|
const psa_key_attributes_t *attributes,
|
|
|
@ -875,7 +875,7 @@ psa_status_t psa_copy_key(psa_key_handle_t source_handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_hash_compute(psa_algorithm_t alg,
|
|
|
|
const uint8_t *input,
|
|
|
|
const uint8_t *input,
|
|
|
@ -904,7 +904,7 @@ psa_status_t psa_hash_compute(psa_algorithm_t alg,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_hash_compare(psa_algorithm_t alg,
|
|
|
|
const uint8_t *input,
|
|
|
|
const uint8_t *input,
|
|
|
@ -998,7 +998,7 @@ static psa_hash_operation_t psa_hash_operation_init(void);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_hash_setup(psa_hash_operation_t *operation,
|
|
|
|
psa_algorithm_t alg);
|
|
|
|
psa_algorithm_t alg);
|
|
|
@ -1020,7 +1020,7 @@ psa_status_t psa_hash_setup(psa_hash_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_hash_update(psa_hash_operation_t *operation,
|
|
|
|
const uint8_t *input,
|
|
|
|
const uint8_t *input,
|
|
|
@ -1061,7 +1061,7 @@ psa_status_t psa_hash_update(psa_hash_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_hash_finish(psa_hash_operation_t *operation,
|
|
|
|
uint8_t *hash,
|
|
|
|
uint8_t *hash,
|
|
|
@ -1097,7 +1097,7 @@ psa_status_t psa_hash_finish(psa_hash_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_hash_verify(psa_hash_operation_t *operation,
|
|
|
|
const uint8_t *hash,
|
|
|
|
const uint8_t *hash,
|
|
|
@ -1128,7 +1128,7 @@ psa_status_t psa_hash_verify(psa_hash_operation_t *operation,
|
|
|
|
* \p operation is not an active hash operation.
|
|
|
|
* \p operation is not an active hash operation.
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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);
|
|
|
|
psa_status_t psa_hash_abort(psa_hash_operation_t *operation);
|
|
|
|
|
|
|
|
|
|
|
@ -1154,7 +1154,7 @@ psa_status_t psa_hash_abort(psa_hash_operation_t *operation);
|
|
|
|
* \p target_operation is active.
|
|
|
|
* \p target_operation is active.
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_hash_clone(const psa_hash_operation_t *source_operation,
|
|
|
|
psa_hash_operation_t *target_operation);
|
|
|
|
psa_hash_operation_t *target_operation);
|
|
|
@ -1197,7 +1197,7 @@ psa_status_t psa_hash_clone(const psa_hash_operation_t *source_operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -1236,7 +1236,7 @@ psa_status_t psa_mac_compute(psa_key_handle_t handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_mac_verify(psa_key_handle_t handle,
|
|
|
|
psa_algorithm_t alg,
|
|
|
|
psa_algorithm_t alg,
|
|
|
@ -1339,7 +1339,7 @@ static psa_mac_operation_t psa_mac_operation_init(void);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* subsequently completed).
|
|
|
|
* subsequently completed).
|
|
|
@ -1399,7 +1399,7 @@ psa_status_t psa_mac_sign_setup(psa_mac_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* subsequently completed).
|
|
|
|
* subsequently completed).
|
|
|
@ -1431,7 +1431,7 @@ psa_status_t psa_mac_verify_setup(psa_mac_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_mac_update(psa_mac_operation_t *operation,
|
|
|
|
const uint8_t *input,
|
|
|
|
const uint8_t *input,
|
|
|
@ -1473,7 +1473,7 @@ psa_status_t psa_mac_update(psa_mac_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_mac_sign_finish(psa_mac_operation_t *operation,
|
|
|
|
uint8_t *mac,
|
|
|
|
uint8_t *mac,
|
|
|
@ -1509,7 +1509,7 @@ psa_status_t psa_mac_sign_finish(psa_mac_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_mac_verify_finish(psa_mac_operation_t *operation,
|
|
|
|
const uint8_t *mac,
|
|
|
|
const uint8_t *mac,
|
|
|
@ -1541,7 +1541,7 @@ psa_status_t psa_mac_verify_finish(psa_mac_operation_t *operation,
|
|
|
|
* \p operation is not an active MAC operation.
|
|
|
|
* \p operation is not an active MAC operation.
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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);
|
|
|
|
psa_status_t psa_mac_abort(psa_mac_operation_t *operation);
|
|
|
|
|
|
|
|
|
|
|
@ -1584,7 +1584,7 @@ psa_status_t psa_mac_abort(psa_mac_operation_t *operation);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_cipher_encrypt(psa_key_handle_t handle,
|
|
|
|
psa_algorithm_t alg,
|
|
|
|
psa_algorithm_t alg,
|
|
|
@ -1626,7 +1626,7 @@ psa_status_t psa_cipher_encrypt(psa_key_handle_t handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_cipher_decrypt(psa_key_handle_t handle,
|
|
|
|
psa_algorithm_t alg,
|
|
|
|
psa_algorithm_t alg,
|
|
|
@ -1731,7 +1731,7 @@ static psa_cipher_operation_t psa_cipher_operation_init(void);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* subsequently completed).
|
|
|
|
* subsequently completed).
|
|
|
@ -1793,7 +1793,7 @@ psa_status_t psa_cipher_encrypt_setup(psa_cipher_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* The operation state is not valid (already set up and not
|
|
|
|
* subsequently completed).
|
|
|
|
* subsequently completed).
|
|
|
@ -1832,7 +1832,7 @@ psa_status_t psa_cipher_decrypt_setup(psa_cipher_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_cipher_generate_iv(psa_cipher_operation_t *operation,
|
|
|
|
unsigned char *iv,
|
|
|
|
unsigned char *iv,
|
|
|
@ -1867,7 +1867,7 @@ psa_status_t psa_cipher_generate_iv(psa_cipher_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_cipher_set_iv(psa_cipher_operation_t *operation,
|
|
|
|
const unsigned char *iv,
|
|
|
|
const unsigned char *iv,
|
|
|
@ -1903,7 +1903,7 @@ psa_status_t psa_cipher_set_iv(psa_cipher_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
|
|
|
|
const uint8_t *input,
|
|
|
|
const uint8_t *input,
|
|
|
@ -1941,7 +1941,7 @@ psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
|
|
|
|
uint8_t *output,
|
|
|
|
uint8_t *output,
|
|
|
@ -1974,7 +1974,7 @@ psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
|
|
|
|
* \p operation is not an active cipher operation.
|
|
|
|
* \p operation is not an active cipher operation.
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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);
|
|
|
|
psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation);
|
|
|
|
|
|
|
|
|
|
|
@ -2024,7 +2024,7 @@ psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -2082,7 +2082,7 @@ psa_status_t psa_aead_encrypt(psa_key_handle_t handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -2201,7 +2201,7 @@ static psa_aead_operation_t psa_aead_operation_init(void);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -2263,7 +2263,7 @@ psa_status_t psa_aead_encrypt_setup(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -2300,7 +2300,7 @@ psa_status_t psa_aead_decrypt_setup(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_aead_generate_nonce(psa_aead_operation_t *operation,
|
|
|
|
unsigned char *nonce,
|
|
|
|
unsigned char *nonce,
|
|
|
@ -2334,7 +2334,7 @@ psa_status_t psa_aead_generate_nonce(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_aead_set_nonce(psa_aead_operation_t *operation,
|
|
|
|
const unsigned char *nonce,
|
|
|
|
const unsigned char *nonce,
|
|
|
@ -2372,7 +2372,7 @@ psa_status_t psa_aead_set_nonce(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_aead_set_lengths(psa_aead_operation_t *operation,
|
|
|
|
size_t ad_length,
|
|
|
|
size_t ad_length,
|
|
|
@ -2414,7 +2414,7 @@ psa_status_t psa_aead_set_lengths(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_aead_update_ad(psa_aead_operation_t *operation,
|
|
|
|
const uint8_t *input,
|
|
|
|
const uint8_t *input,
|
|
|
@ -2486,7 +2486,7 @@ psa_status_t psa_aead_update_ad(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_aead_update(psa_aead_operation_t *operation,
|
|
|
|
const uint8_t *input,
|
|
|
|
const uint8_t *input,
|
|
|
@ -2555,7 +2555,7 @@ psa_status_t psa_aead_update(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_aead_finish(psa_aead_operation_t *operation,
|
|
|
|
uint8_t *ciphertext,
|
|
|
|
uint8_t *ciphertext,
|
|
|
@ -2613,7 +2613,7 @@ psa_status_t psa_aead_finish(psa_aead_operation_t *operation,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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,
|
|
|
|
psa_status_t psa_aead_verify(psa_aead_operation_t *operation,
|
|
|
|
uint8_t *plaintext,
|
|
|
|
uint8_t *plaintext,
|
|
|
@ -2648,7 +2648,7 @@ psa_status_t psa_aead_verify(psa_aead_operation_t *operation,
|
|
|
|
* \p operation is not an active AEAD operation.
|
|
|
|
* \p operation is not an active AEAD operation.
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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);
|
|
|
|
psa_status_t psa_aead_abort(psa_aead_operation_t *operation);
|
|
|
|
|
|
|
|
|
|
|
@ -2690,7 +2690,7 @@ psa_status_t psa_aead_abort(psa_aead_operation_t *operation);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
@ -2734,7 +2734,7 @@ psa_status_t psa_asymmetric_sign(psa_key_handle_t handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -2787,7 +2787,7 @@ psa_status_t psa_asymmetric_verify(psa_key_handle_t handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
@ -2843,7 +2843,7 @@ psa_status_t psa_asymmetric_encrypt(psa_key_handle_t handle,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_INVALID_PADDING
|
|
|
|
* \retval #PSA_ERROR_INVALID_PADDING
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
@ -2956,7 +2956,7 @@ static psa_key_derivation_operation_t psa_key_derivation_operation_init(void);
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
psa_status_t psa_key_derivation_setup(
|
|
|
|
psa_status_t psa_key_derivation_setup(
|
|
|
@ -3038,7 +3038,7 @@ psa_status_t psa_key_derivation_set_capacity(
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The value of \p step is not valid given the state of \p operation.
|
|
|
|
* The value of \p step is not valid given the state of \p operation.
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
@ -3084,7 +3084,7 @@ psa_status_t psa_key_derivation_input_bytes(
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The value of \p step is not valid given the state of \p operation.
|
|
|
|
* The value of \p step is not valid given the state of \p operation.
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
@ -3148,7 +3148,7 @@ psa_status_t psa_key_derivation_input_key(
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_key_derivation_key_agreement(
|
|
|
|
psa_key_derivation_operation_t *operation,
|
|
|
|
psa_key_derivation_operation_t *operation,
|
|
|
@ -3182,7 +3182,7 @@ psa_status_t psa_key_derivation_key_agreement(
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_key_derivation_output_bytes(
|
|
|
|
psa_key_derivation_operation_t *operation,
|
|
|
|
psa_key_derivation_operation_t *operation,
|
|
|
@ -3297,7 +3297,7 @@ psa_status_t psa_key_derivation_output_bytes(
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -3328,7 +3328,7 @@ psa_status_t psa_key_derivation_output_key(
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
psa_status_t psa_key_derivation_abort(
|
|
|
|
psa_status_t psa_key_derivation_abort(
|
|
|
|
psa_key_derivation_operation_t *operation);
|
|
|
|
psa_key_derivation_operation_t *operation);
|
|
|
@ -3375,7 +3375,7 @@ psa_status_t psa_key_derivation_abort(
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_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_status_t psa_raw_key_agreement(psa_algorithm_t alg,
|
|
|
|
psa_key_handle_t private_key,
|
|
|
|
psa_key_handle_t private_key,
|
|
|
@ -3408,7 +3408,7 @@ psa_status_t psa_raw_key_agreement(psa_algorithm_t alg,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
@ -3447,7 +3447,7 @@ psa_status_t psa_generate_random(uint8_t *output,
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_HARDWARE_FAILURE
|
|
|
|
* \retval #PSA_ERROR_TAMPERING_DETECTED
|
|
|
|
* \retval #PSA_ERROR_CORRUPTION_DETECTED
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* \retval #PSA_ERROR_BAD_STATE
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* The library has not been previously initialized by psa_crypto_init().
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|
* It is implementation-dependent whether a failure to initialize
|
|
|
|