Function nettle::curve25519::mul
source · pub fn mul(q: &mut [u8], n: &[u8], p: &[u8]) -> Result<()>
Expand description
Derive DH shared secret.
Computes the shared secret q
for our private key n
and the
other parties public key p
. Returns an error if q
, n
, or
p
are not CURVE25519_SIZE
bytes long.