Function ecdsa::rfc6979::generate_k [−][src]
pub fn generate_k<C, D>(
secret_scalar: &NonZeroScalar<C>,
msg_digest: D,
additional_data: &[u8]
) -> Zeroizing<NonZeroScalar<C>> where
C: Curve + ProjectiveArithmetic,
D: FixedOutput<OutputSize = FieldSize<C>> + BlockInput + Clone + Default + Reset + Update,
Scalar<C>: FromDigest<C> + Invert<Output = Scalar<C>> + Zeroize,
This is supported on crate feature
sign
only.Expand description
Generate ephemeral scalar k
from the secret scalar and a digest of the
input message.