[][src]Trait elliptic_curve::Generate

pub trait Generate {
    fn generate(rng: impl CryptoRng + RngCore) -> Self;
}
This is supported on feature="rand" only.

Randomly generate a value.

Primarily intended for use with scalar types for a particular curve.

Required methods

fn generate(rng: impl CryptoRng + RngCore) -> Self

This is supported on feature="rand" only.

Generate a random element of this type using the provided CryptoRng

Loading content...

Implementors

impl<C> Generate for NonZeroScalar<C> where
    C: Curve + Arithmetic,
    C::Scalar: Generate
[src]

impl<C> Generate for SecretKey<C> where
    C: Curve + Arithmetic,
    C::Scalar: Generate + Into<ElementBytes<C>>, 
[src]

fn generate(rng: impl CryptoRng + RngCore) -> Self[src]

This is supported on feature="rand" only.

Generate a new SecretKey

Loading content...