Enum tss_esapi::structures::Public
source · [−]pub enum Public {
Rsa {
object_attributes: ObjectAttributes,
name_hashing_algorithm: HashingAlgorithm,
auth_policy: Digest,
parameters: PublicRsaParameters,
unique: PublicKeyRsa,
},
KeyedHash {
object_attributes: ObjectAttributes,
name_hashing_algorithm: HashingAlgorithm,
auth_policy: Digest,
parameters: PublicKeyedHashParameters,
unique: Digest,
},
Ecc {
object_attributes: ObjectAttributes,
name_hashing_algorithm: HashingAlgorithm,
auth_policy: Digest,
parameters: PublicEccParameters,
unique: EccPoint,
},
SymCipher {
object_attributes: ObjectAttributes,
name_hashing_algorithm: HashingAlgorithm,
auth_policy: Digest,
parameters: SymmetricCipherParameters,
unique: Digest,
},
}Expand description
Variants
Rsa
Fields
object_attributes: ObjectAttributesname_hashing_algorithm: HashingAlgorithmauth_policy: Digestparameters: PublicRsaParametersunique: PublicKeyRsaKeyedHash
Fields
object_attributes: ObjectAttributesname_hashing_algorithm: HashingAlgorithmauth_policy: Digestparameters: PublicKeyedHashParametersunique: DigestEcc
Fields
object_attributes: ObjectAttributesname_hashing_algorithm: HashingAlgorithmauth_policy: Digestparameters: PublicEccParametersunique: EccPointSymCipher
Fields
object_attributes: ObjectAttributesname_hashing_algorithm: HashingAlgorithmauth_policy: Digestparameters: SymmetricCipherParametersunique: DigestImplementations
sourceimpl Public
impl Public
sourcepub fn object_attributes(&self) -> ObjectAttributes
pub fn object_attributes(&self) -> ObjectAttributes
Returns the object attributes
sourcepub fn name_hashing_algorithm(&self) -> HashingAlgorithm
pub fn name_hashing_algorithm(&self) -> HashingAlgorithm
Returns the name hashing algorithm
sourcepub fn auth_policy(&self) -> &Digest
pub fn auth_policy(&self) -> &Digest
Returns the auth policy digest.
sourcepub const fn builder() -> PublicBuilder
pub const fn builder() -> PublicBuilder
Get a builder for this structure
Trait Implementations
sourceimpl From<Public> for TPMT_PUBLIC
impl From<Public> for TPMT_PUBLIC
sourceimpl TryFrom<Public> for PublicBuffer
impl TryFrom<Public> for PublicBuffer
sourceimpl TryFrom<Public> for TPM2B_PUBLIC
impl TryFrom<Public> for TPM2B_PUBLIC
sourceimpl TryFrom<PublicBuffer> for Public
impl TryFrom<PublicBuffer> for Public
sourceimpl TryFrom<TPM2B_PUBLIC> for Public
impl TryFrom<TPM2B_PUBLIC> for Public
sourceimpl TryFrom<TPMT_PUBLIC> for Public
impl TryFrom<TPMT_PUBLIC> for Public
sourceimpl UnMarshall for Public
impl UnMarshall for Public
impl Eq for Public
impl StructuralEq for Public
impl StructuralPartialEq for Public
Auto Trait Implementations
impl RefUnwindSafe for Public
impl Send for Public
impl Sync for Public
impl Unpin for Public
impl UnwindSafe for Public
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more