struct AwsLcRsAlgorithm {
public_key_alg_id: AlgorithmIdentifier,
signature_alg_id: AlgorithmIdentifier,
verification_alg: &'static dyn VerificationAlgorithm,
}
Expand description
A SignatureVerificationAlgorithm
implemented using aws-lc-rs.
Fields§
§public_key_alg_id: AlgorithmIdentifier
§signature_alg_id: AlgorithmIdentifier
§verification_alg: &'static dyn VerificationAlgorithm
Trait Implementations§
Source§impl Debug for AwsLcRsAlgorithm
impl Debug for AwsLcRsAlgorithm
Source§impl SignatureVerificationAlgorithm for AwsLcRsAlgorithm
impl SignatureVerificationAlgorithm for AwsLcRsAlgorithm
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.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
Auto Trait Implementations§
impl Freeze for AwsLcRsAlgorithm
impl !RefUnwindSafe for AwsLcRsAlgorithm
impl Send for AwsLcRsAlgorithm
impl Sync for AwsLcRsAlgorithm
impl Unpin for AwsLcRsAlgorithm
impl !UnwindSafe for AwsLcRsAlgorithm
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