pub enum SymmetricDefinitionObject {
Aes {
key_bits: AesKeyBits,
mode: SymmetricMode,
},
Sm4 {
key_bits: Sm4KeyBits,
mode: SymmetricMode,
},
Camellia {
key_bits: CamelliaKeyBits,
mode: SymmetricMode,
},
Null,
}
Expand description
Variants§
Implementations§
source§impl SymmetricDefinitionObject
impl SymmetricDefinitionObject
sourcepub const AES_128_CFB: SymmetricDefinitionObject = _
pub const AES_128_CFB: SymmetricDefinitionObject = _
Constant for the AES 128 bits CFB symmetric definition object
sourcepub const AES_256_CFB: SymmetricDefinitionObject = _
pub const AES_256_CFB: SymmetricDefinitionObject = _
Constant for the AES 256 bits CFB symmetric definition object
Trait Implementations§
source§impl Clone for SymmetricDefinitionObject
impl Clone for SymmetricDefinitionObject
source§fn clone(&self) -> SymmetricDefinitionObject
fn clone(&self) -> SymmetricDefinitionObject
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 SymmetricDefinitionObject
impl Debug for SymmetricDefinitionObject
source§impl Default for SymmetricDefinitionObject
impl Default for SymmetricDefinitionObject
source§impl From<SymmetricDefinitionObject> for SymmetricDefinition
impl From<SymmetricDefinitionObject> for SymmetricDefinition
source§fn from(sym_def_obj: SymmetricDefinitionObject) -> Self
fn from(sym_def_obj: SymmetricDefinitionObject) -> Self
Converts to this type from the input type.
source§impl From<SymmetricDefinitionObject> for TPMT_SYM_DEF_OBJECT
impl From<SymmetricDefinitionObject> for TPMT_SYM_DEF_OBJECT
source§fn from(
symmetric_definition_object: SymmetricDefinitionObject
) -> TPMT_SYM_DEF_OBJECT
fn from( symmetric_definition_object: SymmetricDefinitionObject ) -> TPMT_SYM_DEF_OBJECT
Converts to this type from the input type.
source§impl PartialEq for SymmetricDefinitionObject
impl PartialEq for SymmetricDefinitionObject
source§fn eq(&self, other: &SymmetricDefinitionObject) -> bool
fn eq(&self, other: &SymmetricDefinitionObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Cipher> for SymmetricDefinitionObject
impl TryFrom<Cipher> for SymmetricDefinitionObject
source§impl TryFrom<TPMT_SYM_DEF_OBJECT> for SymmetricDefinitionObject
impl TryFrom<TPMT_SYM_DEF_OBJECT> for SymmetricDefinitionObject
source§fn try_from(
tpmt_sym_def_object: TPMT_SYM_DEF_OBJECT
) -> Result<SymmetricDefinitionObject>
fn try_from( tpmt_sym_def_object: TPMT_SYM_DEF_OBJECT ) -> Result<SymmetricDefinitionObject>
Performs the conversion.
impl Copy for SymmetricDefinitionObject
impl Eq for SymmetricDefinitionObject
impl StructuralPartialEq for SymmetricDefinitionObject
Auto Trait Implementations§
impl Freeze for SymmetricDefinitionObject
impl RefUnwindSafe for SymmetricDefinitionObject
impl Send for SymmetricDefinitionObject
impl Sync for SymmetricDefinitionObject
impl Unpin for SymmetricDefinitionObject
impl UnwindSafe for SymmetricDefinitionObject
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