Enum tss_esapi::structures::SymmetricDefinition
source · pub enum SymmetricDefinition {
Aes {
key_bits: AesKeyBits,
mode: SymmetricMode,
},
Sm4 {
key_bits: Sm4KeyBits,
mode: SymmetricMode,
},
Camellia {
key_bits: CamelliaKeyBits,
mode: SymmetricMode,
},
Xor {
hashing_algorithm: HashingAlgorithm,
},
Null,
}
Expand description
Variants§
Implementations§
source§impl SymmetricDefinition
impl SymmetricDefinition
sourcepub const AES_128_CFB: SymmetricDefinition = _
pub const AES_128_CFB: SymmetricDefinition = _
Constant for the AES 128 bits CFB symmetric definition
sourcepub const AES_256_CFB: SymmetricDefinition = _
pub const AES_256_CFB: SymmetricDefinition = _
Constant for the AES 128 bits CFB symmetric definition
Trait Implementations§
source§impl Clone for SymmetricDefinition
impl Clone for SymmetricDefinition
source§fn clone(&self) -> SymmetricDefinition
fn clone(&self) -> SymmetricDefinition
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 SymmetricDefinition
impl Debug for SymmetricDefinition
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 PartialEq for SymmetricDefinition
impl PartialEq for SymmetricDefinition
source§fn eq(&self, other: &SymmetricDefinition) -> bool
fn eq(&self, other: &SymmetricDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Cipher> for SymmetricDefinition
impl TryFrom<Cipher> for SymmetricDefinition
source§impl TryFrom<SymmetricDefinition> for TPMT_SYM_DEF
impl TryFrom<SymmetricDefinition> for TPMT_SYM_DEF
source§fn try_from(symmetric_definition: SymmetricDefinition) -> Result<TPMT_SYM_DEF>
fn try_from(symmetric_definition: SymmetricDefinition) -> Result<TPMT_SYM_DEF>
Performs the conversion.
source§impl TryFrom<TPMT_SYM_DEF> for SymmetricDefinition
impl TryFrom<TPMT_SYM_DEF> for SymmetricDefinition
source§fn try_from(tpmt_sym_def: TPMT_SYM_DEF) -> Result<SymmetricDefinition>
fn try_from(tpmt_sym_def: TPMT_SYM_DEF) -> Result<SymmetricDefinition>
Performs the conversion.
impl Copy for SymmetricDefinition
impl Eq for SymmetricDefinition
impl StructuralPartialEq for SymmetricDefinition
Auto Trait Implementations§
impl Freeze for SymmetricDefinition
impl RefUnwindSafe for SymmetricDefinition
impl Send for SymmetricDefinition
impl Sync for SymmetricDefinition
impl Unpin for SymmetricDefinition
impl UnwindSafe for SymmetricDefinition
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