Function hacl::hazmat::curve25519::secret_to_public

source ยท
pub fn secret_to_public(private_key: &[u8; 32]) -> [u8; 32]
Expand description

Compute the public key for the provided private_key (scalar multiplication with the base point).

Returns the 32 bytes shared key.