[−][src]Struct tss_esapi::utils::TpmtSymDefBuilder
Builder for TPMT_SYM_DEF objects.
Methods
impl TpmtSymDefBuilder[src]
pub fn new() -> Self[src]
Create a new builder with default (i.e. empty or null) placeholder values.
pub fn with_algorithm(self, algorithm: TPM2_ALG_ID) -> Self[src]
Set the symmetric algorithm.
pub fn with_key_bits(self, key_bits: TPM2_KEY_BITS) -> Self[src]
Set the key length.
pub fn with_hash(self, hash: TPM2_ALG_ID) -> Self[src]
Set the hash algorithm (applies when the symmetric algorithm is XOR).
pub fn with_mode(self, mode: TPM2_ALG_ID) -> Self[src]
Set the mode of the symmetric algorithm.
pub fn build_object(self) -> Result<TPMT_SYM_DEF_OBJECT>[src]
Build the object given the previously provided parameters.
Errors
- if an unrecognized symmetric algorithm type was set,
InconsistentParamswrapper error is returned.
pub fn aes_256_cfb() -> TPMT_SYM_DEF[src]
Generate a TPMT_SYM_DEF object defining 256 bit AES in CFB mode.
pub fn aes_256_cfb_object() -> TPMT_SYM_DEF_OBJECT[src]
Generate a TPMT_SYM_DEF_OBJECT object defining 256 bit AES in CFB mode.
Trait Implementations
impl Clone for TpmtSymDefBuilder[src]
fn clone(&self) -> TpmtSymDefBuilder[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for TpmtSymDefBuilder[src]
impl Debug for TpmtSymDefBuilder[src]
impl Default for TpmtSymDefBuilder[src]
Auto Trait Implementations
impl RefUnwindSafe for TpmtSymDefBuilder
impl Send for TpmtSymDefBuilder
impl Sync for TpmtSymDefBuilder
impl Unpin for TpmtSymDefBuilder
impl UnwindSafe for TpmtSymDefBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Free for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,