pub struct Algorithm { /* private fields */ }Expand description
A signature verify algorithm type
Trait Implementations§
source§impl PartialEq for Algorithm
impl PartialEq for Algorithm
source§impl SignatureVerificationAlgorithm for Algorithm
impl SignatureVerificationAlgorithm for Algorithm
source§fn verify_signature(
&self,
public_key: &[u8],
message: &[u8],
signature: &[u8]
) -> Result<(), InvalidSignature>
fn verify_signature( &self, public_key: &[u8], message: &[u8], signature: &[u8] ) -> Result<(), InvalidSignature>
Verify a signature. Read more
source§fn public_key_alg_id(&self) -> AlgorithmIdentifier
fn public_key_alg_id(&self) -> AlgorithmIdentifier
Return the
AlgorithmIdentifier that must equal a public key’s
subjectPublicKeyInfo value for this SignatureVerificationAlgorithm
to be used for signature verification.source§fn signature_alg_id(&self) -> AlgorithmIdentifier
fn signature_alg_id(&self) -> AlgorithmIdentifier
Return the
AlgorithmIdentifier that must equal the signatureAlgorithm value
on the data to be verified for this SignatureVerificationAlgorithm to be used
for signature verification.impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more