Home | History | Annotate | Download | only in tpm2
      1 // This file was extracted from the TCG Published
      2 // Trusted Platform Module Library
      3 // Part 4: Supporting Routines
      4 // Family "2.0"
      5 // Level 00 Revision 01.16
      6 // October 30, 2014
      7 
      8 #include "CryptoEngine.h"
      9 
     10   const HASH_INFO    g_hashData[HASH_COUNT + 1] = {
     11 #ifdef TPM_ALG_SHA1
     12    {TPM_ALG_SHA1,     SHA1_DIGEST_SIZE,   SHA1_BLOCK_SIZE,
     13     SHA1_DER_SIZE,    {SHA1_DER}},
     14 #endif
     15 #ifdef TPM_ALG_SHA256
     16    {TPM_ALG_SHA256,     SHA256_DIGEST_SIZE,   SHA256_BLOCK_SIZE,
     17     SHA256_DER_SIZE,    {SHA256_DER}},
     18 #endif
     19 #ifdef TPM_ALG_SHA384
     20    {TPM_ALG_SHA384,     SHA384_DIGEST_SIZE,   SHA384_BLOCK_SIZE,
     21     SHA384_DER_SIZE,    {SHA384_DER}},
     22 #endif
     23 #ifdef TPM_ALG_SM3_256
     24    {TPM_ALG_SM3_256,     SM3_256_DIGEST_SIZE,   SM3_256_BLOCK_SIZE,
     25     SM3_256_DER_SIZE,    {SM3_256_DER}},
     26 #endif
     27 #ifdef TPM_ALG_SHA512
     28    {TPM_ALG_SHA512,     SHA512_DIGEST_SIZE,   SHA512_BLOCK_SIZE,
     29     SHA512_DER_SIZE,    {SHA512_DER}},
     30 #endif
     31       {TPM_ALG_NULL,0,0,0,{0}}
     32   };
     33