| 1 |
package tpm2 |
| 2 |
|
| 3 |
//go:generate stringer -trimprefix=TPM -type=TPMAlgID,TPMECCCurve,TPMCC,TPMRC,TPMEO,TPMST,TPMCap,TPMPT,TPMPTPCR,TPMHT,TPMHandle,TPMNT -output=constants_string.go constants.go |
| 4 |
|
| 5 |
import ( |
| 6 |
|
| 7 |
// Register the relevant hash implementations. |
| 8 |
_ "crypto/sha1" |
| 9 |
_ "crypto/sha256" |
| 10 |
_ "crypto/sha512" |
| 11 |
) |
| 12 |
|
| 13 |
// TPMAlgID represents a TPM_ALG_ID. |
| 14 |
// See definition in Part 2: Structures, section 6.3. |
| 15 |
type TPMAlgID uint16 |
| 16 |
|
| 17 |
// TPMAlgID values come from Part 2: Structures, section 6.3. |
| 18 |
const ( |
| 19 |
TPMAlgRSA TPMAlgID = 0x0001 |
| 20 |
TPMAlgTDES TPMAlgID = 0x0003 |
| 21 |
TPMAlgSHA1 TPMAlgID = 0x0004 |
| 22 |
TPMAlgHMAC TPMAlgID = 0x0005 |
| 23 |
TPMAlgAES TPMAlgID = 0x0006 |
| 24 |
TPMAlgMGF1 TPMAlgID = 0x0007 |
| 25 |
TPMAlgKeyedHash TPMAlgID = 0x0008 |
| 26 |
TPMAlgXOR TPMAlgID = 0x000A |
| 27 |
TPMAlgSHA256 TPMAlgID = 0x000B |
| 28 |
TPMAlgSHA384 TPMAlgID = 0x000C |
| 29 |
TPMAlgSHA512 TPMAlgID = 0x000D |
| 30 |
TPMAlgSHA256192 TPMAlgID = 0x000E |
| 31 |
TPMAlgNull TPMAlgID = 0x0010 |
| 32 |
TPMAlgSM3256 TPMAlgID = 0x0012 |
| 33 |
TPMAlgSM4 TPMAlgID = 0x0013 |
| 34 |
TPMAlgRSASSA TPMAlgID = 0x0014 |
| 35 |
TPMAlgRSAES TPMAlgID = 0x0015 |
| 36 |
TPMAlgRSAPSS TPMAlgID = 0x0016 |
| 37 |
TPMAlgOAEP TPMAlgID = 0x0017 |
| 38 |
TPMAlgECDSA TPMAlgID = 0x0018 |
| 39 |
TPMAlgECDH TPMAlgID = 0x0019 |
| 40 |
TPMAlgECDAA TPMAlgID = 0x001A |
| 41 |
TPMAlgSM2 TPMAlgID = 0x001B |
| 42 |
TPMAlgECSchnorr TPMAlgID = 0x001C |
| 43 |
TPMAlgECMQV TPMAlgID = 0x001D |
| 44 |
TPMAlgKDF1SP80056A TPMAlgID = 0x0020 |
| 45 |
TPMAlgKDF2 TPMAlgID = 0x0021 |
| 46 |
TPMAlgKDF1SP800108 TPMAlgID = 0x0022 |
| 47 |
TPMAlgECC TPMAlgID = 0x0023 |
| 48 |
TPMAlgSymCipher TPMAlgID = 0x0025 |
| 49 |
TPMAlgCamellia TPMAlgID = 0x0026 |
| 50 |
TPMAlgSHA3256 TPMAlgID = 0x0027 |
| 51 |
TPMAlgSHA3384 TPMAlgID = 0x0028 |
| 52 |
TPMAlgSHA3512 TPMAlgID = 0x0029 |
| 53 |
TPMAlgSHAKE128 TPMAlgID = 0x002A |
| 54 |
TPMAlgSHAKE256 TPMAlgID = 0x002B |
| 55 |
TPMAlgSHAKE256192 TPMAlgID = 0x002C |
| 56 |
TPMAlgSHAKE256256 TPMAlgID = 0x002D |
| 57 |
TPMAlgSHAKE256512 TPMAlgID = 0x002E |
| 58 |
TPMAlgCMAC TPMAlgID = 0x003F |
| 59 |
TPMAlgCTR TPMAlgID = 0x0040 |
| 60 |
TPMAlgOFB TPMAlgID = 0x0041 |
| 61 |
TPMAlgCBC TPMAlgID = 0x0042 |
| 62 |
TPMAlgCFB TPMAlgID = 0x0043 |
| 63 |
TPMAlgECB TPMAlgID = 0x0044 |
| 64 |
TPMAlgCCM TPMAlgID = 0x0050 |
| 65 |
TPMAlgGCM TPMAlgID = 0x0051 |
| 66 |
TPMAlgKW TPMAlgID = 0x0052 |
| 67 |
TPMAlgKWP TPMAlgID = 0x0053 |
| 68 |
TPMAlgEAX TPMAlgID = 0x0054 |
| 69 |
TPMAlgEDDSA TPMAlgID = 0x0060 |
| 70 |
TPMAlgEDDSAPH TPMAlgID = 0x0061 |
| 71 |
TPMAlgLMS TPMAlgID = 0x0070 |
| 72 |
TPMAlgXMSS TPMAlgID = 0x0071 |
| 73 |
TPMAlgKEYEDXOF TPMAlgID = 0x0080 |
| 74 |
TPMAlgKMACXOF128 TPMAlgID = 0x0081 |
| 75 |
TPMAlgKMACXOF256 TPMAlgID = 0x0082 |
| 76 |
TPMAlgKMAC128 TPMAlgID = 0x0090 |
| 77 |
TPMAlgKMAC256 TPMAlgID = 0x0091 |
| 78 |
) |
| 79 |
|
| 80 |
// TPMECCCurve represents a TPM_ECC_Curve. |
| 81 |
// See definition in Part 2: Structures, section 6.4. |
| 82 |
type TPMECCCurve uint16 |
| 83 |
|
| 84 |
// TPMECCCurve values come from Part 2: Structures, section 6.4. |
| 85 |
const ( |
| 86 |
TPMECCNone TPMECCCurve = 0x0000 |
| 87 |
TPMECCNistP192 TPMECCCurve = 0x0001 |
| 88 |
TPMECCNistP224 TPMECCCurve = 0x0002 |
| 89 |
TPMECCNistP256 TPMECCCurve = 0x0003 |
| 90 |
TPMECCNistP384 TPMECCCurve = 0x0004 |
| 91 |
TPMECCNistP521 TPMECCCurve = 0x0005 |
| 92 |
TPMECCBNP256 TPMECCCurve = 0x0010 |
| 93 |
TPMECCBNP638 TPMECCCurve = 0x0011 |
| 94 |
TPMECCSM2P256 TPMECCCurve = 0x0020 |
| 95 |
TPMECCBrainpoolP256R1 TPMECCCurve = 0x0030 |
| 96 |
TPMECCBrainpoolP384R1 TPMECCCurve = 0x0031 |
| 97 |
TPMECCBrainpoolP512R1 TPMECCCurve = 0x0032 |
| 98 |
TPMECCCurve25519 TPMECCCurve = 0x0040 |
| 99 |
TPMECCCurve448 TPMECCCurve = 0x0041 |
| 100 |
) |
| 101 |
|
| 102 |
// TPMCC represents a TPM_CC. |
| 103 |
// See definition in Part 2: Structures, section 6.5.2. |
| 104 |
type TPMCC uint32 |
| 105 |
|
| 106 |
// TPMCC values come from Part 2: Structures, section 6.5.2. |
| 107 |
const ( |
| 108 |
TPMCCNVUndefineSpaceSpecial TPMCC = 0x0000011F |
| 109 |
TPMCCEvictControl TPMCC = 0x00000120 |
| 110 |
TPMCCHierarchyControl TPMCC = 0x00000121 |
| 111 |
TPMCCNVUndefineSpace TPMCC = 0x00000122 |
| 112 |
TPMCCChangeEPS TPMCC = 0x00000124 |
| 113 |
TPMCCChangePPS TPMCC = 0x00000125 |
| 114 |
TPMCCClear TPMCC = 0x00000126 |
| 115 |
TPMCCClearControl TPMCC = 0x00000127 |
| 116 |
TPMCCClockSet TPMCC = 0x00000128 |
| 117 |
TPMCCHierarchyChanegAuth TPMCC = 0x00000129 |
| 118 |
TPMCCNVDefineSpace TPMCC = 0x0000012A |
| 119 |
TPMCCPCRAllocate TPMCC = 0x0000012B |
| 120 |
TPMCCPCRSetAuthPolicy TPMCC = 0x0000012C |
| 121 |
TPMCCPPCommands TPMCC = 0x0000012D |
| 122 |
TPMCCSetPrimaryPolicy TPMCC = 0x0000012E |
| 123 |
TPMCCFieldUpgradeStart TPMCC = 0x0000012F |
| 124 |
TPMCCClockRateAdjust TPMCC = 0x00000130 |
| 125 |
TPMCCCreatePrimary TPMCC = 0x00000131 |
| 126 |
TPMCCNVGlobalWriteLock TPMCC = 0x00000132 |
| 127 |
TPMCCGetCommandAuditDigest TPMCC = 0x00000133 |
| 128 |
TPMCCNVIncrement TPMCC = 0x00000134 |
| 129 |
TPMCCNVSetBits TPMCC = 0x00000135 |
| 130 |
TPMCCNVExtend TPMCC = 0x00000136 |
| 131 |
TPMCCNVWrite TPMCC = 0x00000137 |
| 132 |
TPMCCNVWriteLock TPMCC = 0x00000138 |
| 133 |
TPMCCDictionaryAttackLockReset TPMCC = 0x00000139 |
| 134 |
TPMCCDictionaryAttackParameters TPMCC = 0x0000013A |
| 135 |
TPMCCNVChangeAuth TPMCC = 0x0000013B |
| 136 |
TPMCCPCREvent TPMCC = 0x0000013C |
| 137 |
TPMCCPCRReset TPMCC = 0x0000013D |
| 138 |
TPMCCSequenceComplete TPMCC = 0x0000013E |
| 139 |
TPMCCSetAlgorithmSet TPMCC = 0x0000013F |
| 140 |
TPMCCSetCommandCodeAuditStatus TPMCC = 0x00000140 |
| 141 |
TPMCCFieldUpgradeData TPMCC = 0x00000141 |
| 142 |
TPMCCIncrementalSelfTest TPMCC = 0x00000142 |
| 143 |
TPMCCSelfTest TPMCC = 0x00000143 |
| 144 |
TPMCCStartup TPMCC = 0x00000144 |
| 145 |
TPMCCShutdown TPMCC = 0x00000145 |
| 146 |
TPMCCStirRandom TPMCC = 0x00000146 |
| 147 |
TPMCCActivateCredential TPMCC = 0x00000147 |
| 148 |
TPMCCCertify TPMCC = 0x00000148 |
| 149 |
TPMCCPolicyNV TPMCC = 0x00000149 |
| 150 |
TPMCCCertifyCreation TPMCC = 0x0000014A |
| 151 |
TPMCCDuplicate TPMCC = 0x0000014B |
| 152 |
TPMCCGetTime TPMCC = 0x0000014C |
| 153 |
TPMCCGetSessionAuditDigest TPMCC = 0x0000014D |
| 154 |
TPMCCNVRead TPMCC = 0x0000014E |
| 155 |
TPMCCNVReadLock TPMCC = 0x0000014F |
| 156 |
TPMCCObjectChangeAuth TPMCC = 0x00000150 |
| 157 |
TPMCCPolicySecret TPMCC = 0x00000151 |
| 158 |
TPMCCRewrap TPMCC = 0x00000152 |
| 159 |
TPMCCCreate TPMCC = 0x00000153 |
| 160 |
TPMCCECDHZGen TPMCC = 0x00000154 |
| 161 |
TPMCCMAC TPMCC = 0x00000155 |
| 162 |
TPMCCImport TPMCC = 0x00000156 |
| 163 |
TPMCCLoad TPMCC = 0x00000157 |
| 164 |
TPMCCQuote TPMCC = 0x00000158 |
| 165 |
TPMCCRSADecrypt TPMCC = 0x00000159 |
| 166 |
TPMCCMACStart TPMCC = 0x0000015B |
| 167 |
TPMCCSequenceUpdate TPMCC = 0x0000015C |
| 168 |
TPMCCSign TPMCC = 0x0000015D |
| 169 |
TPMCCUnseal TPMCC = 0x0000015E |
| 170 |
TPMCCPolicySigned TPMCC = 0x00000160 |
| 171 |
TPMCCContextLoad TPMCC = 0x00000161 |
| 172 |
TPMCCContextSave TPMCC = 0x00000162 |
| 173 |
TPMCCECDHKeyGen TPMCC = 0x00000163 |
| 174 |
TPMCCEncryptDecrypt TPMCC = 0x00000164 |
| 175 |
TPMCCFlushContext TPMCC = 0x00000165 |
| 176 |
TPMCCLoadExternal TPMCC = 0x00000167 |
| 177 |
TPMCCMakeCredential TPMCC = 0x00000168 |
| 178 |
TPMCCNVReadPublic TPMCC = 0x00000169 |
| 179 |
TPMCCPolicyAuthorize TPMCC = 0x0000016A |
| 180 |
TPMCCPolicyAuthValue TPMCC = 0x0000016B |
| 181 |
TPMCCPolicyCommandCode TPMCC = 0x0000016C |
| 182 |
TPMCCPolicyCounterTimer TPMCC = 0x0000016D |
| 183 |
TPMCCPolicyCpHash TPMCC = 0x0000016E |
| 184 |
TPMCCPolicyLocality TPMCC = 0x0000016F |
| 185 |
TPMCCPolicyNameHash TPMCC = 0x00000170 |
| 186 |
TPMCCPolicyOR TPMCC = 0x00000171 |
| 187 |
TPMCCPolicyTicket TPMCC = 0x00000172 |
| 188 |
TPMCCReadPublic TPMCC = 0x00000173 |
| 189 |
TPMCCRSAEncrypt TPMCC = 0x00000174 |
| 190 |
TPMCCStartAuthSession TPMCC = 0x00000176 |
| 191 |
TPMCCVerifySignature TPMCC = 0x00000177 |
| 192 |
TPMCCECCParameters TPMCC = 0x00000178 |
| 193 |
TPMCCFirmwareRead TPMCC = 0x00000179 |
| 194 |
TPMCCGetCapability TPMCC = 0x0000017A |
| 195 |
TPMCCGetRandom TPMCC = 0x0000017B |
| 196 |
TPMCCGetTestResult TPMCC = 0x0000017C |
| 197 |
TPMCCHash TPMCC = 0x0000017D |
| 198 |
TPMCCPCRRead TPMCC = 0x0000017E |
| 199 |
TPMCCPolicyPCR TPMCC = 0x0000017F |
| 200 |
TPMCCPolicyRestart TPMCC = 0x00000180 |
| 201 |
TPMCCReadClock TPMCC = 0x00000181 |
| 202 |
TPMCCPCRExtend TPMCC = 0x00000182 |
| 203 |
TPMCCPCRSetAuthValue TPMCC = 0x00000183 |
| 204 |
TPMCCNVCertify TPMCC = 0x00000184 |
| 205 |
TPMCCEventSequenceComplete TPMCC = 0x00000185 |
| 206 |
TPMCCHashSequenceStart TPMCC = 0x00000186 |
| 207 |
TPMCCPolicyPhysicalPresence TPMCC = 0x00000187 |
| 208 |
TPMCCPolicyDuplicationSelect TPMCC = 0x00000188 |
| 209 |
TPMCCPolicyGetDigest TPMCC = 0x00000189 |
| 210 |
TPMCCTestParms TPMCC = 0x0000018A |
| 211 |
TPMCCCommit TPMCC = 0x0000018B |
| 212 |
TPMCCPolicyPassword TPMCC = 0x0000018C |
| 213 |
TPMCCZGen2Phase TPMCC = 0x0000018D |
| 214 |
TPMCCECEphemeral TPMCC = 0x0000018E |
| 215 |
TPMCCPolicyNvWritten TPMCC = 0x0000018F |
| 216 |
TPMCCPolicyTemplate TPMCC = 0x00000190 |
| 217 |
TPMCCCreateLoaded TPMCC = 0x00000191 |
| 218 |
TPMCCPolicyAuthorizeNV TPMCC = 0x00000192 |
| 219 |
TPMCCEncryptDecrypt2 TPMCC = 0x00000193 |
| 220 |
TPMCCACGetCapability TPMCC = 0x00000194 |
| 221 |
TPMCCACSend TPMCC = 0x00000195 |
| 222 |
TPMCCPolicyACSendSelect TPMCC = 0x00000196 |
| 223 |
TPMCCCertifyX509 TPMCC = 0x00000197 |
| 224 |
TPMCCACTSetTimeout TPMCC = 0x00000198 |
| 225 |
) |
| 226 |
|
| 227 |
// TPMRC represents a TPM_RC. |
| 228 |
// See definition in Part 2: Structures, section 6.6. |
| 229 |
type TPMRC uint32 |
| 230 |
|
| 231 |
// TPMRC values come from Part 2: Structures, section 6.6.3. |
| 232 |
const ( |
| 233 |
rcVer1 = 0x00000100 |
| 234 |
rcFmt1 = 0x00000080 |
| 235 |
rcWarn = 0x00000900 |
| 236 |
rcP = 0x00000040 |
| 237 |
rcS = 0x00000800 |
| 238 |
TPMRCSuccess TPMRC = 0x00000000 |
| 239 |
// FMT0 error codes |
| 240 |
TPMRCInitialize TPMRC = rcVer1 + 0x000 |
| 241 |
TPMRCFailure TPMRC = rcVer1 + 0x001 |
| 242 |
TPMRCSequence TPMRC = rcVer1 + 0x003 |
| 243 |
TPMRCPrivate TPMRC = rcVer1 + 0x00B |
| 244 |
TPMRCHMAC TPMRC = rcVer1 + 0x019 |
| 245 |
TPMRCDisabled TPMRC = rcVer1 + 0x020 |
| 246 |
TPMRCExclusive TPMRC = rcVer1 + 0x021 |
| 247 |
TPMRCAuthType TPMRC = rcVer1 + 0x024 |
| 248 |
TPMRCAuthMissing TPMRC = rcVer1 + 0x025 |
| 249 |
TPMRCPolicy TPMRC = rcVer1 + 0x026 |
| 250 |
TPMRCPCR TPMRC = rcVer1 + 0x027 |
| 251 |
TPMRCPCRChanged TPMRC = rcVer1 + 0x028 |
| 252 |
TPMRCUpgrade TPMRC = rcVer1 + 0x02D |
| 253 |
TPMRCTooManyContexts TPMRC = rcVer1 + 0x02E |
| 254 |
TPMRCAuthUnavailable TPMRC = rcVer1 + 0x02F |
| 255 |
TPMRCReboot TPMRC = rcVer1 + 0x030 |
| 256 |
TPMRCUnbalanced TPMRC = rcVer1 + 0x031 |
| 257 |
TPMRCCommandSize TPMRC = rcVer1 + 0x042 |
| 258 |
TPMRCCommandCode TPMRC = rcVer1 + 0x043 |
| 259 |
TPMRCAuthSize TPMRC = rcVer1 + 0x044 |
| 260 |
TPMRCAuthContext TPMRC = rcVer1 + 0x045 |
| 261 |
TPMRCNVRange TPMRC = rcVer1 + 0x046 |
| 262 |
TPMRCNVSize TPMRC = rcVer1 + 0x047 |
| 263 |
TPMRCNVLocked TPMRC = rcVer1 + 0x048 |
| 264 |
TPMRCNVAuthorization TPMRC = rcVer1 + 0x049 |
| 265 |
TPMRCNVUninitialized TPMRC = rcVer1 + 0x04A |
| 266 |
TPMRCNVSpace TPMRC = rcVer1 + 0x04B |
| 267 |
TPMRCNVDefined TPMRC = rcVer1 + 0x04C |
| 268 |
TPMRCBadContext TPMRC = rcVer1 + 0x050 |
| 269 |
TPMRCCPHash TPMRC = rcVer1 + 0x051 |
| 270 |
TPMRCParent TPMRC = rcVer1 + 0x052 |
| 271 |
TPMRCNeedsTest TPMRC = rcVer1 + 0x053 |
| 272 |
TPMRCNoResult TPMRC = rcVer1 + 0x054 |
| 273 |
TPMRCSensitive TPMRC = rcVer1 + 0x055 |
| 274 |
// FMT1 error codes |
| 275 |
TPMRCAsymmetric TPMRC = rcFmt1 + 0x001 |
| 276 |
TPMRCAttributes TPMRC = rcFmt1 + 0x002 |
| 277 |
TPMRCHash TPMRC = rcFmt1 + 0x003 |
| 278 |
TPMRCValue TPMRC = rcFmt1 + 0x004 |
| 279 |
TPMRCHierarchy TPMRC = rcFmt1 + 0x005 |
| 280 |
TPMRCKeySize TPMRC = rcFmt1 + 0x007 |
| 281 |
TPMRCMGF TPMRC = rcFmt1 + 0x008 |
| 282 |
TPMRCMode TPMRC = rcFmt1 + 0x009 |
| 283 |
TPMRCType TPMRC = rcFmt1 + 0x00A |
| 284 |
TPMRCHandle TPMRC = rcFmt1 + 0x00B |
| 285 |
TPMRCKDF TPMRC = rcFmt1 + 0x00C |
| 286 |
TPMRCRange TPMRC = rcFmt1 + 0x00D |
| 287 |
TPMRCAuthFail TPMRC = rcFmt1 + 0x00E |
| 288 |
TPMRCNonce TPMRC = rcFmt1 + 0x00F |
| 289 |
TPMRCPP TPMRC = rcFmt1 + 0x010 |
| 290 |
TPMRCScheme TPMRC = rcFmt1 + 0x012 |
| 291 |
TPMRCSize TPMRC = rcFmt1 + 0x015 |
| 292 |
TPMRCSymmetric TPMRC = rcFmt1 + 0x016 |
| 293 |
TPMRCTag TPMRC = rcFmt1 + 0x017 |
| 294 |
TPMRCSelector TPMRC = rcFmt1 + 0x018 |
| 295 |
TPMRCInsufficient TPMRC = rcFmt1 + 0x01A |
| 296 |
TPMRCSignature TPMRC = rcFmt1 + 0x01B |
| 297 |
TPMRCKey TPMRC = rcFmt1 + 0x01C |
| 298 |
TPMRCPolicyFail TPMRC = rcFmt1 + 0x01D |
| 299 |
TPMRCIntegrity TPMRC = rcFmt1 + 0x01F |
| 300 |
TPMRCTicket TPMRC = rcFmt1 + 0x020 |
| 301 |
TPMRCReservedBits TPMRC = rcFmt1 + 0x021 |
| 302 |
TPMRCBadAuth TPMRC = rcFmt1 + 0x022 |
| 303 |
TPMRCExpired TPMRC = rcFmt1 + 0x023 |
| 304 |
TPMRCPolicyCC TPMRC = rcFmt1 + 0x024 |
| 305 |
TPMRCBinding TPMRC = rcFmt1 + 0x025 |
| 306 |
TPMRCCurve TPMRC = rcFmt1 + 0x026 |
| 307 |
TPMRCECCPoint TPMRC = rcFmt1 + 0x027 |
| 308 |
// Warnings |
| 309 |
TPMRCContextGap TPMRC = rcWarn + 0x001 |
| 310 |
TPMRCObjectMemory TPMRC = rcWarn + 0x002 |
| 311 |
TPMRCSessionMemory TPMRC = rcWarn + 0x003 |
| 312 |
TPMRCMemory TPMRC = rcWarn + 0x004 |
| 313 |
TPMRCSessionHandles TPMRC = rcWarn + 0x005 |
| 314 |
TPMRCObjectHandles TPMRC = rcWarn + 0x006 |
| 315 |
TPMRCLocality TPMRC = rcWarn + 0x007 |
| 316 |
TPMRCYielded TPMRC = rcWarn + 0x008 |
| 317 |
TPMRCCanceled TPMRC = rcWarn + 0x009 |
| 318 |
TPMRCTesting TPMRC = rcWarn + 0x00A |
| 319 |
TPMRCReferenceH0 TPMRC = rcWarn + 0x010 |
| 320 |
TPMRCReferenceH1 TPMRC = rcWarn + 0x011 |
| 321 |
TPMRCReferenceH2 TPMRC = rcWarn + 0x012 |
| 322 |
TPMRCReferenceH3 TPMRC = rcWarn + 0x013 |
| 323 |
TPMRCReferenceH4 TPMRC = rcWarn + 0x014 |
| 324 |
TPMRCReferenceH5 TPMRC = rcWarn + 0x015 |
| 325 |
TPMRCReferenceH6 TPMRC = rcWarn + 0x016 |
| 326 |
TPMRCReferenceS0 TPMRC = rcWarn + 0x018 |
| 327 |
TPMRCReferenceS1 TPMRC = rcWarn + 0x019 |
| 328 |
TPMRCReferenceS2 TPMRC = rcWarn + 0x01A |
| 329 |
TPMRCReferenceS3 TPMRC = rcWarn + 0x01B |
| 330 |
TPMRCReferenceS4 TPMRC = rcWarn + 0x01C |
| 331 |
TPMRCReferenceS5 TPMRC = rcWarn + 0x01D |
| 332 |
TPMRCReferenceS6 TPMRC = rcWarn + 0x01E |
| 333 |
TPMRCNVRate TPMRC = rcWarn + 0x020 |
| 334 |
TPMRCLockout TPMRC = rcWarn + 0x021 |
| 335 |
TPMRCRetry TPMRC = rcWarn + 0x022 |
| 336 |
TPMRCNVUnavailable TPMRC = rcWarn + 0x023 |
| 337 |
) |
| 338 |
|
| 339 |
// TPMEO represents a TPM_EO. |
| 340 |
// See definition in Part 2: Structures, section 6.8. |
| 341 |
type TPMEO uint16 |
| 342 |
|
| 343 |
// TPMEO values come from Part 2: Structures, section 6.8. |
| 344 |
const ( |
| 345 |
TPMEOEq TPMEO = 0x0000 |
| 346 |
TPMEONeq TPMEO = 0x0001 |
| 347 |
TPMEOSignedGT TPMEO = 0x0002 |
| 348 |
TPMEOUnsignedGT TPMEO = 0x0003 |
| 349 |
TPMEOSignedLT TPMEO = 0x0004 |
| 350 |
TPMEOUnsignedLT TPMEO = 0x0005 |
| 351 |
TPMEOSignedGE TPMEO = 0x0006 |
| 352 |
TPMEOUnsignedGE TPMEO = 0x0007 |
| 353 |
TPMEOSignedLE TPMEO = 0x0008 |
| 354 |
TPMEOUnsignedLE TPMEO = 0x0009 |
| 355 |
TPMEOBitSet TPMEO = 0x000A |
| 356 |
TPMEOBitClear TPMEO = 0x000B |
| 357 |
) |
| 358 |
|
| 359 |
// TPMST represents a TPM_ST. |
| 360 |
// See definition in Part 2: Structures, section 6.9. |
| 361 |
type TPMST uint16 |
| 362 |
|
| 363 |
// TPMST values come from Part 2: Structures, section 6.9. |
| 364 |
const ( |
| 365 |
TPMSTRspCommand TPMST = 0x00C4 |
| 366 |
TPMSTNull TPMST = 0x8000 |
| 367 |
TPMSTNoSessions TPMST = 0x8001 |
| 368 |
TPMSTSessions TPMST = 0x8002 |
| 369 |
TPMSTAttestNV TPMST = 0x8014 |
| 370 |
TPMSTAttestCommandAudit TPMST = 0x8015 |
| 371 |
TPMSTAttestSessionAudit TPMST = 0x8016 |
| 372 |
TPMSTAttestCertify TPMST = 0x8017 |
| 373 |
TPMSTAttestQuote TPMST = 0x8018 |
| 374 |
TPMSTAttestTime TPMST = 0x8019 |
| 375 |
TPMSTAttestCreation TPMST = 0x801A |
| 376 |
TPMSTAttestNVDigest TPMST = 0x801C |
| 377 |
TPMSTCreation TPMST = 0x8021 |
| 378 |
TPMSTVerified TPMST = 0x8022 |
| 379 |
TPMSTAuthSecret TPMST = 0x8023 |
| 380 |
TPMSTHashCheck TPMST = 0x8024 |
| 381 |
TPMSTAuthSigned TPMST = 0x8025 |
| 382 |
TPMSTFuManifest TPMST = 0x8029 |
| 383 |
) |
| 384 |
|
| 385 |
// TPMSU represents a TPM_SU. |
| 386 |
// See definition in Part 2: Structures, section 6.10. |
| 387 |
type TPMSU uint16 |
| 388 |
|
| 389 |
// TPMSU values come from Part 2: Structures, section 6.10. |
| 390 |
const ( |
| 391 |
TPMSUClear TPMSU = 0x0000 |
| 392 |
TPMSUState TPMSU = 0x0001 |
| 393 |
) |
| 394 |
|
| 395 |
// TPMSE represents a TPM_SE. |
| 396 |
// See definition in Part 2: Structures, section 6.11. |
| 397 |
type TPMSE uint8 |
| 398 |
|
| 399 |
// TPMSE values come from Part 2: Structures, section 6.11. |
| 400 |
const ( |
| 401 |
TPMSEHMAC TPMSE = 0x00 |
| 402 |
TPMSEPolicy TPMSE = 0x01 |
| 403 |
TPMSETrial TPMSE = 0x03 |
| 404 |
) |
| 405 |
|
| 406 |
// TPMCap represents a TPM_CAP. |
| 407 |
// See definition in Part 2: Structures, section 6.12. |
| 408 |
type TPMCap uint32 |
| 409 |
|
| 410 |
// TPMCap values come from Part 2: Structures, section 6.12. |
| 411 |
const ( |
| 412 |
TPMCapAlgs TPMCap = 0x00000000 |
| 413 |
TPMCapHandles TPMCap = 0x00000001 |
| 414 |
TPMCapCommands TPMCap = 0x00000002 |
| 415 |
TPMCapPPCommands TPMCap = 0x00000003 |
| 416 |
TPMCapAuditCommands TPMCap = 0x00000004 |
| 417 |
TPMCapPCRs TPMCap = 0x00000005 |
| 418 |
TPMCapTPMProperties TPMCap = 0x00000006 |
| 419 |
TPMCapPCRProperties TPMCap = 0x00000007 |
| 420 |
TPMCapECCCurves TPMCap = 0x00000008 |
| 421 |
TPMCapAuthPolicies TPMCap = 0x00000009 |
| 422 |
TPMCapACT TPMCap = 0x0000000A |
| 423 |
) |
| 424 |
|
| 425 |
// TPMPT represents a TPM_PT. |
| 426 |
// See definition in Part 2: Structures, section 6.13. |
| 427 |
type TPMPT uint32 |
| 428 |
|
| 429 |
// TPMPT values come from Part 2: Structures, section 6.13. |
| 430 |
const ( |
| 431 |
// a 4-octet character string containing the TPM Family value |
| 432 |
// (TPM_SPEC_FAMILY) |
| 433 |
TPMPTFamilyIndicator TPMPT = 0x00000100 |
| 434 |
// the level of the specification |
| 435 |
TPMPTLevel TPMPT = 0x00000101 |
| 436 |
// the specification Revision times 100 |
| 437 |
TPMPTRevision TPMPT = 0x00000102 |
| 438 |
// the specification day of year using TCG calendar |
| 439 |
TPMPTDayofYear TPMPT = 0x00000103 |
| 440 |
// the specification year using the CE |
| 441 |
TPMPTYear TPMPT = 0x00000104 |
| 442 |
// the vendor ID unique to each TPM manufacturer |
| 443 |
TPMPTManufacturer TPMPT = 0x00000105 |
| 444 |
// the first four characters of the vendor ID string |
| 445 |
TPMPTVendorString1 TPMPT = 0x00000106 |
| 446 |
// the second four characters of the vendor ID string |
| 447 |
TPMPTVendorString2 TPMPT = 0x00000107 |
| 448 |
// the third four characters of the vendor ID string |
| 449 |
TPMPTVendorString3 TPMPT = 0x00000108 |
| 450 |
// the fourth four characters of the vendor ID sting |
| 451 |
TPMPTVendorString4 TPMPT = 0x00000109 |
| 452 |
// vendor-defined value indicating the TPM model |
| 453 |
TPMPTVendorTPMType TPMPT = 0x0000010A |
| 454 |
// the most-significant 32 bits of a TPM vendor-specific value |
| 455 |
// indicating the version number of the firmware. |
| 456 |
TPMPTFirmwareVersion1 TPMPT = 0x0000010B |
| 457 |
// the least-significant 32 bits of a TPM vendor-specific value |
| 458 |
// indicating the version number of the firmware. |
| 459 |
TPMPTFirmwareVersion2 TPMPT = 0x0000010C |
| 460 |
// the maximum size of a parameter TPM2B_MAX_BUFFER) |
| 461 |
TPMPTInputBuffer TPMPT = 0x0000010D |
| 462 |
// the minimum number of transient objects that can be held in TPM RAM |
| 463 |
TPMPTHRTransientMin TPMPT = 0x0000010E |
| 464 |
// the minimum number of persistent objects that can be held in TPM NV |
| 465 |
// memory |
| 466 |
TPMPTHRPersistentMin TPMPT = 0x0000010F |
| 467 |
// the minimum number of authorization sessions that can be held in TPM |
| 468 |
// RAM |
| 469 |
TPMPTHRLoadedMin TPMPT = 0x00000110 |
| 470 |
// the number of authorization sessions that may be active at a time |
| 471 |
TPMPTActiveSessionsMax TPMPT = 0x00000111 |
| 472 |
// the number of PCR implemented |
| 473 |
TPMPTPCRCount TPMPT = 0x00000112 |
| 474 |
// the minimum number of octets in a TPMS_PCR_SELECT.sizeOfSelect |
| 475 |
TPMPTPCRSelectMin TPMPT = 0x00000113 |
| 476 |
// the maximum allowed difference (unsigned) between the contextID |
| 477 |
// values of two saved session contexts |
| 478 |
TPMPTContextGapMax TPMPT = 0x00000114 |
| 479 |
// the maximum number of NV Indexes that are allowed to have the |
| 480 |
// TPM_NT_COUNTER attribute |
| 481 |
TPMPTNVCountersMax TPMPT = 0x00000116 |
| 482 |
// the maximum size of an NV Index data area |
| 483 |
TPMPTNVIndexMax TPMPT = 0x00000117 |
| 484 |
// a TPMA_MEMORY indicating the memory management method for the TPM |
| 485 |
TPMPTMemory TPMPT = 0x00000118 |
| 486 |
// interval, in milliseconds, between updates to the copy of |
| 487 |
// TPMS_CLOCK_INFO.clock in NV |
| 488 |
TPMPTClockUpdate TPMPT = 0x00000119 |
| 489 |
// the algorithm used for the integrity HMAC on saved contexts and for |
| 490 |
// hashing the fuData of TPM2_FirmwareRead() |
| 491 |
TPMPTContextHash TPMPT = 0x0000011A |
| 492 |
// TPM_ALG_ID, the algorithm used for encryption of saved contexts |
| 493 |
TPMPTContextSym TPMPT = 0x0000011B |
| 494 |
// TPM_KEY_BITS, the size of the key used for encryption of saved |
| 495 |
// contexts |
| 496 |
TPMPTContextSymSize TPMPT = 0x0000011C |
| 497 |
// the modulus - 1 of the count for NV update of an orderly counter |
| 498 |
TPMPTOrderlyCount TPMPT = 0x0000011D |
| 499 |
// the maximum value for commandSize in a command |
| 500 |
TPMPTMaxCommandSize TPMPT = 0x0000011E |
| 501 |
// the maximum value for responseSize in a response |
| 502 |
TPMPTMaxResponseSize TPMPT = 0x0000011F |
| 503 |
// the maximum size of a digest that can be produced by the TPM |
| 504 |
TPMPTMaxDigest TPMPT = 0x00000120 |
| 505 |
// the maximum size of an object context that will be returned by |
| 506 |
// TPM2_ContextSave |
| 507 |
TPMPTMaxObjectContext TPMPT = 0x00000121 |
| 508 |
// the maximum size of a session context that will be returned by |
| 509 |
// TPM2_ContextSave |
| 510 |
TPMPTMaxSessionContext TPMPT = 0x00000122 |
| 511 |
// platform-specific family (a TPM_PS value)(see Table 25) |
| 512 |
TPMPTPSFamilyIndicator TPMPT = 0x00000123 |
| 513 |
// the level of the platform-specific specification |
| 514 |
TPMPTPSLevel TPMPT = 0x00000124 |
| 515 |
// a platform specific value |
| 516 |
TPMPTPSRevision TPMPT = 0x00000125 |
| 517 |
// the platform-specific TPM specification day of year using TCG |
| 518 |
// calendar |
| 519 |
TPMPTPSDayOfYear TPMPT = 0x00000126 |
| 520 |
// the platform-specific TPM specification year using the CE |
| 521 |
TPMPTPSYear TPMPT = 0x00000127 |
| 522 |
// the number of split signing operations supported by the TPM |
| 523 |
TPMPTSplitMax TPMPT = 0x00000128 |
| 524 |
// total number of commands implemented in the TPM |
| 525 |
TPMPTTotalCommands TPMPT = 0x00000129 |
| 526 |
// number of commands from the TPM library that are implemented |
| 527 |
TPMPTLibraryCommands TPMPT = 0x0000012A |
| 528 |
// number of vendor commands that are implemented |
| 529 |
TPMPTVendorCommands TPMPT = 0x0000012B |
| 530 |
// the maximum data size in one NV write, NV read, NV extend, or NV |
| 531 |
// certify command |
| 532 |
TPMPTNVBufferMax TPMPT = 0x0000012C |
| 533 |
// a TPMA_MODES value, indicating that the TPM is designed for these |
| 534 |
// modes. |
| 535 |
TPMPTModes TPMPT = 0x0000012D |
| 536 |
// the maximum size of a TPMS_CAPABILITY_DATA structure returned in |
| 537 |
// TPM2_GetCapability(). |
| 538 |
TPMPTMaxCapBuffer TPMPT = 0x0000012E |
| 539 |
// TPMA_PERMANENT |
| 540 |
TPMPTPermanent TPMPT = 0x00000200 |
| 541 |
// TPMA_STARTUP_CLEAR |
| 542 |
TPMPTStartupClear TPMPT = 0x00000201 |
| 543 |
// the number of NV Indexes currently defined |
| 544 |
TPMPTHRNVIndex TPMPT = 0x00000202 |
| 545 |
// the number of authorization sessions currently loaded into TPM RAM |
| 546 |
TPMPTHRLoaded TPMPT = 0x00000203 |
| 547 |
// the number of additional authorization sessions, of any type, that |
| 548 |
// could be loaded into TPM RAM |
| 549 |
TPMPTHRLoadedAvail TPMPT = 0x00000204 |
| 550 |
// the number of active authorization sessions currently being tracked |
| 551 |
// by the TPM |
| 552 |
TPMPTHRActive TPMPT = 0x00000205 |
| 553 |
// the number of additional authorization sessions, of any type, that |
| 554 |
// could be created |
| 555 |
TPMPTHRActiveAvail TPMPT = 0x00000206 |
| 556 |
// estimate of the number of additional transient objects that could be |
| 557 |
// loaded into TPM RAM |
| 558 |
TPMPTHRTransientAvail TPMPT = 0x00000207 |
| 559 |
// the number of persistent objects currently loaded into TPM NV memory |
| 560 |
TPMPTHRPersistent TPMPT = 0x00000208 |
| 561 |
// the number of additional persistent objects that could be loaded into |
| 562 |
// NV memory |
| 563 |
TPMPTHRPersistentAvail TPMPT = 0x00000209 |
| 564 |
// the number of defined NV Indexes that have NV the TPM_NT_COUNTER |
| 565 |
// attribute |
| 566 |
TPMPTNVCounters TPMPT = 0x0000020A |
| 567 |
// the number of additional NV Indexes that can be defined with their |
| 568 |
// TPM_NT of TPM_NV_COUNTER and the TPMA_NV_ORDERLY attribute SET |
| 569 |
TPMPTNVCountersAvail TPMPT = 0x0000020B |
| 570 |
// code that limits the algorithms that may be used with the TPM |
| 571 |
TPMPTAlgorithmSet TPMPT = 0x0000020C |
| 572 |
// the number of loaded ECC curves |
| 573 |
TPMPTLoadedCurves TPMPT = 0x0000020D |
| 574 |
// the current value of the lockout counter (failedTries) |
| 575 |
TPMPTLockoutCounter TPMPT = 0x0000020E |
| 576 |
// the number of authorization failures before DA lockout is invoked |
| 577 |
TPMPTMaxAuthFail TPMPT = 0x0000020F |
| 578 |
// the number of seconds before the value reported by |
| 579 |
// TPM_PT_LOCKOUT_COUNTER is decremented |
| 580 |
TPMPTLockoutInterval TPMPT = 0x00000210 |
| 581 |
// the number of seconds after a lockoutAuth failure before use of |
| 582 |
// lockoutAuth may be attempted again |
| 583 |
TPMPTLockoutRecovery TPMPT = 0x00000211 |
| 584 |
// number of milliseconds before the TPM will accept another command |
| 585 |
// that will modify NV |
| 586 |
TPMPTNVWriteRecovery TPMPT = 0x00000212 |
| 587 |
// the high-order 32 bits of the command audit counter |
| 588 |
TPMPTAuditCounter0 TPMPT = 0x00000213 |
| 589 |
// the low-order 32 bits of the command audit counter |
| 590 |
TPMPTAuditCounter1 TPMPT = 0x00000214 |
| 591 |
) |
| 592 |
|
| 593 |
// TPMPTPCR represents a TPM_PT_PCR. |
| 594 |
// See definition in Part 2: Structures, section 6.14. |
| 595 |
type TPMPTPCR uint32 |
| 596 |
|
| 597 |
// TPMPTPCR values come from Part 2: Structures, section 6.14. |
| 598 |
const ( |
| 599 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR is saved and |
| 600 |
// restored by TPM_SU_STATE |
| 601 |
TPMPTPCRSave TPMPTPCR = 0x00000000 |
| 602 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be |
| 603 |
// extended from locality 0 |
| 604 |
TPMPTPCRExtendL0 TPMPTPCR = 0x00000001 |
| 605 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be reset |
| 606 |
// by TPM2_PCR_Reset() from locality 0 |
| 607 |
TPMPTPCRResetL0 TPMPTPCR = 0x00000002 |
| 608 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be |
| 609 |
// extended from locality 1 |
| 610 |
TPMPTPCRExtendL1 TPMPTPCR = 0x00000003 |
| 611 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be reset |
| 612 |
// by TPM2_PCR_Reset() from locality 1 |
| 613 |
TPMPTPCRResetL1 TPMPTPCR = 0x00000004 |
| 614 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be |
| 615 |
// extended from locality 2 |
| 616 |
TPMPTPCRExtendL2 TPMPTPCR = 0x00000005 |
| 617 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be reset |
| 618 |
// by TPM2_PCR_Reset() from locality 2 |
| 619 |
TPMPTPCRResetL2 TPMPTPCR = 0x00000006 |
| 620 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be |
| 621 |
// extended from locality 3 |
| 622 |
TPMPTPCRExtendL3 TPMPTPCR = 0x00000007 |
| 623 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be reset |
| 624 |
// by TPM2_PCR_Reset() from locality 3 |
| 625 |
TPMPTPCRResetL3 TPMPTPCR = 0x00000008 |
| 626 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be |
| 627 |
// extended from locality 4 |
| 628 |
TPMPTPCRExtendL4 TPMPTPCR = 0x00000009 |
| 629 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR may be reset |
| 630 |
// by TPM2_PCR_Reset() from locality 4 |
| 631 |
TPMPTPCRResetL4 TPMPTPCR = 0x0000000A |
| 632 |
// a SET bit in the TPMS_PCR_SELECT indicates that modifications to this |
| 633 |
// PCR (reset or Extend) will not increment the pcrUpdateCounter |
| 634 |
TPMPTPCRNoIncrement TPMPTPCR = 0x00000011 |
| 635 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR is reset by a |
| 636 |
// D-RTM event |
| 637 |
TPMPTPCRDRTMRest TPMPTPCR = 0x00000012 |
| 638 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR is controlled |
| 639 |
// by policy |
| 640 |
TPMPTPCRPolicy TPMPTPCR = 0x00000013 |
| 641 |
// a SET bit in the TPMS_PCR_SELECT indicates that the PCR is controlled |
| 642 |
// by an authorization value |
| 643 |
TPMPTPCRAuth TPMPTPCR = 0x00000014 |
| 644 |
) |
| 645 |
|
| 646 |
// TPMHT represents a TPM_HT. |
| 647 |
// See definition in Part 2: Structures, section 7.2. |
| 648 |
type TPMHT uint8 |
| 649 |
|
| 650 |
// TPMHT values come from Part 2: Structures, section 7.2. |
| 651 |
const ( |
| 652 |
TPMHTPCR TPMHT = 0x00 |
| 653 |
TPMHTNVIndex TPMHT = 0x01 |
| 654 |
TPMHTHMACSession TPMHT = 0x02 |
| 655 |
TPMHTPolicySession TPMHT = 0x03 |
| 656 |
TPMHTPermanent TPMHT = 0x40 |
| 657 |
TPMHTTransient TPMHT = 0x80 |
| 658 |
TPMHTPersistent TPMHT = 0x81 |
| 659 |
TPMHTAC TPMHT = 0x90 |
| 660 |
) |
| 661 |
|
| 662 |
// Saved Context transient object handles. |
| 663 |
// See definition in Part 2: Structures, section 14.6.2 |
| 664 |
// Context Handle Values come from table 211 |
| 665 |
const ( |
| 666 |
// an ordinary transient object |
| 667 |
TPMIDHSavedTransient TPMIDHSaved = 0x80000000 |
| 668 |
// a sequence object |
| 669 |
TPMIDHSavedSequence TPMIDHSaved = 0x80000001 |
| 670 |
// a transient object with the stClear attribute SET |
| 671 |
TPMIDHSavedTransientClear TPMIDHSaved = 0x80000002 |
| 672 |
) |
| 673 |
|
| 674 |
// TPMHandle represents a TPM_HANDLE. |
| 675 |
// See definition in Part 2: Structures, section 7.1. |
| 676 |
type TPMHandle uint32 |
| 677 |
|
| 678 |
// TPMHandle values come from Part 2: Structures, section 7.4. |
| 679 |
const ( |
| 680 |
TPMRHOwner TPMHandle = 0x40000001 |
| 681 |
TPMRHNull TPMHandle = 0x40000007 |
| 682 |
TPMRSPW TPMHandle = 0x40000009 |
| 683 |
TPMRHLockout TPMHandle = 0x4000000A |
| 684 |
TPMRHEndorsement TPMHandle = 0x4000000B |
| 685 |
TPMRHPlatform TPMHandle = 0x4000000C |
| 686 |
TPMRHPlatformNV TPMHandle = 0x4000000D |
| 687 |
TPMRHFWOwner TPMHandle = 0x40000140 |
| 688 |
TPMRHFWEndorsement TPMHandle = 0x40000141 |
| 689 |
TPMRHFWPlatform TPMHandle = 0x40000142 |
| 690 |
TPMRHFWNull TPMHandle = 0x40000143 |
| 691 |
) |
| 692 |
|
| 693 |
// TPMNT represents a TPM_NT. |
| 694 |
// See definition in Part 2: Structures, section 13.4. |
| 695 |
type TPMNT uint8 |
| 696 |
|
| 697 |
// TPMNT values come from Part 2: Structures, section 13.2. |
| 698 |
const ( |
| 699 |
// contains data that is opaque to the TPM that can only be modified |
| 700 |
// using TPM2_NV_Write(). |
| 701 |
TPMNTOrdinary TPMNT = 0x0 |
| 702 |
// contains an 8-octet value that is to be used as a counter and can |
| 703 |
// only be modified with TPM2_NV_Increment() |
| 704 |
TPMNTCounter TPMNT = 0x1 |
| 705 |
// contains an 8-octet value to be used as a bit field and can only be |
| 706 |
// modified with TPM2_NV_SetBits(). |
| 707 |
TPMNTBits TPMNT = 0x2 |
| 708 |
// contains a digest-sized value used like a PCR. The Index can only be |
| 709 |
// modified using TPM2_NV_Extend(). The extend will use the nameAlg of |
| 710 |
// the Index. |
| 711 |
TPMNTExtend TPMNT = 0x4 |
| 712 |
// contains pinCount that increments on a PIN authorization failure and |
| 713 |
// a pinLimit |
| 714 |
TPMNTPinFail TPMNT = 0x8 |
| 715 |
// contains pinCount that increments on a PIN authorization success and |
| 716 |
// a pinLimit |
| 717 |
TPMNTPinPass TPMNT = 0x9 |
| 718 |
) |