dtls_psk_pre_master_secret method
Generates pre_master_sercet from given PSK and fills the result according to the "plain PSK" case in section 2 of RFC 4279. Diffie-Hellman and RSA key exchange are currently not supported.
@param key The shared key. @param keylen Length of @p key in bytes. @param result The derived pre master secret. @return The actual length of @p result.
Implementation
int dtls_psk_pre_master_secret(
ffi.Pointer<ffi.Uint8> key,
int keylen,
ffi.Pointer<ffi.Uint8> result,
int result_len,
) {
return _dtls_psk_pre_master_secret(
key,
keylen,
result,
result_len,
);
}