pub enum JweKeyManagement<'a> {
Direct(&'a str),
RsaOaep(&'a str),
RsaOaep256(&'a str),
EcdhEs(&'a str),
EcdhEsA128kw(&'a str),
EcdhEsA256kw(&'a str),
A128kw(&'a str),
A256kw(&'a str),
}Expand description
JWE key management algorithms supported.
For asymmetric algorithms (RSA, ECDH-ES), use a public key for encryption and the corresponding private key for decryption.
Variants§
Direct(&'a str)
Direct encryption - symmetric key used directly
RsaOaep(&'a str)
RSA-OAEP key encryption
RsaOaep256(&'a str)
RSA-OAEP-256 key encryption
EcdhEs(&'a str)
ECDH-ES key agreement
EcdhEsA128kw(&'a str)
ECDH-ES+A128KW key agreement with AES key wrap
EcdhEsA256kw(&'a str)
ECDH-ES+A256KW key agreement with AES key wrap
A128kw(&'a str)
AES128 Key Wrap
A256kw(&'a str)
AES256 Key Wrap
Auto Trait Implementations§
impl<'a> Freeze for JweKeyManagement<'a>
impl<'a> RefUnwindSafe for JweKeyManagement<'a>
impl<'a> Send for JweKeyManagement<'a>
impl<'a> Sync for JweKeyManagement<'a>
impl<'a> Unpin for JweKeyManagement<'a>
impl<'a> UnsafeUnpin for JweKeyManagement<'a>
impl<'a> UnwindSafe for JweKeyManagement<'a>
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