TpmCc

Enum TpmCc 

Source
#[repr(u32)]
pub enum TpmCc {
Show 126 variants NvUndefineSpaceSpecial = 287, EvictControl = 288, HierarchyControl = 289, NvUndefineSpace = 290, ChangeEps = 292, ChangePps = 293, Clear = 294, ClearControl = 295, ClockSet = 296, HierarchyChangeAuth = 297, NvDefineSpace = 298, PcrAllocate = 299, PcrSetAuthPolicy = 300, PpCommands = 301, SetPrimaryPolicy = 302, FieldUpgradeStart = 303, ClockRateAdjust = 304, CreatePrimary = 305, NvGlobalWriteLock = 306, GetCommandAuditDigest = 307, NvIncrement = 308, NvSetBits = 309, NvExtend = 310, NvWrite = 311, NvWriteLock = 312, DictionaryAttackLockReset = 313, DictionaryAttackParameters = 314, NvChangeAuth = 315, PcrEvent = 316, PcrReset = 317, SequenceComplete = 318, SetAlgorithmSet = 319, SetCommandCodeAuditStatus = 320, FieldUpgradeData = 321, IncrementalSelfTest = 322, SelfTest = 323, Startup = 324, Shutdown = 325, StirRandom = 326, ActivateCredential = 327, Certify = 328, PolicyNv = 329, CertifyCreation = 330, Duplicate = 331, GetTime = 332, GetSessionAuditDigest = 333, NvRead = 334, NvReadLock = 335, ObjectChangeAuth = 336, PolicySecret = 337, Rewrap = 338, Create = 339, EcdhZGen = 340, Hmac = 341, Import = 342, Load = 343, Quote = 344, RsaDecrypt = 345, HmacStart = 347, SequenceUpdate = 348, Sign = 349, Unseal = 350, PolicySigned = 352, ContextLoad = 353, ContextSave = 354, EcdhKeyGen = 355, EncryptDecrypt = 356, FlushContext = 357, LoadExternal = 359, MakeCredential = 360, NvReadPublic = 361, PolicyAuthorize = 362, PolicyAuthValue = 363, PolicyCommandCode = 364, PolicyCounterTimer = 365, PolicyCpHash = 366, PolicyLocality = 367, PolicyNameHash = 368, PolicyOR = 369, PolicyTicket = 370, ReadPublic = 371, RsaEncrypt = 372, StartAuthSession = 374, VerifySignature = 375, EccParameters = 376, FirmwareRead = 377, GetCapability = 378, GetRandom = 379, GetTestResult = 380, Hash = 381, PcrRead = 382, PolicyPcr = 383, PolicyRestart = 384, ReadClock = 385, PcrExtend = 386, PcrSetAuthValue = 387, NvCertify = 388, EventSequenceComplete = 389, HashSequenceStart = 390, PolicyPhysicalPresence = 391, PolicyDuplicationSelect = 392, PolicyGetDigest = 393, TestParms = 394, Commit = 395, PolicyPassword = 396, ZGen2Phase = 397, EcEphemeral = 398, PolicyNvWritten = 399, PolicyTemplate = 400, CreateLoaded = 401, PolicyAuthorizeNv = 402, EncryptDecrypt2 = 403, AcGetCapability = 404, AcSend = 405, PolicyAcSendSelect = 406, ActSetTimeout = 408, EccEncrypt = 409, EccDecrypt = 410, PolicyCapability = 411, PolicyParameters = 412, NvDefineSpace2 = 413, NvReadPublic2 = 414, SetCapability = 415, ReadOnlyControl = 416, PolicyTransportSpdm = 417, VendorTcgTest = 536_870_912,
}

Variants§

§

NvUndefineSpaceSpecial = 287

§

EvictControl = 288

§

HierarchyControl = 289

§

NvUndefineSpace = 290

§

ChangeEps = 292

§

ChangePps = 293

§

Clear = 294

§

ClearControl = 295

§

ClockSet = 296

§

HierarchyChangeAuth = 297

§

NvDefineSpace = 298

§

PcrAllocate = 299

§

PcrSetAuthPolicy = 300

§

PpCommands = 301

§

SetPrimaryPolicy = 302

§

FieldUpgradeStart = 303

§

ClockRateAdjust = 304

§

CreatePrimary = 305

§

NvGlobalWriteLock = 306

§

GetCommandAuditDigest = 307

§

NvIncrement = 308

§

NvSetBits = 309

§

NvExtend = 310

§

NvWrite = 311

§

NvWriteLock = 312

§

DictionaryAttackLockReset = 313

§

DictionaryAttackParameters = 314

§

NvChangeAuth = 315

§

PcrEvent = 316

