pub trait VerifyingKey {
// Required method
fn verify(
&self,
algorithm: SignatureAlgorithm,
signed_data: &[u8],
signature_value: &[u8],
) -> Result<bool, SignatureVerificationPipelineError>;
}Expand description
Cryptographic verifier used by VerifyContext.
This trait intentionally has no Send + Sync supertraits so lightweight
single-threaded verifiers can be used without additional bounds.
Required Methods§
Sourcefn verify(
&self,
algorithm: SignatureAlgorithm,
signed_data: &[u8],
signature_value: &[u8],
) -> Result<bool, SignatureVerificationPipelineError>
fn verify( &self, algorithm: SignatureAlgorithm, signed_data: &[u8], signature_value: &[u8], ) -> Result<bool, SignatureVerificationPipelineError>
Verify signature_value over signed_data with the declared algorithm.