Enum josekit::jwe::alg::pbes2_hmac_aeskw::Pbes2HmacAeskwJweAlgorithm [−][src]
pub enum Pbes2HmacAeskwJweAlgorithm {
Pbes2Hs256A128kw,
Pbes2Hs384A192kw,
Pbes2Hs512A256kw,
}
Variants
PBES2 with HMAC SHA-256 and “A128KW” wrapping
PBES2 with HMAC SHA-384 and “A192KW” wrapping
PBES2 with HMAC SHA-512 and “A256KW” wrapping
Implementations
pub fn encrypter_from_bytes(
&self,
input: impl AsRef<[u8]>
) -> Result<Pbes2HmacAeskwJweEncrypter, JoseError>
pub fn decrypter_from_bytes(
&self,
input: impl AsRef<[u8]>
) -> Result<Pbes2HmacAeskwJweDecrypter, JoseError>
Trait Implementations
type Target = dyn JweAlgorithm
type Target = dyn JweAlgorithm
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for Pbes2HmacAeskwJweAlgorithm
impl Send for Pbes2HmacAeskwJweAlgorithm
impl Sync for Pbes2HmacAeskwJweAlgorithm
impl Unpin for Pbes2HmacAeskwJweAlgorithm
impl UnwindSafe for Pbes2HmacAeskwJweAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.