Function hacl::hazmat::curve25519::ecdh
source ยท pub fn ecdh(
private_key: &[u8; 32],
public_key: &[u8; 32],
) -> Result<[u8; 32], Error>Expand description
Compute the ECDH with the private_key and public_key.
Returns the 32 bytes shared key.