pub enum JweEncryption {
A128CbcHs256,
A192CbcHs384,
A256CbcHs512,
A128GCM,
A192GCM,
A256GCM,
}Expand description
JWE content encryption algorithm.
Variants§
A128CbcHs256
AES-CBC using 128-bit key with HMAC SHA-256
A192CbcHs384
AES-CBC using 192-bit key with HMAC SHA-384
A256CbcHs512
AES-CBC using 256-bit key with HMAC SHA-512
A128GCM
AES-GCM using 128-bit key
A192GCM
AES-GCM using 192-bit key
A256GCM
AES-GCM using 256-bit key
Implementations§
Source§impl JweEncryption
impl JweEncryption
Sourcepub fn from_str(s: &str) -> Result<Self>
pub fn from_str(s: &str) -> Result<Self>
Parse an exact JOSE enc name, also available through str::parse.
§Errors
Returns JoseError::UnsupportedAlgorithm if this build does not recognize the name.
Trait Implementations§
Source§impl Clone for JweEncryption
impl Clone for JweEncryption
impl Copy for JweEncryption
Source§impl Debug for JweEncryption
impl Debug for JweEncryption
Source§impl<'de> Deserialize<'de> for JweEncryption
impl<'de> Deserialize<'de> for JweEncryption
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
impl Eq for JweEncryption
Source§impl FromStr for JweEncryption
impl FromStr for JweEncryption
Source§impl Hash for JweEncryption
impl Hash for JweEncryption
Source§impl PartialEq for JweEncryption
impl PartialEq for JweEncryption
Source§impl Serialize for JweEncryption
impl Serialize for JweEncryption
impl StructuralPartialEq for JweEncryption
Auto Trait Implementations§
impl Forget for JweEncryption
impl Freeze for JweEncryption
impl Move for JweEncryption
impl RefUnwindSafe for JweEncryption
impl Send for JweEncryption
impl Sync for JweEncryption
impl Unpin for JweEncryption
impl UnsafeUnpin for JweEncryption
impl UnwindSafe for JweEncryption
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