TpmCommandBody

Enum TpmCommandBody 

Source
pub enum TpmCommandBody {
Show 125 variants NvUndefineSpaceSpecial(TpmNvUndefineSpaceSpecialCommand), EvictControl(TpmEvictControlCommand), HierarchyControl(TpmHierarchyControlCommand), NvUndefineSpace(TpmNvUndefineSpaceCommand), ChangeEps(TpmChangeEpsCommand), ChangePps(TpmChangePpsCommand), Clear(TpmClearCommand), ClearControl(TpmClearControlCommand), ClockSet(TpmClockSetCommand), HierarchyChangeAuth(TpmHierarchyChangeAuthCommand), NvDefineSpace(TpmNvDefineSpaceCommand), PcrAllocate(TpmPcrAllocateCommand), PcrSetAuthPolicy(TpmPcrSetAuthPolicyCommand), PpCommands(TpmPpCommandsCommand), SetPrimaryPolicy(TpmSetPrimaryPolicyCommand), FieldUpgradeStart(TpmFieldUpgradeStartCommand), ClockRateAdjust(TpmClockRateAdjustCommand), CreatePrimary(TpmCreatePrimaryCommand), NvGlobalWriteLock(TpmNvGlobalWriteLockCommand), GetCommandAuditDigest(TpmGetCommandAuditDigestCommand), NvIncrement(TpmNvIncrementCommand), NvSetBits(TpmNvSetBitsCommand), NvExtend(TpmNvExtendCommand), NvWrite(TpmNvWriteCommand), NvWriteLock(TpmNvWriteLockCommand), DictionaryAttackLockReset(TpmDictionaryAttackLockResetCommand), DictionaryAttackParameters(TpmDictionaryAttackParametersCommand), NvChangeAuth(TpmNvChangeAuthCommand), PcrEvent(TpmPcrEventCommand), PcrReset(TpmPcrResetCommand), SequenceComplete(TpmSequenceCompleteCommand), SetAlgorithmSet(TpmSetAlgorithmSetCommand), SetCommandCodeAuditStatus(TpmSetCommandCodeAuditStatusCommand), FieldUpgradeData(TpmFieldUpgradeDataCommand), IncrementalSelfTest(TpmIncrementalSelfTestCommand), SelfTest(TpmSelfTestCommand), Startup(TpmStartupCommand), Shutdown(TpmShutdownCommand), StirRandom(TpmStirRandomCommand), ActivateCredential(TpmActivateCredentialCommand), Certify(TpmCertifyCommand), PolicyNv(TpmPolicyNvCommand), CertifyCreation(TpmCertifyCreationCommand), Duplicate(TpmDuplicateCommand), GetTime(TpmGetTimeCommand), GetSessionAuditDigest(TpmGetSessionAuditDigestCommand), NvRead(TpmNvReadCommand), NvReadLock(TpmNvReadLockCommand), ObjectChangeAuth(TpmObjectChangeAuthCommand), PolicySecret(TpmPolicySecretCommand), Rewrap(TpmRewrapCommand), Create(TpmCreateCommand), EcdhZGen(TpmEcdhZGenCommand), Hmac(TpmHmacCommand), Import(TpmImportCommand), Load(TpmLoadCommand), Quote(TpmQuoteCommand), RsaDecrypt(TpmRsaDecryptCommand), HmacStart(TpmHmacStartCommand), SequenceUpdate(TpmSequenceUpdateCommand), Sign(TpmSignCommand), Unseal(TpmUnsealCommand), PolicySigned(TpmPolicySignedCommand), ContextLoad(TpmContextLoadCommand), ContextSave(TpmContextSaveCommand), EcdhKeyGen(TpmEcdhKeyGenCommand), EncryptDecrypt(TpmEncryptDecryptCommand), FlushContext(TpmFlushContextCommand), LoadExternal(TpmLoadExternalCommand), MakeCredential(TpmMakeCredentialCommand), NvReadPublic(TpmNvReadPublicCommand), PolicyAuthorize(TpmPolicyAuthorizeCommand), PolicyAuthValue(TpmPolicyAuthValueCommand), PolicyCommandCode(TpmPolicyCommandCodeCommand), PolicyCounterTimer(TpmPolicyCounterTimerCommand), PolicyCpHash(TpmPolicyCpHashCommand), PolicyLocality(TpmPolicyLocalityCommand), PolicyNameHash(TpmPolicyNameHashCommand), PolicyOr(TpmPolicyOrCommand), PolicyTicket(TpmPolicyTicketCommand), ReadPublic(TpmReadPublicCommand), RsaEncrypt(TpmRsaEncryptCommand), StartAuthSession(TpmStartAuthSessionCommand), VerifySignature(TpmVerifySignatureCommand), EccParameters(TpmEccParametersCommand), FirmwareRead(TpmFirmwareReadCommand), GetCapability(TpmGetCapabilityCommand), GetRandom(TpmGetRandomCommand), GetTestResult(TpmGetTestResultCommand), Hash(TpmHashCommand), PcrRead(TpmPcrReadCommand), PolicyPcr(TpmPolicyPcrCommand), PolicyRestart(TpmPolicyRestartCommand), ReadClock(TpmReadClockCommand), PcrExtend(TpmPcrExtendCommand), PcrSetAuthValue(TpmPcrSetAuthValueCommand), NvCertify(TpmNvCertifyCommand), EventSequenceComplete(TpmEventSequenceCompleteCommand), HashSequenceStart(TpmHashSequenceStartCommand), PolicyPhysicalPresence(TpmPolicyPhysicalPresenceCommand), PolicyDuplicationSelect(TpmPolicyDuplicationSelectCommand), PolicyGetDigest(TpmPolicyGetDigestCommand), TestParms(TpmTestParmsCommand), Commit(TpmCommitCommand), PolicyPassword(TpmPolicyPasswordCommand), ZGen2Phase(TpmZGen2PhaseCommand), EcEphemeral(TpmEcEphemeralCommand), PolicyNvWritten(TpmPolicyNvWrittenCommand), PolicyTemplate(TpmPolicyTemplateCommand), CreateLoaded(TpmCreateLoadedCommand), PolicyAuthorizeNv(TpmPolicyAuthorizeNvCommand), EncryptDecrypt2(TpmEncryptDecrypt2Command), AcGetCapability(TpmAcGetCapabilityCommand), AcSend(TpmAcSendCommand), PolicyAcSendSelect(TpmPolicyAcSendSelectCommand), ActSetTimeout(TpmActSetTimeoutCommand), EccEncrypt(TpmEccEncryptCommand), EccDecrypt(TpmEccDecryptCommand), PolicyCapability(TpmPolicyCapabilityCommand), PolicyParameters(TpmPolicyParametersCommand), NvDefineSpace2(TpmNvDefineSpace2Command), NvReadPublic2(TpmNvReadPublic2Command), ReadOnlyControl(TpmReadOnlyControlCommand), PolicyTransportSpdm(TpmPolicyTransportSpdmCommand), VendorTcgTest(TpmVendorTcgTestCommand),
}
Expand description

