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<Sensitive> for Sensitive
impl PartialEq<Sensitive> 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