mbedtls_cipher_values_from_psa() function
Get Mbed TLS cipher information given the cipher algorithm PSA identifier as well as the PSA type and size of the key to be used with the cipher algorithm.
Arguments
alg
PSA cipher algorithm identifier
key_bits
Size of the key in bits. The value provided in input might be updated if necessary.
cipher_id
Mbed TLS cipher algorithm identifier
Return value
On success \c PSA_SUCCESS is returned and key_bits, mode and cipher_id are properly updated. \c PSA_ERROR_NOT_SUPPORTED is returned if the cipher algorithm is not supported.
mbedtls_cipher_values_from_psa() is called by 2 functions and calls 1 function:
![]()
mbedtls_cipher_values_from_psa()
mbedtls_cipher_values_from_psa() reads 10 variables:
![]()
mbedtls_cipher_values_from_psa()