Function esp_idf_sys::mbedtls_ssl_tls_prf
source ยท pub unsafe extern "C" fn mbedtls_ssl_tls_prf(
prf: mbedtls_tls_prf_types,
secret: *const c_uchar,
slen: usize,
label: *const c_char,
random: *const c_uchar,
rlen: usize,
dstbuf: *mut c_uchar,
dlen: usize,
) -> c_int
Expand description
\brief TLS-PRF function for key derivation.
\param prf The tls_prf type function type to be used. \param secret Secret for the key derivation function. \param slen Length of the secret. \param label String label for the key derivation function, terminated with null character. \param random Random bytes. \param rlen Length of the random bytes buffer. \param dstbuf The buffer holding the derived key. \param dlen Length of the output buffer.
\return 0 on success. An SSL specific error on failure.