Functions | |
UINT16 EFIAPI | GetHashSizeFromAlgo (IN TPMI_ALG_HASH HashAlgo) |
UINT32 EFIAPI | CopyAuthSessionCommand (IN TPMS_AUTH_COMMAND *AuthSessionIn, OUT UINT8 *AuthSessionOut) |
UINT32 EFIAPI | CopyAuthSessionResponse (IN UINT8 *AuthSessionIn, OUT TPMS_AUTH_RESPONSE *AuthSessionOut) |
Variables | |
STATIC INTERNAL_HASH_INFO | mHashInfo [] |
Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
UINT32 EFIAPI CopyAuthSessionCommand | ( | IN TPMS_AUTH_COMMAND * | AuthSessionIn, | |
OUT UINT8 * | AuthSessionOut | |||
) |
Copy AuthSessionIn to TPM2 command buffer.
[in] | AuthSessionIn | Input AuthSession data |
[out] | AuthSessionOut | Output AuthSession data in TPM2 command buffer |
References UINTN().
Referenced by Tpm2ChangeEPS(), Tpm2ChangePPS(), Tpm2Clear(), Tpm2ClearControl(), Tpm2DictionaryAttackLockReset(), Tpm2DictionaryAttackParameters(), Tpm2EventSequenceComplete(), Tpm2HierarchyChangeAuth(), Tpm2HierarchyControl(), Tpm2NvDefineSpace(), Tpm2NvGlobalWriteLock(), Tpm2NvRead(), Tpm2NvReadLock(), Tpm2NvUndefineSpace(), Tpm2NvWrite(), Tpm2NvWriteLock(), Tpm2PcrAllocate(), Tpm2PcrEvent(), Tpm2PcrExtend(), Tpm2PolicySecret(), Tpm2SequenceComplete(), Tpm2SequenceUpdate(), Tpm2SetAlgorithmSet(), and Tpm2SetPrimaryPolicy().
UINT32 EFIAPI CopyAuthSessionResponse | ( | IN UINT8 * | AuthSessionIn, | |
OUT TPMS_AUTH_RESPONSE * | AuthSessionOut | |||
) |
Copy AuthSessionIn from TPM2 response buffer.
[in] | AuthSessionIn | Input AuthSession data in TPM2 response buffer |
[out] | AuthSessionOut | Output AuthSession data |
References UINTN().
UINT16 EFIAPI GetHashSizeFromAlgo | ( | IN TPMI_ALG_HASH | HashAlgo | ) |
Return size of digest.
[in] | HashAlgo | Hash algorithm |
References mHashInfo, and UINTN().
Referenced by CopyDigestListToBuffer(), DumpEvent2(), GetDigestListBinSize(), GetDigestListSize(), GetPcrEvent2Size(), Tpm2EventSequenceComplete(), Tpm2GetDigestFromDigestList(), Tpm2PcrEvent(), and Tpm2PcrExtend().
STATIC INTERNAL_HASH_INFO mHashInfo[] |
Initial value:
{ {TPM_ALG_SHA1, SHA1_DIGEST_SIZE}, {TPM_ALG_SHA256, SHA256_DIGEST_SIZE}, {TPM_ALG_SM3_256, SM3_256_DIGEST_SIZE}, {TPM_ALG_SHA384, SHA384_DIGEST_SIZE}, {TPM_ALG_SHA512, SHA512_DIGEST_SIZE}, }
Referenced by GetHashInfo(), and GetHashSizeFromAlgo().