pub struct P256Verifier { /* private fields */ }Expand description
A local ES256 verifier over one or more pinned P-256 public keys, looked
up by key id.
Implementations§
Trait Implementations§
Source§impl Verifier for P256Verifier
impl Verifier for P256Verifier
Source§async fn verify(
&self,
key_id: &KeyId,
algorithm: SignatureAlgorithm,
_protected_headers: &ProtectedHeaders,
sig_structure: &[u8],
signature: &Signature,
) -> Result<(), VerifyError>
async fn verify( &self, key_id: &KeyId, algorithm: SignatureAlgorithm, _protected_headers: &ProtectedHeaders, sig_structure: &[u8], signature: &Signature, ) -> Result<(), VerifyError>
Verify
signature over the exact Sig_structure bytes, produced by
the key key_id under algorithm. Read moreAuto Trait Implementations§
impl Freeze for P256Verifier
impl RefUnwindSafe for P256Verifier
impl Send for P256Verifier
impl Sync for P256Verifier
impl Unpin for P256Verifier
impl UnsafeUnpin for P256Verifier
impl UnwindSafe for P256Verifier
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