Home
last modified time | relevance | path

Searched refs:SendBuffer (Results 1 – 10 of 10) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/
DTpm2NVStorage.c179 TPM2_NV_READPUBLIC_COMMAND SendBuffer; in Tpm2NvReadPublic() local
191 SendBuffer.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2NvReadPublic()
192 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_ReadPublic); in Tpm2NvReadPublic()
194 SendBuffer.NvIndex = SwapBytes32 (NvIndex); in Tpm2NvReadPublic()
196 SendBufferSize = (UINT32) sizeof (SendBuffer); in Tpm2NvReadPublic()
197 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2NvReadPublic()
203 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2NvReadPublic()
287 TPM2_NV_DEFINESPACE_COMMAND SendBuffer; in Tpm2NvDefineSpace() local
299 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS); in Tpm2NvDefineSpace()
300 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_NV_DefineSpace); in Tpm2NvDefineSpace()
[all …]
DTpm2EnhancedAuthorization.c109 TPM2_POLICY_SECRET_COMMAND SendBuffer; in Tpm2PolicySecret() local
119 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS); in Tpm2PolicySecret()
120 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_PolicySecret); in Tpm2PolicySecret()
121 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle); in Tpm2PolicySecret()
122 SendBuffer.PolicySession = SwapBytes32 (PolicySession); in Tpm2PolicySecret()
127 Buffer = (UINT8 *)&SendBuffer.AuthSession; in Tpm2PolicySecret()
132 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize); in Tpm2PolicySecret()
155 SendBufferSize = (UINT32)((UINTN)Buffer - (UINTN)&SendBuffer); in Tpm2PolicySecret()
156 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2PolicySecret()
162 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2PolicySecret()
[all …]
DTpm2DictionaryAttack.c73 TPM2_DICTIONARY_ATTACK_LOCK_RESET_COMMAND SendBuffer; in Tpm2DictionaryAttackLockReset() local
83 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS); in Tpm2DictionaryAttackLockReset()
84 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_DictionaryAttackLockReset); in Tpm2DictionaryAttackLockReset()
86 SendBuffer.LockHandle = SwapBytes32 (LockHandle); in Tpm2DictionaryAttackLockReset()
91 Buffer = (UINT8 *)&SendBuffer.AuthSession; in Tpm2DictionaryAttackLockReset()
96 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize); in Tpm2DictionaryAttackLockReset()
98 SendBufferSize = (UINT32)((UINTN)Buffer - (UINTN)&SendBuffer); in Tpm2DictionaryAttackLockReset()
99 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2DictionaryAttackLockReset()
105 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2DictionaryAttackLockReset()
125 ZeroMem (&SendBuffer, sizeof(SendBuffer)); in Tpm2DictionaryAttackLockReset()
[all …]
DTpm2Miscellaneous.c61 TPM2_SET_ALGORITHM_SET_COMMAND SendBuffer; in Tpm2SetAlgorithmSet() local
71 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS); in Tpm2SetAlgorithmSet()
72 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_SetAlgorithmSet); in Tpm2SetAlgorithmSet()
74 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle); in Tpm2SetAlgorithmSet()
79 Buffer = (UINT8 *)&SendBuffer.AuthSession; in Tpm2SetAlgorithmSet()
84 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize); in Tpm2SetAlgorithmSet()
92 SendBufferSize = (UINT32)((UINTN)Buffer - (UINTN)&SendBuffer); in Tpm2SetAlgorithmSet()
93 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2SetAlgorithmSet()
99 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2SetAlgorithmSet()
119 ZeroMem (&SendBuffer, sizeof(SendBuffer)); in Tpm2SetAlgorithmSet()
DTpm2Context.c50 TPM2_FLUSH_CONTEXT_COMMAND SendBuffer; in Tpm2FlushContext() local
58 SendBuffer.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2FlushContext()
59 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_FlushContext); in Tpm2FlushContext()
61 SendBuffer.FlushHandle = SwapBytes32 (FlushHandle); in Tpm2FlushContext()
63 SendBufferSize = (UINT32) sizeof (SendBuffer); in Tpm2FlushContext()
64 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2FlushContext()
70 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2FlushContext()
DTpm2Session.c75 TPM2_START_AUTH_SESSION_COMMAND SendBuffer; in Tpm2StartAuthSession() local
84 SendBuffer.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2StartAuthSession()
85 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_StartAuthSession); in Tpm2StartAuthSession()
87 SendBuffer.TpmKey = SwapBytes32 (TpmKey); in Tpm2StartAuthSession()
88 SendBuffer.Bind = SwapBytes32 (Bind); in Tpm2StartAuthSession()
89 Buffer = (UINT8 *)&SendBuffer.NonceCaller; in Tpm2StartAuthSession()
140 SendBufferSize = (UINT32) ((UINTN)Buffer - (UINTN)&SendBuffer); in Tpm2StartAuthSession()
141 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2StartAuthSession()
147 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2StartAuthSession()
DTpm2Capability.c84 TPM2_GET_CAPABILITY_COMMAND SendBuffer; in Tpm2GetCapability() local
92 SendBuffer.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2GetCapability()
93 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_GetCapability); in Tpm2GetCapability()
95 SendBuffer.Capability = SwapBytes32 (Capability); in Tpm2GetCapability()
96 SendBuffer.Property = SwapBytes32 (Property); in Tpm2GetCapability()
97 SendBuffer.PropertyCount = SwapBytes32 (PropertyCount); in Tpm2GetCapability()
99 SendBufferSize = (UINT32) sizeof (SendBuffer); in Tpm2GetCapability()
100 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2GetCapability()
106 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2GetCapability()
630 TPM2_TEST_PARMS_COMMAND SendBuffer; in Tpm2TestParms() local
[all …]
DTpm2Integrity.c323 TPM2_PCR_READ_COMMAND SendBuffer; in Tpm2PcrRead() local
334 SendBuffer.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2PcrRead()
335 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_PCR_Read); in Tpm2PcrRead()
337 SendBuffer.PcrSelectionIn.count = SwapBytes32(PcrSelectionIn->count); in Tpm2PcrRead()
339SendBuffer.PcrSelectionIn.pcrSelections[Index].hash = SwapBytes16(PcrSelectionIn->pcrSelections[In… in Tpm2PcrRead()
340SendBuffer.PcrSelectionIn.pcrSelections[Index].sizeofSelect = PcrSelectionIn->pcrSelections[Index]… in Tpm2PcrRead()
341 …CopyMem (&SendBuffer.PcrSelectionIn.pcrSelections[Index].pcrSelect, &PcrSelectionIn->pcrSelections… in Tpm2PcrRead()
344 …SendBufferSize = sizeof(SendBuffer.Header) + sizeof(SendBuffer.PcrSelectionIn.count) + sizeof(Send… in Tpm2PcrRead()
345 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2PcrRead()
351 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2PcrRead()
DTpm2Hierarchy.c145 TPM2_SET_PRIMARY_POLICY_COMMAND SendBuffer; in Tpm2SetPrimaryPolicy() local
155 SendBuffer.Header.tag = SwapBytes16(TPM_ST_SESSIONS); in Tpm2SetPrimaryPolicy()
156 SendBuffer.Header.commandCode = SwapBytes32(TPM_CC_SetPrimaryPolicy); in Tpm2SetPrimaryPolicy()
158 SendBuffer.AuthHandle = SwapBytes32 (AuthHandle); in Tpm2SetPrimaryPolicy()
163 Buffer = (UINT8 *)&SendBuffer.AuthSession; in Tpm2SetPrimaryPolicy()
168 SendBuffer.AuthSessionSize = SwapBytes32(SessionInfoSize); in Tpm2SetPrimaryPolicy()
180 SendBufferSize = (UINT32)((UINTN)Buffer - (UINTN)&SendBuffer); in Tpm2SetPrimaryPolicy()
181 SendBuffer.Header.paramSize = SwapBytes32 (SendBufferSize); in Tpm2SetPrimaryPolicy()
187 …Status = Tpm2SubmitCommand (SendBufferSize, (UINT8 *)&SendBuffer, &RecvBufferSize, (UINT8 *)&RecvB… in Tpm2SetPrimaryPolicy()
207 ZeroMem (&SendBuffer, sizeof(SendBuffer)); in Tpm2SetPrimaryPolicy()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTcgPhysicalPresenceLib/
DDxeTcgPhysicalPresenceLib.c82 UINT8 SendBuffer[sizeof (*TpmRqu) + sizeof (UINT32) * 3]; in GetTpmCapability() local
90 TpmRqu = (TPM_RQU_COMMAND_HDR*)SendBuffer; in GetTpmCapability()
93 TpmRqu->paramSize = SwapBytes32 (sizeof (SendBuffer)); in GetTpmCapability()
106 sizeof (SendBuffer), in GetTpmCapability()