Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 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 | |
Jocelyn Bohr | a4ed3aa | 2015-07-30 10:44:16 -0700 | [diff] [blame] | 8 | #include "CryptoEngine.h" |
| 9 | |
Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 10 | const HASH_INFO g_hashData[HASH_COUNT + 1] = { |
| 11 | #ifdef TPM_ALG_SHA1 |
| 12 | {TPM_ALG_SHA1, SHA1_DIGEST_SIZE, SHA1_BLOCK_SIZE, |
Vadim Bendebury | 34f0a9a | 2015-05-29 12:24:59 -0700 | [diff] [blame] | 13 | SHA1_DER_SIZE, {SHA1_DER}}, |
Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 14 | #endif |
| 15 | #ifdef TPM_ALG_SHA256 |
| 16 | {TPM_ALG_SHA256, SHA256_DIGEST_SIZE, SHA256_BLOCK_SIZE, |
Vadim Bendebury | 34f0a9a | 2015-05-29 12:24:59 -0700 | [diff] [blame] | 17 | SHA256_DER_SIZE, {SHA256_DER}}, |
Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 18 | #endif |
| 19 | #ifdef TPM_ALG_SHA384 |
| 20 | {TPM_ALG_SHA384, SHA384_DIGEST_SIZE, SHA384_BLOCK_SIZE, |
Vadim Bendebury | 34f0a9a | 2015-05-29 12:24:59 -0700 | [diff] [blame] | 21 | SHA384_DER_SIZE, {SHA384_DER}}, |
Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 22 | #endif |
| 23 | #ifdef TPM_ALG_SM3_256 |
| 24 | {TPM_ALG_SM3_256, SM3_256_DIGEST_SIZE, SM3_256_BLOCK_SIZE, |
Vadim Bendebury | 34f0a9a | 2015-05-29 12:24:59 -0700 | [diff] [blame] | 25 | SM3_256_DER_SIZE, {SM3_256_DER}}, |
Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 26 | #endif |
| 27 | #ifdef TPM_ALG_SHA512 |
| 28 | {TPM_ALG_SHA512, SHA512_DIGEST_SIZE, SHA512_BLOCK_SIZE, |
Vadim Bendebury | 34f0a9a | 2015-05-29 12:24:59 -0700 | [diff] [blame] | 29 | SHA512_DER_SIZE, {SHA512_DER}}, |
Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 30 | #endif |
| 31 | {TPM_ALG_NULL,0,0,0,{0}} |
| 32 | }; |