Enum compact_jwt::compact::JweEnc
source · pub enum JweEnc {
A128GCM,
A256GCM,
A128CBC_HS256,
}
Expand description
Encipherment algorithm
Variants§
A128GCM
AES 128 GCM. Header is authenticated but not encrypted, the payload is encrypted and authenticated.
A256GCM
AES 256 GCM. Header is authenticated but not encrypted, the payload is encrypted and authenticated.
A128CBC_HS256
AES 128 CBC with HMAC 256 WARNING: Decrypted values may not be correct as the CEK is not HMACed.
Trait Implementations§
source§impl<'de> Deserialize<'de> for JweEnc
impl<'de> Deserialize<'de> for JweEnc
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for JweEnc
impl PartialEq for JweEnc
impl Copy for JweEnc
impl StructuralPartialEq for JweEnc
Auto Trait Implementations§
impl Freeze for JweEnc
impl RefUnwindSafe for JweEnc
impl Send for JweEnc
impl Sync for JweEnc
impl Unpin for JweEnc
impl UnwindSafe for JweEnc
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