pub struct Algorithm { /* private fields */ }
Expand description
A signature verify algorithm type
Trait Implementations§
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 Freeze for Algorithm
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