A TPM command

Variants§

§

NvUndefineSpaceSpecial(TpmNvUndefineSpaceSpecialCommand)

§

EvictControl(TpmEvictControlCommand)

§

HierarchyControl(TpmHierarchyControlCommand)

§

NvUndefineSpace(TpmNvUndefineSpaceCommand)

§

ChangeEps(TpmChangeEpsCommand)

§

ChangePps(TpmChangePpsCommand)

§

Clear(TpmClearCommand)

§

ClearControl(TpmClearControlCommand)

§

ClockSet(TpmClockSetCommand)

§

HierarchyChangeAuth(TpmHierarchyChangeAuthCommand)

§

NvDefineSpace(TpmNvDefineSpaceCommand)

§

PcrAllocate(TpmPcrAllocateCommand)

§

PcrSetAuthPolicy(TpmPcrSetAuthPolicyCommand)

§

PpCommands(TpmPpCommandsCommand)

§

SetPrimaryPolicy(TpmSetPrimaryPolicyCommand)

§

FieldUpgradeStart(TpmFieldUpgradeStartCommand)

§

ClockRateAdjust(TpmClockRateAdjustCommand)

§

CreatePrimary(TpmCreatePrimaryCommand)

§

NvGlobalWriteLock(TpmNvGlobalWriteLockCommand)

