Searched refs:integritySize (Results 1 – 4 of 4) sorted by relevance
/external/tpm2/ |
D | ContextSave.c | 32 UINT16 integritySize; in TPM2_ContextSave() local 60 integritySize = sizeof(integrity.t.size) in TPM2_ContextSave() 71 + integritySize + fingerprintSize); in TPM2_ContextSave() 76 out->context.contextBlob.t.size = integritySize + in TPM2_ContextSave() 125 out->context.contextBlob.t.size = integritySize + in TPM2_ContextSave() 137 + integritySize + fingerprintSize, in TPM2_ContextSave() 140 - integritySize - fingerprintSize); in TPM2_ContextSave() 167 MemoryCopy(out->context.contextBlob.t.buffer + integritySize, in TPM2_ContextSave() 169 sizeof(out->context.contextBlob.t.buffer) - integritySize); in TPM2_ContextSave() 175 CryptSymmetricEncrypt(out->context.contextBlob.t.buffer + integritySize, in TPM2_ContextSave() [all …]
|
D | ContextLoad.c | 35 UINT16 integritySize; in TPM2_ContextLoad() local 52 integritySize = CryptGetHashDigestSize(CONTEXT_INTEGRITY_HASH_ALG); in TPM2_ContextLoad() 60 if(integrity.t.size != integritySize) in TPM2_ContextLoad() 63 integritySize += sizeof(integrity.t.size); in TPM2_ContextLoad() 77 CryptSymmetricDecrypt(in->context.contextBlob.t.buffer + integritySize, in TPM2_ContextLoad() 80 in->context.contextBlob.t.size - integritySize, in TPM2_ContextLoad() 81 in->context.contextBlob.t.buffer + integritySize); in TPM2_ContextLoad() 84 MemoryCopy(&fingerprint, in->context.contextBlob.t.buffer + integritySize, in TPM2_ContextLoad() 97 + integritySize + sizeof(fingerprint)); in TPM2_ContextLoad() 126 + integritySize + sizeof(fingerprint)); in TPM2_ContextLoad()
|
D | Context_spt.c | 77 UINT16 integritySize; in ComputeContextIntegrity() local 84 integritySize = sizeof(integrity->t.size) + integrity->t.size; in ComputeContextIntegrity() 101 CryptUpdateDigest(&hmacState, contextBlob->contextBlob.t.size - integritySize, in ComputeContextIntegrity() 102 contextBlob->contextBlob.t.buffer + integritySize); in ComputeContextIntegrity()
|
D | Object_spt.c | 235 UINT16 integritySize; in ProduceInnerIntegrity() local 239 integritySize = sizeof(UINT16) + CryptGetHashDigestSize(hashAlg); in ProduceInnerIntegrity() 240 sensitiveData = innerBuffer + integritySize; in ProduceInnerIntegrity() 246 return dataSize + integritySize; in ProduceInnerIntegrity() 725 UINT16 integritySize; in ProduceOuterWrap() local 730 integritySize = sizeof(UINT16) + CryptGetHashDigestSize(hashAlg); in ProduceOuterWrap() 731 sensitiveData = outerBuffer + integritySize; in ProduceOuterWrap() 759 outerBuffer + integritySize, &integrity); in ProduceOuterWrap() 765 return dataSize + integritySize + ivSize; in ProduceOuterWrap() 875 UINT16 integritySize; in SensitiveToPrivate() local [all …]
|