pub enum JweAlgorithm {
Show 15 variants
Dir,
A128KW,
A192KW,
A256KW,
A128Gcmkw,
A192Gcmkw,
A256Gcmkw,
RsaOaep256,
EcdhEs,
EcdhEsA128kw,
EcdhEsA192kw,
EcdhEsA256kw,
Pbes2Hs256A128kw,
Pbes2Hs384A192kw,
Pbes2Hs512A256kw,
}Expand description
JWE key management algorithm.
Variants§
Dir
Direct use of a shared symmetric key
A128KW
AES Key Wrap (128-bit)
A192KW
AES Key Wrap (192-bit)
A256KW
AES Key Wrap (256-bit)
A128Gcmkw
AES GCM key wrapping with a 128-bit key (RFC 7518 §4.7)
A192Gcmkw
AES GCM key wrapping with a 192-bit key (RFC 7518 §4.7)
A256Gcmkw
AES GCM key wrapping with a 256-bit key (RFC 7518 §4.7)
RsaOaep256
RSAES-OAEP using SHA-256 and MGF1 with SHA-256
EcdhEs
ECDH-ES
EcdhEsA128kw
ECDH-ES + A128KW
EcdhEsA192kw
ECDH-ES + A192KW
EcdhEsA256kw
ECDH-ES + A256KW
Pbes2Hs256A128kw
PBES2-HS256+A128KW
Pbes2Hs384A192kw
PBES2-HS384+A192KW
Pbes2Hs512A256kw
PBES2-HS512+A256KW
Implementations§
Source§impl JweAlgorithm
impl JweAlgorithm
Sourcepub fn from_str(s: &str) -> Result<Self>
pub fn from_str(s: &str) -> Result<Self>
Parse an exact JOSE alg name, also available through str::parse.
§Errors
Returns JoseError::UnsupportedAlgorithm if this build does not recognize the name.
Trait Implementations§
Source§impl Clone for JweAlgorithm
impl Clone for JweAlgorithm
impl Copy for JweAlgorithm
Source§impl Debug for JweAlgorithm
impl Debug for JweAlgorithm
Source§impl<'de> Deserialize<'de> for JweAlgorithm
impl<'de> Deserialize<'de> for JweAlgorithm
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 JweAlgorithm
Source§impl FromStr for JweAlgorithm
impl FromStr for JweAlgorithm
Source§impl Hash for JweAlgorithm
impl Hash for JweAlgorithm
Source§impl PartialEq for JweAlgorithm
impl PartialEq for JweAlgorithm
Source§impl Serialize for JweAlgorithm
impl Serialize for JweAlgorithm
impl StructuralPartialEq for JweAlgorithm
Auto Trait Implementations§
impl Forget for JweAlgorithm
impl Freeze for JweAlgorithm
impl Move for JweAlgorithm
impl RefUnwindSafe for JweAlgorithm
impl Send for JweAlgorithm
impl Sync for JweAlgorithm
impl Unpin for JweAlgorithm
impl UnsafeUnpin for JweAlgorithm
impl UnwindSafe for JweAlgorithm
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