pub fn verify_prehashed<C>(
q: &<C as CurveArithmetic>::ProjectivePoint,
z: &GenericArray<u8, <C as Curve>::FieldBytesSize>,
sig: &Signature<C>,
) -> Result<(), Error>where
C: PrimeCurve + CurveArithmetic,
<<C as Curve>::FieldBytesSize as Add>::Output: ArrayLength<u8>,
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.