mbedtls_psa_aead_decrypt_setup() function
Set the key for a multipart authenticated decryption operation. If an error occurs at any step after a call to mbedtls_psa_aead_decrypt_setup(), the PSA core resets the operation by a call to mbedtls_psa_aead_abort(). The PSA core may call mbedtls_psa_aead_abort() at any time after the operation has been initialized, and is required to when the operation is no longer needed.
Arguments
operation
The operation object to set up. It must have been initialized as per the documentation for #mbedtls_psa_aead_operation_t and not yet in use.
attributes
The attributes of the key to use for the operation.
key_buffer
The buffer containing the key context.
key_buffer_size
Size of the \p key_buffer buffer in bytes. It must be consistent with the size in bits recorded in \p attributes.
alg
The AEAD algorithm to compute (\c PSA_ALG_XXX value such that #PSA_ALG_IS_AEAD(\p alg) is true).
Return value
#PSA_SUCCESS Success. #PSA_ERROR_INVALID_ARGUMENT An invalid block length was supplied. #PSA_ERROR_NOT_SUPPORTED \p alg is not supported. #PSA_ERROR_INSUFFICIENT_MEMORY Failed to allocate memory for key material
Notes
The signature of this function is that of a PSA driver aead_decrypt_setup entry point. This function behaves as an aead_decrypt_setup entry point as defined in the PSA driver interface specification for transparent drivers.
![]()
status = mbedtls_psa_aead_decrypt_setup(
mbedtls_psa_aead_decrypt_setup() is called by 1 function and calls 1 function:
![]()
mbedtls_psa_aead_decrypt_setup()
mbedtls_psa_aead_decrypt_setup() writes 1 variable:
![]()
mbedtls_psa_aead_decrypt_setup()