pub enum JweKey {
Symmetric([u8; 32]),
EcdhPrivate(SecretKey),
}Expand description
Key types for JWE decryption.
Variants§
Symmetric([u8; 32])
A 256-bit symmetric key for A256KW.
EcdhPrivate(SecretKey)
An ECDH P-256 private key for ECDH-ES.
Auto Trait Implementations§
impl Freeze for JweKey
impl RefUnwindSafe for JweKey
impl Send for JweKey
impl Sync for JweKey
impl Unpin for JweKey
impl UnsafeUnpin for JweKey
impl UnwindSafe for JweKey
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