pub unsafe extern "C" fn s2n_external_psk_new() -> *mut s2n_psk
Expand description
Creates a new s2n external pre-shared key (PSK) object with S2N_PSK_HMAC_SHA256
as the default
PSK hash algorithm. An external PSK is a key established outside of TLS using a secure mutually agreed upon mechanism.
Use s2n_psk_free
to free the memory allocated to the s2n external PSK object created by this API.
@returns struct s2n_psk* Returns a pointer to the newly created external PSK object.