§

PcrReset = 317

§

SequenceComplete = 318

§

SetAlgorithmSet = 319

§

SetCommandCodeAuditStatus = 320

§

FieldUpgradeData = 321

§

IncrementalSelfTest = 322

§

SelfTest = 323

§

Startup = 324

§

Shutdown = 325

§

StirRandom = 326

§

ActivateCredential = 327

§

Certify = 328

§

PolicyNv = 329

§

CertifyCreation = 330

§

Duplicate = 331

§

GetTime = 332

§

GetSessionAuditDigest = 333

§

NvRead = 334

§

NvReadLock = 335

§

ObjectChangeAuth = 336

§

PolicySecret = 337

§

Rewrap = 338

§

Create = 339

§

EcdhZGen = 340

§

Hmac = 341

§

Import = 342

§

Load = 343

§

Quote = 344

§

RsaDecrypt = 345

§

HmacStart = 347

§

SequenceUpdate = 348

§

Sign = 349

§

Unseal = 350

§

PolicySigned = 352

§

ContextLoad = 353

§

ContextSave = 354

§

EcdhKeyGen = 355

§

EncryptDecrypt = 356

§

FlushContext = 357

§

LoadExternal = 359

§

MakeCredential = 360

§

NvReadPublic = 361

§

PolicyAuthorize = 362

§

PolicyAuthValue = 363

§

PolicyCommandCode = 364

§

PolicyCounterTimer = 365

§

PolicyCpHash = 366

§

PolicyLocality = 367

§

PolicyNameHash = 368

§

PolicyOR = 369

§

PolicyTicket = 370

§

ReadPublic = 371

§

RsaEncrypt = 372

§

StartAuthSession = 374

§

VerifySignature = 375

§

EccParameters = 376

§

FirmwareRead = 377

§

GetCapability = 378

§

GetRandom = 379

§

GetTestResult = 380

§

Hash = 381

§

PcrRead = 382

§

PolicyPcr = 383

§

PolicyRestart = 384

§

ReadClock = 385

§

PcrExtend = 386

§

PcrSetAuthValue = 387

§

NvCertify = 388

§

EventSequenceComplete = 389

§

HashSequenceStart = 390

§

PolicyPhysicalPresence = 391

§

PolicyDuplicationSelect = 392

§

PolicyGetDigest = 393

§

TestParms = 394

§

Commit = 395

§

PolicyPassword = 396

§

ZGen2Phase = 397

§

EcEphemeral = 398

§

PolicyNvWritten = 399

§

PolicyTemplate = 400

§

CreateLoaded = 401

§

PolicyAuthorizeNv = 402

§

EncryptDecrypt2 = 403

§

AcGetCapability = 404

§

AcSend = 405

§

PolicyAcSendSelect = 406

§

ActSetTimeout = 408

§

EccEncrypt = 409

§

EccDecrypt = 410

§

PolicyCapability = 411

§

PolicyParameters = 412

§

NvDefineSpace2 = 413

§

NvReadPublic2 = 414

§

SetCapability = 415

§

ReadOnlyControl = 416

§

PolicyTransportSpdm = 417

§

VendorTcgTest = 536_870_912

Trait Implementations§

Source§

impl Clone for TpmCc

Source§

fn clone(&self) -> TpmCc

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 TpmCc

Source§

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

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

impl Display for TpmCc

Source§

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

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

impl FromStr for TpmCc

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Ord for TpmCc

Source§

fn cmp(&self, other: &TpmCc) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for TpmCc

Source§

fn eq(&self, other: &TpmCc) -> 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 PartialOrd for TpmCc

Source§

fn partial_cmp(&self, other: &TpmCc) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TpmBuild for TpmCc

Source§

fn build(&self, writer: &mut TpmWriter<'_>) -> TpmResult<()>

Builds the object into the given writer. Read more
Source§

impl TpmParse for TpmCc

Source§

fn parse(buf: &[u8]) -> TpmResult<(Self, &[u8])>

Parses an object from the given buffer. Read more
Source§

impl TpmSized for TpmCc

Source§

const SIZE: usize = 4usize

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 TryFrom<u32> for TpmCc

Source§

type Error = ()

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

fn try_from(value: u32) -> Result<Self, ()>

Performs the conversion.
Source§

impl Copy for TpmCc

Source§

impl Eq for TpmCc

Source§

impl StructuralPartialEq for TpmCc

Auto Trait Implementations§

§

impl Freeze for TpmCc

§

impl RefUnwindSafe for TpmCc

§

impl Send for TpmCc

§

impl Sync for TpmCc

§

impl Unpin for TpmCc

§

impl UnwindSafe for TpmCc

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.