Skip to main content

RandomSecretKey

Trait RandomSecretKey 

pub trait RandomSecretKey {
    // Required method
    fn random_secret_key(csprng: &mut impl CryptoRng) -> Self;
}
Expand description

Curve implementation agnostic interface for generating random secret keys

Required Methods§

fn random_secret_key(csprng: &mut impl CryptoRng) -> Self

Create a secret key from provided RNG.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl RandomSecretKey for StaticSecret

§

fn random_secret_key(csprng: &mut impl CryptoRng) -> Self

§

impl<C: CurveArithmetic> RandomSecretKey for SecretKey<C>

§

fn random_secret_key(csprng: &mut impl CryptoRng) -> Self

Implementors§

§

impl RandomSecretKey for ecdh_omr::dalek_ristretto255::StaticSecret