Enum biscuit::jwa::KeyManagementAlgorithmType
source · pub enum KeyManagementAlgorithmType {
SymmetricKeyWrapping,
AsymmetricKeyEncryption,
DirectKeyAgreement,
KeyAgreementWithKeyWrapping,
DirectEncryption,
}
Expand description
Describes the type of operations that the key management algorithm supports with respect to a Content Encryption Key (CEK)
Variants§
SymmetricKeyWrapping
Wraps a randomly generated CEK using a symmetric encryption algorithm
AsymmetricKeyEncryption
Encrypt a randomly generated CEK using an asymmetric encryption algorithm,
DirectKeyAgreement
A key agreement algorithm to pick a CEK
KeyAgreementWithKeyWrapping
A key agreement algorithm used to pick a symmetric CEK and wrap the CEK with a symmetric encryption algorithm
DirectEncryption
A user defined symmetric shared key is the CEK
Trait Implementations§
source§impl Clone for KeyManagementAlgorithmType
impl Clone for KeyManagementAlgorithmType
source§fn clone(&self) -> KeyManagementAlgorithmType
fn clone(&self) -> KeyManagementAlgorithmType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyManagementAlgorithmType
impl Debug for KeyManagementAlgorithmType
source§impl<'de> Deserialize<'de> for KeyManagementAlgorithmType
impl<'de> Deserialize<'de> for KeyManagementAlgorithmType
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
source§impl PartialEq for KeyManagementAlgorithmType
impl PartialEq for KeyManagementAlgorithmType
source§fn eq(&self, other: &KeyManagementAlgorithmType) -> bool
fn eq(&self, other: &KeyManagementAlgorithmType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for KeyManagementAlgorithmType
impl Eq for KeyManagementAlgorithmType
impl StructuralEq for KeyManagementAlgorithmType
impl StructuralPartialEq for KeyManagementAlgorithmType
Auto Trait Implementations§
impl RefUnwindSafe for KeyManagementAlgorithmType
impl Send for KeyManagementAlgorithmType
impl Sync for KeyManagementAlgorithmType
impl Unpin for KeyManagementAlgorithmType
impl UnwindSafe for KeyManagementAlgorithmType
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.