#[non_exhaustive]pub enum JsonWebEncryptionAlg {
Show 20 variants
Rsa15,
RsaOaep,
RsaOaep256,
A128Kw,
A192Kw,
A256Kw,
Dir,
EcdhEs,
EcdhEsA128Kw,
EcdhEsA192Kw,
EcdhEsA256Kw,
A128Gcmkw,
A192Gcmkw,
A256Gcmkw,
Pbes2Hs256A128Kw,
Pbes2Hs384A192Kw,
Pbes2Hs512A256Kw,
RsaOaep384,
RsaOaep512,
Unknown(String),
}
Expand description
JSON Web Encryption “alg” parameter
Source: http://www.iana.org/assignments/jose/web-signature-encryption-algorithms.csv
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Rsa15
RSAES-PKCS1-v1_5
RsaOaep
RSAES OAEP using default parameters
RsaOaep256
RSAES OAEP using SHA-256 and MGF1 with SHA-256
A128Kw
AES Key Wrap using 128-bit key
A192Kw
AES Key Wrap using 192-bit key
A256Kw
AES Key Wrap using 256-bit key
Dir
Direct use of a shared symmetric key
EcdhEs
ECDH-ES using Concat KDF
EcdhEsA128Kw
ECDH-ES using Concat KDF and “A128KW” wrapping
EcdhEsA192Kw
ECDH-ES using Concat KDF and “A192KW” wrapping
EcdhEsA256Kw
ECDH-ES using Concat KDF and “A256KW” wrapping
A128Gcmkw
Key wrapping with AES GCM using 128-bit key
A192Gcmkw
Key wrapping with AES GCM using 192-bit key
A256Gcmkw
Key wrapping with AES GCM using 256-bit key
Pbes2Hs256A128Kw
PBES2 with HMAC SHA-256 and “A128KW” wrapping
Pbes2Hs384A192Kw
PBES2 with HMAC SHA-384 and “A192KW” wrapping
Pbes2Hs512A256Kw
PBES2 with HMAC SHA-512 and “A256KW” wrapping
RsaOaep384
RSA-OAEP using SHA-384 and MGF1 with SHA-384
RsaOaep512
RSA-OAEP using SHA-512 and MGF1 with SHA-512
Unknown(String)
An unknown value.
Trait Implementations§
source§impl Clone for JsonWebEncryptionAlg
impl Clone for JsonWebEncryptionAlg
source§fn clone(&self) -> JsonWebEncryptionAlg
fn clone(&self) -> JsonWebEncryptionAlg
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JsonWebEncryptionAlg
impl Debug for JsonWebEncryptionAlg
source§impl<'de> Deserialize<'de> for JsonWebEncryptionAlg
impl<'de> Deserialize<'de> for JsonWebEncryptionAlg
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>,
source§impl Display for JsonWebEncryptionAlg
impl Display for JsonWebEncryptionAlg
source§impl FromStr for JsonWebEncryptionAlg
impl FromStr for JsonWebEncryptionAlg
source§impl Hash for JsonWebEncryptionAlg
impl Hash for JsonWebEncryptionAlg
source§impl JsonSchema for JsonWebEncryptionAlg
impl JsonSchema for JsonWebEncryptionAlg
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl Ord for JsonWebEncryptionAlg
impl Ord for JsonWebEncryptionAlg
source§fn cmp(&self, other: &JsonWebEncryptionAlg) -> Ordering
fn cmp(&self, other: &JsonWebEncryptionAlg) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for JsonWebEncryptionAlg
impl PartialEq for JsonWebEncryptionAlg
source§impl PartialOrd for JsonWebEncryptionAlg
impl PartialOrd for JsonWebEncryptionAlg
source§impl Serialize for JsonWebEncryptionAlg
impl Serialize for JsonWebEncryptionAlg
impl Eq for JsonWebEncryptionAlg
impl StructuralPartialEq for JsonWebEncryptionAlg
Auto Trait Implementations§
impl Freeze for JsonWebEncryptionAlg
impl RefUnwindSafe for JsonWebEncryptionAlg
impl Send for JsonWebEncryptionAlg
impl Sync for JsonWebEncryptionAlg
impl Unpin for JsonWebEncryptionAlg
impl UnwindSafe for JsonWebEncryptionAlg
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.