[−][src]Trait elliptic_curve::Generate
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
Implementors
impl<C> Generate for NonZeroScalar<C> where
C: Curve + Arithmetic,
C::Scalar: Generate,
[src]
C: Curve + Arithmetic,
C::Scalar: Generate,
impl<C> Generate for SecretKey<C> where
C: Curve + Arithmetic,
C::Scalar: Generate + Into<ElementBytes<C>>,
[src]
C: Curve + Arithmetic,
C::Scalar: Generate + Into<ElementBytes<C>>,