Function ecdsa::hazmat::verify_prehashed

source ·
pub fn verify_prehashed<C>(
    q: &ProjectivePoint<C>,
    z: &FieldBytes<C>,
    sig: &Signature<C>
) -> Result<()>where
    C: PrimeCurve + CurveArithmetic,
    SignatureSize<C>: ArrayLength<u8>,
Available on crate features hazmat and arithmetic only.
Expand description

Verify the prehashed message against the provided ECDSA signature.

Accepts the following arguments:

  • q: public key with which to verify the signature.
  • z: message digest to be verified. MUST BE OUTPUT OF A CRYPTOGRAPHICALLY SECURE DIGEST ALGORITHM!!!
  • sig: signature to be verified against the key and message.