[][src]Trait ecdsa::hazmat::VerifyPrimitive

pub trait VerifyPrimitive<C> where
    C: Curve,
    SignatureSize<C>: ArrayLength<u8>, 
{ fn verify_prehashed(
        &self,
        hashed_msg: &ElementBytes<C>,
        signature: &Signature<C>
    ) -> Result<(), Error>; }
This is supported on feature="hazmat" only.

Verify the given prehashed message using ECDSA.

This trait is intended to be implemented on type which can access the affine point represeting the public key via &self, such as a particular curve's AffinePoint type.

Required methods

fn verify_prehashed(
    &self,
    hashed_msg: &ElementBytes<C>,
    signature: &Signature<C>
) -> Result<(), Error>

This is supported on feature="hazmat" only.

Verify the prehashed message against the provided signature

Accepts the following arguments:

  • verify_key: public key to verify the signature against
  • hashed_msg: prehashed message to be verified
  • signature: signature to be verified against the key and message
Loading content...

Implementors

Loading content...