/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/ |
D | Tpm2EnhancedAuthorization.c | 112 UINT32 RecvBufferSize; in Tpm2PolicySecret() local 161 RecvBufferSize = sizeof (RecvBuffer); in Tpm2PolicySecret() 162 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2PolicySecret() 167 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2PolicySecret() 168 DEBUG ((EFI_D_ERROR, "Tpm2PolicySecret - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2PolicySecret() 226 UINT32 RecvBufferSize; in Tpm2PolicyOR() local 253 RecvBufferSize = sizeof (RecvBuffer); in Tpm2PolicyOR() 254 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2PolicyOR() 259 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2PolicyOR() 260 DEBUG ((EFI_D_ERROR, "Tpm2PolicyOR - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2PolicyOR() [all …]
|
D | Tpm2NVStorage.c | 182 UINT32 RecvBufferSize; in Tpm2NvReadPublic() local 202 RecvBufferSize = sizeof (RecvBuffer); in Tpm2NvReadPublic() 203 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2NvReadPublic() 208 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2NvReadPublic() 209 DEBUG ((EFI_D_ERROR, "Tpm2NvReadPublic - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2NvReadPublic() 228 if (RecvBufferSize <= sizeof (TPM2_RESPONSE_HEADER) + sizeof (UINT16) + sizeof(UINT16)) { in Tpm2NvReadPublic() 229 DEBUG ((EFI_D_ERROR, "Tpm2NvReadPublic - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2NvReadPublic() 239 …if (RecvBufferSize != sizeof(TPM2_RESPONSE_HEADER) + sizeof(UINT16) + NvPublicSize + sizeof(UINT16… in Tpm2NvReadPublic() 240 …eadPublic - RecvBufferSize Error - NvPublicSize %x, NvNameSize %x\n", RecvBufferSize, NvNameSize)); in Tpm2NvReadPublic() 290 UINT32 RecvBufferSize; in Tpm2NvDefineSpace() local [all …]
|
D | Tpm2DictionaryAttack.c | 76 UINT32 RecvBufferSize; in Tpm2DictionaryAttackLockReset() local 104 RecvBufferSize = sizeof (RecvBuffer); in Tpm2DictionaryAttackLockReset() 105 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2DictionaryAttackLockReset() 110 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2DictionaryAttackLockReset() 111 …BUG ((EFI_D_ERROR, "Tpm2DictionaryAttackLockReset - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2DictionaryAttackLockReset() 157 UINT32 RecvBufferSize; in Tpm2DictionaryAttackParameters() local 195 RecvBufferSize = sizeof (RecvBuffer); in Tpm2DictionaryAttackParameters() 196 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2DictionaryAttackParameters() 201 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2DictionaryAttackParameters() 202 …UG ((EFI_D_ERROR, "Tpm2DictionaryAttackParameters - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2DictionaryAttackParameters()
|
D | Tpm2Context.c | 53 UINT32 RecvBufferSize; in Tpm2FlushContext() local 69 RecvBufferSize = sizeof (RecvBuffer); in Tpm2FlushContext() 70 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2FlushContext() 75 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2FlushContext() 76 DEBUG ((EFI_D_ERROR, "Tpm2FlushContext - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2FlushContext()
|
D | Tpm2Miscellaneous.c | 64 UINT32 RecvBufferSize; in Tpm2SetAlgorithmSet() local 98 RecvBufferSize = sizeof (RecvBuffer); in Tpm2SetAlgorithmSet() 99 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2SetAlgorithmSet() 104 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2SetAlgorithmSet() 105 DEBUG ((EFI_D_ERROR, "Tpm2SetAlgorithmSet - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2SetAlgorithmSet()
|
D | Tpm2Session.c | 78 UINT32 RecvBufferSize; in Tpm2StartAuthSession() local 146 RecvBufferSize = sizeof (RecvBuffer); in Tpm2StartAuthSession() 147 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2StartAuthSession() 152 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2StartAuthSession() 153 DEBUG ((EFI_D_ERROR, "Tpm2StartAuthSession - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2StartAuthSession()
|
D | Tpm2Integrity.c | 326 UINT32 RecvBufferSize; in Tpm2PcrRead() local 350 RecvBufferSize = sizeof (RecvBuffer); in Tpm2PcrRead() 351 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2PcrRead() 356 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2PcrRead() 357 DEBUG ((EFI_D_ERROR, "Tpm2PcrRead - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2PcrRead() 372 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER) + sizeof(RecvBuffer.PcrUpdateCounter)) { in Tpm2PcrRead() 373 DEBUG ((EFI_D_ERROR, "Tpm2PcrRead - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2PcrRead() 381 …if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER) + sizeof(RecvBuffer.PcrUpdateCounter) + sizeof(… in Tpm2PcrRead() 382 DEBUG ((EFI_D_ERROR, "Tpm2PcrRead - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2PcrRead() 386 …if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER) + sizeof(RecvBuffer.PcrUpdateCounter) + sizeof(… in Tpm2PcrRead() [all …]
|
D | Tpm2Capability.c | 87 UINT32 RecvBufferSize; in Tpm2GetCapability() local 105 RecvBufferSize = sizeof (RecvBuffer); in Tpm2GetCapability() 106 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2GetCapability() 111 if (RecvBufferSize <= sizeof (TPM2_RESPONSE_HEADER) + sizeof (UINT8)) { in Tpm2GetCapability() 122 …CopyMem (CapabilityData, &RecvBuffer.CapabilityData, RecvBufferSize - sizeof (TPM2_RESPONSE_HEADER… in Tpm2GetCapability() 633 UINT32 RecvBufferSize; in Tpm2TestParms() local 817 RecvBufferSize = sizeof (RecvBuffer); in Tpm2TestParms() 818 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2TestParms() 823 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2TestParms() 824 DEBUG ((EFI_D_ERROR, "Tpm2TestParms - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2TestParms()
|
D | Tpm2Hierarchy.c | 148 UINT32 RecvBufferSize; in Tpm2SetPrimaryPolicy() local 186 RecvBufferSize = sizeof (RecvBuffer); in Tpm2SetPrimaryPolicy() 187 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2SetPrimaryPolicy() 192 if (RecvBufferSize < sizeof (TPM2_RESPONSE_HEADER)) { in Tpm2SetPrimaryPolicy() 193 DEBUG ((EFI_D_ERROR, "Tpm2SetPrimaryPolicy - RecvBufferSize Error - %x\n", RecvBufferSize)); in Tpm2SetPrimaryPolicy()
|