pub unsafe extern "C" fn mbedtls_ssl_tls_prf(
    prf: u32,
    secret: *const u8,
    slen: usize,
    label: *const i8,
    random: *const u8,
    rlen: usize,
    dstbuf: *mut u8,
    dlen: usize
) -> i32
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.