Enum tss_esapi::structures::Sensitive
source · pub enum Sensitive {
Rsa {
auth_value: Auth,
seed_value: Digest,
sensitive: PrivateKeyRsa,
},
Ecc {
auth_value: Auth,
seed_value: Digest,
sensitive: EccParameter,
},
Bits {
auth_value: Auth,
seed_value: Digest,
sensitive: SensitiveData,
},
Symmetric {
auth_value: Auth,
seed_value: Digest,
sensitive: SymmetricKey,
},
}
Expand description
Variants§
Implementations§
source§impl Sensitive
impl Sensitive
sourcepub fn auth_value(&self) -> &Auth
pub fn auth_value(&self) -> &Auth
Get the authentication value of the object
sourcepub fn seed_value(&self) -> &Digest
pub fn seed_value(&self) -> &Digest
Get the seed value of the object
pub fn sensitive_type(&self) -> PublicAlgorithm
Trait Implementations§
source§impl From<Sensitive> for TPMT_SENSITIVE
impl From<Sensitive> for TPMT_SENSITIVE
source§impl Marshall for Sensitive
impl Marshall for Sensitive
source§fn marshall(&self) -> Result<Vec<u8>>
fn marshall(&self) -> Result<Vec<u8>>
Produce a marshalled TPMT_SENSITIVE
Note: for TPM2B_SENSITIVE marshalling use SensitiveBuffer
const BUFFER_SIZE: usize = 1_416usize
source§impl PartialEq for Sensitive
impl PartialEq for Sensitive
source§impl TryFrom<Sensitive> for SensitiveBuffer
impl TryFrom<Sensitive> for SensitiveBuffer
source§impl TryFrom<Sensitive> for TPM2B_SENSITIVE
impl TryFrom<Sensitive> for TPM2B_SENSITIVE
source§impl TryFrom<SensitiveBuffer> for Sensitive
impl TryFrom<SensitiveBuffer> for Sensitive
source§impl TryFrom<TPM2B_SENSITIVE> for Sensitive
impl TryFrom<TPM2B_SENSITIVE> for Sensitive
source§impl TryFrom<TPMT_SENSITIVE> for Sensitive
impl TryFrom<TPMT_SENSITIVE> for Sensitive
source§impl UnMarshall for Sensitive
impl UnMarshall for Sensitive
source§fn unmarshall(marshalled_data: &[u8]) -> Result<Self>
fn unmarshall(marshalled_data: &[u8]) -> Result<Self>
Unmarshall the structure from TPMT_SENSITIVE
Note: for TPM2B_SENSITIVE marshalling use SensitiveBuffer
impl Eq for Sensitive
impl StructuralPartialEq for Sensitive
Auto Trait Implementations§
impl Freeze for Sensitive
impl RefUnwindSafe for Sensitive
impl Send for Sensitive
impl Sync for Sensitive
impl Unpin for Sensitive
impl UnwindSafe for Sensitive
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