ecdsa::hazmat

Function verify_prehashed

Source
pub fn verify_prehashed<C>(
    q: &ProjectivePoint<C>,
    z: &FieldBytes<C>,
    sig: &Signature<C>,
) -> Result<()>
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.