§

GetCommandAuditDigest(TpmGetCommandAuditDigestCommand)

§

NvIncrement(TpmNvIncrementCommand)

§

NvSetBits(TpmNvSetBitsCommand)

§

NvExtend(TpmNvExtendCommand)

§

NvWrite(TpmNvWriteCommand)

§

NvWriteLock(TpmNvWriteLockCommand)

§

DictionaryAttackLockReset(TpmDictionaryAttackLockResetCommand)

§

DictionaryAttackParameters(TpmDictionaryAttackParametersCommand)

§

NvChangeAuth(TpmNvChangeAuthCommand)

§

PcrEvent(TpmPcrEventCommand)

§

PcrReset(TpmPcrResetCommand)

§

SequenceComplete(TpmSequenceCompleteCommand)

§

SetAlgorithmSet(TpmSetAlgorithmSetCommand)

§

SetCommandCodeAuditStatus(TpmSetCommandCodeAuditStatusCommand)

§

FieldUpgradeData(TpmFieldUpgradeDataCommand)

§

IncrementalSelfTest(TpmIncrementalSelfTestCommand)

§

SelfTest(TpmSelfTestCommand)

§

Startup(TpmStartupCommand)

§

Shutdown(TpmShutdownCommand)

§

StirRandom(TpmStirRandomCommand)

§

ActivateCredential(TpmActivateCredentialCommand)

§

Certify(TpmCertifyCommand)

§

PolicyNv(TpmPolicyNvCommand)

§

CertifyCreation(TpmCertifyCreationCommand)

§

Duplicate(TpmDuplicateCommand)

§

GetTime(TpmGetTimeCommand)

§

GetSessionAuditDigest(TpmGetSessionAuditDigestCommand)

§

NvRead(TpmNvReadCommand)

§

NvReadLock(TpmNvReadLockCommand)

§

ObjectChangeAuth(TpmObjectChangeAuthCommand)

§

PolicySecret(TpmPolicySecretCommand)

§

Rewrap(TpmRewrapCommand)

§

Create(TpmCreateCommand)

§

EcdhZGen(TpmEcdhZGenCommand)

§

Hmac(TpmHmacCommand)

§

Import(TpmImportCommand)

§

Load(TpmLoadCommand)

§

Quote(TpmQuoteCommand)

§

RsaDecrypt(TpmRsaDecryptCommand)

§

HmacStart(TpmHmacStartCommand)

§

SequenceUpdate(TpmSequenceUpdateCommand)

§

Sign(TpmSignCommand)

§

Unseal(TpmUnsealCommand)

§

PolicySigned(TpmPolicySignedCommand)

§

ContextLoad(TpmContextLoadCommand)

§

ContextSave(TpmContextSaveCommand)

§

EcdhKeyGen(TpmEcdhKeyGenCommand)

§

EncryptDecrypt(TpmEncryptDecryptCommand)

§

FlushContext(TpmFlushContextCommand)

§

LoadExternal(TpmLoadExternalCommand)

§

MakeCredential(TpmMakeCredentialCommand)

§

NvReadPublic(TpmNvReadPublicCommand)

§

PolicyAuthorize(TpmPolicyAuthorizeCommand)

§

PolicyAuthValue(TpmPolicyAuthValueCommand)

§

PolicyCommandCode(TpmPolicyCommandCodeCommand)

§

PolicyCounterTimer(TpmPolicyCounterTimerCommand)

§

PolicyCpHash(TpmPolicyCpHashCommand)

§

PolicyLocality(TpmPolicyLocalityCommand)

§

PolicyNameHash(TpmPolicyNameHashCommand)

§

PolicyOr(TpmPolicyOrCommand)

§

