Skip to main content

HardwareIdentity

Trait HardwareIdentity 

Source
pub trait HardwareIdentity {
    // Required methods
    fn ek_certificate(&self) -> PhyTraceResult<Vec<u8>>;
    fn ak_public_area(&self) -> &[u8] ⓘ;
    fn signing_public_area(&self) -> &[u8] ⓘ;
    fn activate_credential(
        &self,
        credential_blob: &[u8],
        encrypted_secret: &[u8],
    ) -> PhyTraceResult<Vec<u8>>;
    fn certify_signing_key(&self, nonce: &[u8]) -> PhyTraceResult<Quote>;
}
Expand description

The TPM operations hardware-bound enrollment needs (issue #452); phytrace_tpm::TpmSigner implements it.

Required Methods§

Source

fn ek_certificate(&self) -> PhyTraceResult<Vec<u8>>

The TPM manufacturer’s ECC P-256 EK certificate (DER).

Source

fn ak_public_area(&self) -> &[u8] ⓘ

The attestation key’s marshalled TPMT_PUBLIC.

Source

fn signing_public_area(&self) -> &[u8] ⓘ

The signing key’s marshalled TPMT_PUBLIC.

Source

fn activate_credential( &self, credential_blob: &[u8], encrypted_secret: &[u8], ) -> PhyTraceResult<Vec<u8>>

TPM2_ActivateCredential with the EK and the attestation key.

Source

fn certify_signing_key(&self, nonce: &[u8]) -> PhyTraceResult<Quote>

TPM2_Certify of the signing key by the attestation key over nonce.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§