#[repr(usize)]pub enum KeyOps {
Encrypt = 1,
Decrypt = 2,
Sign = 4,
Verify = 8,
WrapKey = 16,
UnwrapKey = 32,
DeriveKey = 64,
DeriveBits = 128,
}Expand description
Supported JWK key operations
Variants§
Encrypt = 1
Allows encryption
Decrypt = 2
Allows decryption
Sign = 4
Allows signature creation
Verify = 8
Allows signature verification
WrapKey = 16
Allows key wrapping
UnwrapKey = 32
Allows key unwrapping
DeriveKey = 64
Allows key derivation
DeriveBits = 128
Allows derivation of bytes
Implementations§
Trait Implementations§
Source§impl Ord for KeyOps
impl Ord for KeyOps
Source§impl PartialOrd for KeyOps
impl PartialOrd for KeyOps
impl Copy for KeyOps
impl Eq for KeyOps
impl StructuralPartialEq for KeyOps
Auto Trait Implementations§
impl Freeze for KeyOps
impl RefUnwindSafe for KeyOps
impl Send for KeyOps
impl Sync for KeyOps
impl Unpin for KeyOps
impl UnwindSafe for KeyOps
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