Function nettle::curve25519::mul [−][src]
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
.
Results an error if q
, n
or p
are not CURVE25519_SIZE
bytes long.