Function hacl::ecdh::key_gen

source ยท
pub fn key_gen(mode: Mode) -> Result<Vec<u8>, Error>
Expand description

Generate a random Scalar on the given curve.

Returns the scalar key bytes as u8 vector.