mbedtls_aes_cmac_prf_128() function
This function implements the AES-CMAC-PRF-128 pseudorandom function, as defined in RFC-4615: The Advanced Encryption Standard-Cipher-based Message Authentication Code-Pseudo-Random Function-128 (AES-CMAC-PRF-128) Algorithm for the Internet Key Exchange Protocol (IKE).
Syntax
int mbedtls_aes_cmac_prf_128(const unsigned char *key,
size_t key_len,
const unsigned char *input,
size_t in_len,
unsigned char output[16]);
Arguments
key_len
The key length in Bytes.
input
The buffer holding the input data.
in_len
The length of the input data in Bytes.
output
The buffer holding the generated 16 Bytes of pseudorandom output.
Return value
\c 0 on success.
mbedtls_aes_cmac_prf_128() is called by 1 function and calls 3 functions:
![]()
mbedtls_aes_cmac_prf_128()
mbedtls_aes_cmac_prf_128() reads 1 variable:
![]()
mbedtls_aes_cmac_prf_128()