pub trait VerifyCustomHook<C>: WeierstrassPoint{
// Provided method
fn verify_hook(&self, _z: &[u8], _sig: &Signature<C>) -> Result<()> { ... }
}
Expand description
To match the RustCrypto trait [VerifyPrimitive]. Certain curves have special verification logic outside of the general ECDSA verification algorithm. This trait provides a hook for such logic.
This trait is intended to be implemented on type which can access
the affine point representing the public key via &self
, such as a
particular curve’s AffinePoint
type.
Provided Methods§
Sourcefn verify_hook(&self, _z: &[u8], _sig: &Signature<C>) -> Result<()>
fn verify_hook(&self, _z: &[u8], _sig: &Signature<C>) -> Result<()>
This is NOT the full ECDSA signature verification algorithm. The implementer should only add additional verification logic not contained in verify_prehashed. The default implementation does nothing.
Accepts the following arguments:
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.