Struct jws::hmac::HmacVerifier [−][src]
Expand description
Message verifier that supports the HMAC-SHA-256, HMAC-SHA-384 and HMAC-SHA-512 algorithms using rust-crypto
.
The wrapped key type may be anything that implements AsRef<[u8]>
.
You can use a Vec<u8>
to have the verifier own the key,
or a &[u8]
to prevent copying the key more than necessary.
Implementations
Trait Implementations
Verify the signature of a JWS message. Read more
Create a new verifier that accepts a message if either this or the other verifier does.
Auto Trait Implementations
impl<Key> RefUnwindSafe for HmacVerifier<Key> where
Key: RefUnwindSafe,
impl<Key> Send for HmacVerifier<Key> where
Key: Send,
impl<Key> Sync for HmacVerifier<Key> where
Key: Sync,
impl<Key> Unpin for HmacVerifier<Key> where
Key: Unpin,
impl<Key> UnwindSafe for HmacVerifier<Key> where
Key: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more