Function dryoc::classic::crypto_core::crypto_scalarmult

source ·
pub fn crypto_scalarmult(q: &mut [u8; 32], n: &[u8; 32], p: &[u8; 32])
Expand description

Computes a shared secret q, given n, our secret key, and p, their public key, using a Diffie-Hellman key exchange.

Compatible with libsodium’s crypto_scalarmult.