Function nettle::curve25519::mul_g[][src]

pub fn mul_g(q: &mut [u8], n: &[u8]) -> Result<()>

Derive DH public key.

Computes the public key q for a given secret n. Returns an error if q or n are not CURVE25519_SIZE bytes long.