mbedtls_psa_cipher_encrypt_setup() function
Set the key for a multipart symmetric encryption operation.
Arguments
operation
The operation object to set up. It has been initialized as per the documentation for #psa_cipher_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.
alg
The cipher algorithm to compute (\c PSA_ALG_XXX value such that #PSA_ALG_IS_CIPHER(\p alg) is true).
Return value
#PSA_SUCCESS \emptydescription #PSA_ERROR_NOT_SUPPORTED \emptydescription #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription #PSA_ERROR_CORRUPTION_DETECTED \emptydescription
Notes
The signature of this function is that of a PSA driver cipher_encrypt_setup entry point. This function behaves as a cipher_encrypt_setup entry point as defined in the PSA driver interface specification for transparent drivers.
![]()
status = mbedtls_psa_cipher_encrypt_setup(&operation, attributes,
mbedtls_psa_cipher_encrypt_setup() is called by 2 functions and calls 1 function:
![]()
mbedtls_psa_cipher_encrypt_setup()
mbedtls_psa_cipher_encrypt_setup() reads 1 variable:
![]()
mbedtls_psa_cipher_encrypt_setup()