mbedtls_ssl_tls_prf() function
TLS-PRF function for key derivation.
Arguments
prf
The tls_prf type function type to be used.
secret
Secret for the key derivation function.
slen
Length of the secret.
label
String label for the key derivation function, terminated with null character.
rlen
Length of the random bytes buffer.
dstbuf
The buffer holding the derived key.
dlen
Length of the output buffer.
Return value
0 on success. An SSL specific error on failure.
mbedtls_ssl_tls_prf() reads 4 variables:
![]()
mbedtls_ssl_tls_prf()