Skip to main content

generate_random_scalar

Function generate_random_scalar 

Source
pub fn generate_random_scalar<R: RngCore + CryptoRng>(
    rng: &mut R,
) -> Result<[u8; 32], Error>
Expand description

Generate a random scalar for DH operations using X25519