Enum josekit::jws::alg::hmac::HmacJwsAlgorithm [−][src]
pub enum HmacJwsAlgorithm {
Hs256,
Hs384,
Hs512,
}
Variants
HMAC using SHA-256
HMAC using SHA-384
HMAC using SHA-512
Implementations
Return a signer from a secret key that is formatted by a JWK of oct type.
Arguments
jwk
- A secret key that is formatted by a JWK of oct type.
pub fn verifier_from_bytes(
&self,
input: impl AsRef<[u8]>
) -> Result<HmacJwsVerifier, JoseError>
pub fn verifier_from_bytes(
&self,
input: impl AsRef<[u8]>
) -> Result<HmacJwsVerifier, JoseError>
Return a verifier from a secret key that is formatted by a JWK of oct type.
Arguments
jwk
- A secret key that is formatted by a JWK of oct type.
Trait Implementations
type Target = dyn JwsAlgorithm
type Target = dyn JwsAlgorithm
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for HmacJwsAlgorithm
impl Send for HmacJwsAlgorithm
impl Sync for HmacJwsAlgorithm
impl Unpin for HmacJwsAlgorithm
impl UnwindSafe for HmacJwsAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.