libtpms/src/tpm2
Stefan Berger 28a70c478e tpm2: Fix public key context save due to ANY_OBJECT_Marshal usage
This patch fixes a VM suspend/resume issue when externally loaded public
keys are involved.

This patch addresses the bug reported in issue #195 where the saving of
an externally loaded public key's context doesn't work due to the usage of
ANY_CONTEXT_SAVE for saving key contexts. This patch fixes the issue by
creating local versions of TPM_SENSITIVE_Marshal/_Unmarshal that deals
with the case where sensitiveType is not a type of private key but a
public key instead that basically doesn't have much information in
TPM_SENSITIVE but is all zeros instead.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2021-02-26 14:59:39 -05:00
..
crypto tpm2: Test RSA private keys when -DDO_CHECK_RSA_KEY=1 is used 2021-02-24 07:14:39 -05:00
_TPM_Hash_Data_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
_TPM_Hash_End_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
_TPM_Hash_Start_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
_TPM_Init_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
ACT_SetTimeout_fp.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
ACT_spt_fp.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
ACT_spt.c tpm2: rev162: Sync largely unused ACT_spt.c 2020-05-27 07:45:29 -04:00
ACT.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
ACTCommands.c tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
ActivateCredential_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
AlgorithmCap_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
AlgorithmCap.c tpm2: rev162: Fix algorithm cap initialize for ECDSA (bugfix?) 2020-05-27 07:45:29 -04:00
AlgorithmTests_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
AlgorithmTests.c tpm2: Add missing 'libtpms added' comments 2020-05-27 07:45:29 -04:00
AsymmetricCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Attest_spt_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Attest_spt.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
AttestationCommands.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
AuditCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
BackwardsCompatibility.h tpm2: Activate SEED_COMPAT_LEVEL_RSA_PRIME_ADJUST_FIX 2020-04-14 16:03:45 -04:00
BackwardsCompatibilityObject.c tpm2: Add define for static_assert in case it doesn't exist in assert.h 2021-02-22 12:10:54 -05:00
BackwardsCompatibilityObject.h tpm2: Save key and hash contexts using ANY_OBJECT_Marshal 2021-02-20 15:08:46 -05:00
BaseTypes.h tpm2: Comments and whitespace changes only 2020-04-14 16:03:45 -04:00
Bits_fp.h rev149: Remove usage of INLINE_FUNCTIONS #define 2019-01-03 13:15:44 -05:00
Bits.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
BnConvert.c tpm2: Add casts to some variables 2020-04-14 16:03:45 -04:00
BnMath.c tpm2: EcSM2: Enforce that the random bnK has no leading zeros 2020-10-29 23:11:32 -04:00
BnMemory.c tpm2: Deactivate unused code 2019-04-01 16:41:21 -04:00
Cancel.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Capabilities.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
CapabilityCommands.c tpm2: ACT: Extend TPM2_Getcapability with TPM_CAP_ACT 2020-04-14 16:03:45 -04:00
Certify_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
CertifyCreation_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
CertifyX509_fp.h tpm2: x509 certify: rename field qualifyinData to reserved 2020-04-14 16:03:45 -04:00
ChangeEPS_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ChangePPS_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Clear_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ClearControl_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
Clock.c tpm2: Return int rather than BOOL on _plat__* functions 2020-04-14 16:03:45 -04:00
ClockCommands.c tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
ClockRateAdjust_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ClockSet_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
CommandAttributeData.h tpm2: rev162: Add support for new (unsed) ECC decrypt/encrypt functions 2020-05-27 07:45:29 -04:00
CommandAttributes.h tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
CommandAudit_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
CommandAudit.c tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
CommandCodeAttributes_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
CommandCodeAttributes.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
CommandDispatchData.h rev162: Fix order of commands in s_CommandDataArray 2020-06-29 08:42:37 -04:00
CommandDispatcher_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
CommandDispatcher.c tpm2: Add (unused) TABLE_DRIVEN_MARSHAL code to CommandDispatcher 2020-04-14 16:03:45 -04:00
Commit_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
CompilerDependencies.h tpm2: Add missing swap defines for FreeBSD 2021-02-22 12:10:54 -05:00
Context_spt_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Context_spt.c tpm2: Save key and hash contexts using ANY_OBJECT_Marshal 2021-02-20 15:08:46 -05:00
ContextCommands.c tpm2: Save key and hash contexts using ANY_OBJECT_Marshal 2021-02-20 15:08:46 -05:00
ContextLoad_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ContextSave_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Create_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
CreateLoaded_fp.h tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
CreatePrimary_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
CryptEccData.c tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
CryptSelfTest_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
CryptSelfTest.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
CryptUtil.c tpm2: Get rid of a variable 2020-04-14 16:03:45 -04:00
DA_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
DA.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
DebugHelpers_fp.h tpm2: Sync unused DebugHelpers 2020-04-14 16:03:45 -04:00
DebugHelpers.c tpm2: Sync unused DebugHelpers 2020-04-14 16:03:45 -04:00
DictionaryAttackLockReset_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
DictionaryAttackParameters_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
DictionaryCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Duplicate_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
DuplicationCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
EACommands.c tpm2: Add a pAssert after a statement causing unfounded Coverity complaint 2020-04-24 17:19:58 -04:00
EC_Ephemeral_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
ECC_Parameters_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
EccTestData.h rev148: Fixes to EccSignature math and test cases 2019-01-03 13:15:44 -05:00
ECDH_KeyGen_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ECDH_ZGen_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
EncryptDecrypt2_fp.h Upgrade from rev 142 to rev 146 2018-06-15 18:07:47 -04:00
EncryptDecrypt_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
EncryptDecrypt_spt_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
EncryptDecrypt_spt.c rev148: Remove unused include file 2019-01-03 13:15:44 -05:00
Entity_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Entity.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
Entropy.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
EphemeralCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
EventSequenceComplete_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
EvictControl_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
ExecCommand_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
ExecCommand.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
FlushContext_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
gensymtestsdata.sh tpm2: Add missing Camellia code including test cases 2020-04-14 16:03:45 -04:00
GetCapability_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
GetCommandAuditDigest_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
GetRandom_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
GetSessionAuditDigest_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
GetTestResult_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
GetTime_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Global.c tpm2: Include X509.h if CC_Ceritfyx509 is defined 2020-04-14 16:03:45 -04:00
Global.h rev162: Fix data type for signaledACT (unused) 2020-06-29 08:42:37 -04:00
GpMacros.h tpm2: rev162: Use TPM_ALG_NULL rather than synonymous ALG_NULL_VALUE 2020-05-27 07:45:29 -04:00
Handle_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Handle.c tpm2: ACT: Extend case statements with FOR_EACH_ACT 2020-04-14 16:03:45 -04:00
Hash_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
HashCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
HashSequenceStart_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
HashTestData.h tpm2: Convert CMAC test to SMAC test for better coverage 2019-12-27 10:48:52 -05:00
Hierarchy_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Hierarchy.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
HierarchyChangeAuth_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
HierarchyCommands.c tpm2: ACT: Extend case statements with FOR_EACH_ACT 2020-04-14 16:03:45 -04:00
HierarchyControl_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
HMAC_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
HMAC_Start_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Import_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
IncrementalSelfTest_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
IntegrityCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
InternalRoutines.h tpm2: rev162: Add support for new (unsed) ECC decrypt/encrypt functions 2020-05-27 07:45:29 -04:00
IoBuffers_fp.h rev148: Rework of IoBuffer functions 2019-01-03 13:15:44 -05:00
IoBuffers.c rev149: Remove usage of INLINE_FUNCTIONS #define 2019-01-03 13:15:44 -05:00
KdfTestData.h rev149: Comment and reformatting changes 2019-01-03 13:15:44 -05:00
LibtpmsCallbacks.c tpm2: rev155: Major refactoring of header files 2020-04-14 16:03:45 -04:00
LibtpmsCallbacks.h tpm2: Move callback invocations into their own file 2018-10-05 21:47:15 -04:00
Load_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
LoadExternal_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
Locality_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Locality.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
LocalityPlat.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
MAC_fp.h rev148: Capitalizing names of #defines 2019-01-03 13:15:44 -05:00
MAC_Start_fp.h Upgrade from rev 142 to rev 146 2018-06-15 18:07:47 -04:00
MakeCredential_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ManagementCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Manufacture_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Manufacture.c tpm2: Have MathLibraryCompatibilityCheck() return BOOL 2020-04-14 16:03:45 -04:00
Marshal_fp.h rev162: Add marshal functions related to ACT 2020-06-29 08:42:37 -04:00
Marshal.c tpm2: Fix compilation error in TPM2B_CREATION_DATA_Marshal (Fedora 32/s390x) 2020-08-17 15:20:11 -04:00
MathOnByteBuffers_fp.h tpm2: Remove dead functions and their prototypes 2020-04-14 16:03:45 -04:00
MathOnByteBuffers.c tpm2: Remove dead functions and their prototypes 2020-04-14 16:03:45 -04:00
Memory_fp.h tpm2: rev155: Implement ByteArrayToUint8 2020-04-14 16:03:45 -04:00
Memory.c tpm2: rev155: Refactor ByteArrayToUintXY functions 2020-04-14 16:03:45 -04:00
MinMax.h tpm2: Comments and whitespace changes only 2020-04-14 16:03:45 -04:00
NV_Certify_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_ChangeAuth_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_DefineSpace_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_Extend_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_GlobalWriteLock_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_Increment_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
NV_Read_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_ReadLock_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_ReadPublic_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_SetBits_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_spt_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
NV_spt.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
NV_UndefineSpace_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_UndefineSpaceSpecial_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_Write_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
NV_WriteLock_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
NV.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
NVCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
NVDynamic_fp.h tpm2: rev155: Implement NvHashIndexData 2020-04-14 16:03:45 -04:00
NVDynamic.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
NVMarshal.c tpm2: Fix public key context save due to ANY_OBJECT_Marshal usage 2021-02-26 14:59:39 -05:00
NVMarshal.h tpm2: Make ANY_OBJECT_Marshal/Unmarshal non-static 2021-02-20 15:08:46 -05:00
NVMem.c tpm2: rev162: Sync code related to NVChip file size 2020-05-27 07:45:29 -04:00
NVReserved_fp.h tpm2: rev155: Have NvWrite return BOOL 2020-04-14 16:03:45 -04:00
NVReserved.c tpm2: Comments and whitespace changes only 2020-04-14 16:03:45 -04:00
Object_fp.h tpm2: Save key and hash contexts using ANY_OBJECT_Marshal 2021-02-20 15:08:46 -05:00
Object_spt_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Object_spt.c tpm2: rev162: Rename ALG_<xyz>_VALUE to synonymous TPM_ALG_<xyz> 2020-05-27 07:45:29 -04:00
Object.c tpm2: Save key and hash contexts using ANY_OBJECT_Marshal 2021-02-20 15:08:46 -05:00
ObjectChangeAuth_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ObjectCommands.c tpm2: rev162: Rename MAX_DERIVATION_BITS to TPM_MAX_DERIVATION_BITS 2020-05-27 07:45:29 -04:00
OIDs.h rev162: Fix typoe in SHA384_OID #define (unused) 2020-06-29 08:42:37 -04:00
PCR_Allocate_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
PCR_Event_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PCR_Extend_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PCR_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
PCR_Read_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PCR_Reset_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PCR_SetAuthPolicy_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PCR_SetAuthValue_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PCR.c rev162: fix PCRBelongsTCBGroup for PCClient (bugfix) 2020-06-29 08:42:37 -04:00
Platform_fp.h tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
Platform.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
PlatformACT_fp.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
PlatformACT.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
PlatformACT.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
PlatformClock.h tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
PlatformData.c tpm2: Move variables from PlatformData.c to PlatformData.h 2020-04-14 16:03:45 -04:00
PlatformData.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
Policy_spt_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Policy_spt.c tpm2: Fix negate overflow error (UBSAN) 2020-11-24 12:52:08 -05:00
PolicyAuthorize_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyAuthorizeNV_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyAuthValue_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyCommandCode_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyCounterTimer_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyCpHash_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
PolicyDuplicationSelect_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyGetDigest_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyLocality_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyNameHash_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyNV_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyNvWritten_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyOR_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyPassword_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyPCR_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyPhysicalPresence_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyRestart_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicySecret_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
PolicySigned_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
PolicyTemplate_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
PolicyTicket_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
Power_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Power.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
PowerPlat.c tpm2: ACT: Add rest of ACT code 2020-04-14 16:03:45 -04:00
PP_Commands_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
PP_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
PP.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
PPPlat.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
PrimeData.c rev149: Comment and reformatting changes 2019-01-03 13:15:44 -05:00
PRNG_TestVectors.h tpm2: Comments and whitespace changes only 2020-04-14 16:03:45 -04:00
PropertyCap_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
PropertyCap.c tpm2: Introduce TPMA_ZERO_INITIALIZER() and use it 2020-04-14 16:03:45 -04:00
Quote_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
RandomCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
ReadClock_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ReadPublic_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Response_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Response.c rev148: Changes to comments only 2019-01-03 13:15:44 -05:00
ResponseCodeProcessing_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
ResponseCodeProcessing.c rev148: Files with header changes only 2019-01-03 13:15:44 -05:00
Rewrap_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
RSA_Decrypt_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
RSA_Encrypt_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
RsaTestData.h rev148: Reformatting in RsaTestData.h 2019-01-03 13:15:44 -05:00
RunCommand.c tpm2: rev155: Major refactoring of header files 2020-04-14 16:03:45 -04:00
SelfTest_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
SelfTest.h tpm2: rev162: Rename TPM_SYM_MODE_FIRST/LAST to SYM_MODE_FIRST/LAST 2020-05-27 07:45:29 -04:00
SequenceComplete_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
SequenceUpdate_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Session_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Session.c tpm2: Address issues detected by cppcheck (false positives) 2021-01-02 20:26:23 -05:00
SessionCommands.c tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
SessionProcess_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
SessionProcess.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
SetAlgorithmSet_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
SetCommandCodeAuditStatus_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
SetPrimaryPolicy_fp.h tpm2: Replace TPMI_RH_HIERARCHY_AUTH with .._POLICY in SetPrimaryPolicy_In 2020-04-14 16:03:45 -04:00
Shutdown_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Sign_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
SigningCommands.c tpm2: Comments and whitespace changes only 2020-04-14 16:03:45 -04:00
Simulator_fp.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
StartAuthSession_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Startup_fp.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
StartupCommands.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
StateMarshal.c tpm2: Fix license headers in files written by 'me' 2018-10-06 11:00:26 -04:00
StateMarshal.h tpm2: rev155: Major refactoring of header files 2020-04-14 16:03:45 -04:00
StirRandom_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
SupportLibraryFunctionPrototypes_fp.h tpm2: Comments and whitespace changes only 2020-04-14 16:03:45 -04:00
swap.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
SymmetricCommands.c tpm2: rev162: Rename TPM_GENERATED to TPM_CONSTANTS32 2020-05-27 07:45:29 -04:00
SymmetricTest.h tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
SymmetricTestData.h tpm2: Add missing SM4; do not enable it 2020-04-14 16:03:45 -04:00
TcpServerPosix_fp.h tpm2: Sync unused TpcserverPosix_fp.h 2020-04-14 16:03:45 -04:00
TestingCommands.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
TestParms_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Ticket_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Ticket.c tpm2: rev162: Rename TPM_GENERATED to TPM_CONSTANTS32 2020-05-27 07:45:29 -04:00
Time_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Time.c tpm2: Move CLOCK #defines into PlatformClock.h 2020-04-14 16:03:45 -04:00
Tpm.h tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
TpmAlgorithmDefines.h tpm2: rev162: Add support for new (unsed) ECC decrypt/encrypt functions 2020-05-27 07:45:29 -04:00
TpmAsn1_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
TpmAsn1.c tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
TpmAsn1.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
TPMB.h tpm2: Code reformatting and comment changes only 2020-04-14 16:03:45 -04:00
TpmBuildSwitches.h rev162: Comment fixes and changes to unused code 2020-06-29 08:42:37 -04:00
TPMCmdp.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
TpmError.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
TpmFail_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
TpmFail.c [build-sys] Add -Wmissing-prototypes to CFLAGS and clean up 2020-06-01 18:23:07 -04:00
TpmProfile.h tpm2: Add statement about unsupported modifications to TpmProfile.h 2021-02-23 11:11:24 -05:00
TpmSizeChecks_fp.h tpm2: Sync unused TpmSizeChecks function 2020-04-14 16:03:45 -04:00
TpmSizeChecks.c rev162: Comment fixes and changes to unused code 2020-06-29 08:42:37 -04:00
TpmTcpProtocol.h tpm2: ACT: Add data structures, defines, and un/marshalling code 2020-04-14 16:03:45 -04:00
TpmTypes.h tpm2: Fix the returned number in the JSON 2020-08-24 20:47:33 -04:00
Unique.c tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
Unmarshal_fp.h [build-sys] Add -Wmissing-prototypes to CFLAGS and clean up 2020-06-01 18:23:07 -04:00
Unmarshal.c rev162: Handle TPM_CAP_ACT in TPM_CAP_Unmarshal 2020-06-29 08:42:37 -04:00
Unseal_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Utils.h [build-sys] Add -Wmissing-prototypes to CFLAGS and clean up 2020-06-01 18:23:07 -04:00
Vendor_TCG_Test_fp.h rev162: Comment fixes and changes to unused code 2020-06-29 08:42:37 -04:00
Vendor_TCG_Test.c tpm2: Fix conditional compile of TPM2_Vendor_TCG_Test 2020-04-14 16:03:45 -04:00
VendorString.h tpm2: Remove space after 'IBM' in MANUFACTURER 2020-05-18 11:22:21 -04:00
VerifySignature_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00
Volatile.c tpm2: Check data size to be at least size of hash 2019-08-06 09:30:52 -04:00
Volatile.h tpm2: Fix license headers in files written by 'me' 2018-10-06 11:00:26 -04:00
X509_ECC_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
X509_ECC.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
X509_RSA_fp.h tpm2: sync svn 1490; whitespace and comment changes only 2020-04-14 16:03:45 -04:00
X509_RSA.c tpm2: rev162: Trivial whitespace and comment changes 2020-05-27 07:45:29 -04:00
X509_spt_fp.h tpm2: rev155: Add code to create X509 RSA and EC key certificates 2020-04-14 16:03:45 -04:00
X509_spt.c tpm2: rev162: Use TPM_ALG_<asym> rather than synonymous TPM_<asym>_VALUE 2020-05-27 07:45:29 -04:00
X509.h tpm2: Move CERTIFYX509_DEBUG into TpmBuildSwitches.h 2020-04-14 16:03:45 -04:00
ZGen_2Phase_fp.h Add TPM 2 code 2018-06-15 18:07:47 -04:00