PolicyTicket(TpmPolicyTicketCommand)

§

ReadPublic(TpmReadPublicCommand)

§

RsaEncrypt(TpmRsaEncryptCommand)

§

StartAuthSession(TpmStartAuthSessionCommand)

§

VerifySignature(TpmVerifySignatureCommand)

§

EccParameters(TpmEccParametersCommand)

§

FirmwareRead(TpmFirmwareReadCommand)

§

GetCapability(TpmGetCapabilityCommand)

§

GetRandom(TpmGetRandomCommand)

§

GetTestResult(TpmGetTestResultCommand)

§

Hash(TpmHashCommand)

§

PcrRead(TpmPcrReadCommand)

§

PolicyPcr(TpmPolicyPcrCommand)

§

PolicyRestart(TpmPolicyRestartCommand)

§

ReadClock(TpmReadClockCommand)

§

PcrExtend(TpmPcrExtendCommand)

§

PcrSetAuthValue(TpmPcrSetAuthValueCommand)

§

NvCertify(TpmNvCertifyCommand)

§

EventSequenceComplete(TpmEventSequenceCompleteCommand)

§

HashSequenceStart(TpmHashSequenceStartCommand)

§

PolicyPhysicalPresence(TpmPolicyPhysicalPresenceCommand)

§

PolicyDuplicationSelect(TpmPolicyDuplicationSelectCommand)

§

PolicyGetDigest(TpmPolicyGetDigestCommand)

§

TestParms(TpmTestParmsCommand)

§

Commit(TpmCommitCommand)

§

PolicyPassword(TpmPolicyPasswordCommand)

§

ZGen2Phase(TpmZGen2PhaseCommand)

§

EcEphemeral(TpmEcEphemeralCommand)

§

PolicyNvWritten(TpmPolicyNvWrittenCommand)

§

PolicyTemplate(TpmPolicyTemplateCommand)

§

CreateLoaded(TpmCreateLoadedCommand)

§

PolicyAuthorizeNv(TpmPolicyAuthorizeNvCommand)

§

EncryptDecrypt2(TpmEncryptDecrypt2Command)

§

AcGetCapability(TpmAcGetCapabilityCommand)

§

AcSend(TpmAcSendCommand)

§

PolicyAcSendSelect(TpmPolicyAcSendSelectCommand)

§

ActSetTimeout(TpmActSetTimeoutCommand)

§

EccEncrypt(TpmEccEncryptCommand)

§

EccDecrypt(TpmEccDecryptCommand)

§

PolicyCapability(TpmPolicyCapabilityCommand)

§

PolicyParameters(TpmPolicyParametersCommand)

§

NvDefineSpace2(TpmNvDefineSpace2Command)

§

NvReadPublic2(TpmNvReadPublic2Command)

§

ReadOnlyControl(TpmReadOnlyControlCommand)

§

PolicyTransportSpdm(TpmPolicyTransportSpdmCommand)

§

VendorTcgTest(TpmVendorTcgTestCommand)

Implementations§

Source§

impl TpmCommandBody

Source

pub fn cc(&self) -> TpmCc

Source

pub fn build( &self, tag: TpmSt, sessions: &TpmAuthCommands, writer: &mut TpmWriter<'_>, ) -> TpmResult<()>

Builds a command body into a writer.

§Errors

Returns Err(TpmError) on a build failure.

Trait Implementations§

Source§

impl Clone for TpmCommandBody

Source§

fn clone(&self) -> TpmCommandBody

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TpmCommandBody

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TpmCommandBody

Source§

fn eq(&self, other: &TpmCommandBody) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TpmSized for TpmCommandBody

Source§

const SIZE: usize = 4_096usize

The estimated size of the object in its serialized form evaluated at compile-time (always larger than the realized length).
Source§

fn len(&self) -> usize

Returns the exact serialized size of the object.
Source§

fn is_empty(&self) -> bool

Returns true if the object has a serialized length of zero.
Source§

impl Eq for TpmCommandBody

Source§

impl StructuralPartialEq for TpmCommandBody

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.