pub unsafe extern "C" fn Hacl_P256_dh_responder(
shared_secret: *mut u8,
their_pubkey: *mut u8,
private_key: *mut u8,
) -> bool
Expand description
Execute the diffie-hellmann key exchange.
The function returns true
for successful creation of an ECDH shared secret and
false
otherwise.
The outparam shared_secret
points to 64 bytes of valid memory, i.e., uint8_t[64].
The argument their_pubkey
points to 64 bytes of valid memory, i.e., uint8_t[64].
The argument private_key
points to 32 bytes of valid memory, i.e., uint8_t[32].
The function also checks whether private_key
and their_pubkey
are valid.