[−][src]Trait ecdsa::hazmat::SignPrimitive
This is supported on
feature="hazmat"
only.Try to sign the given prehashed message using ECDSA.
This trait is intended to be implemented on a type with access
to the secret scalar via &self
, such as particular curve's Scalar
type,
or potentially a key handle to a hardware device.
Required methods
fn try_sign_prehashed<K: Borrow<C::Scalar> + Invert<Output = C::Scalar>>(
&self,
ephemeral_scalar: &K,
hashed_msg: &ElementBytes<C>
) -> Result<Signature<C>, Error>
&self,
ephemeral_scalar: &K,
hashed_msg: &ElementBytes<C>
) -> Result<Signature<C>, Error>
This is supported on
feature="hazmat"
only.Try to sign the prehashed message.
Accepts the following arguments:
ephemeral_scalar
: ECDSAk
value. MUST BE UNIFORMLY RANDOM!!!hashed_msg
: hashed message digest to be signed. MUST BE OUTPUT OF A CRYPTOGRAPHICALLY SECURE DIGEST ALGORITHM!!!
Implementors
impl<C, T> SignPrimitive<C> for T where
C: Curve + Arithmetic,
T: RecoverableSignPrimitive<C>,
SignatureSize<C>: ArrayLength<u8>,
[src]
C: Curve + Arithmetic,
T: RecoverableSignPrimitive<C>,
SignatureSize<C>: ArrayLength<u8>,