blob: 1a4224e23a751b800f2d058b95684223176d6bef [file] [log] [blame]
Vadim Bendebury56797522015-05-20 10:32:25 -07001// 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 Bohra4ed3aa2015-07-30 10:44:16 -07008#include "CryptoEngine.h"
9
Vadim Bendebury56797522015-05-20 10:32:25 -070010 const HASH_INFO g_hashData[HASH_COUNT + 1] = {
11#ifdef TPM_ALG_SHA1
12 {TPM_ALG_SHA1, SHA1_DIGEST_SIZE, SHA1_BLOCK_SIZE,
Vadim Bendebury34f0a9a2015-05-29 12:24:59 -070013 SHA1_DER_SIZE, {SHA1_DER}},
Vadim Bendebury56797522015-05-20 10:32:25 -070014#endif
15#ifdef TPM_ALG_SHA256
16 {TPM_ALG_SHA256, SHA256_DIGEST_SIZE, SHA256_BLOCK_SIZE,
Vadim Bendebury34f0a9a2015-05-29 12:24:59 -070017 SHA256_DER_SIZE, {SHA256_DER}},
Vadim Bendebury56797522015-05-20 10:32:25 -070018#endif
19#ifdef TPM_ALG_SHA384
20 {TPM_ALG_SHA384, SHA384_DIGEST_SIZE, SHA384_BLOCK_SIZE,
Vadim Bendebury34f0a9a2015-05-29 12:24:59 -070021 SHA384_DER_SIZE, {SHA384_DER}},
Vadim Bendebury56797522015-05-20 10:32:25 -070022#endif
23#ifdef TPM_ALG_SM3_256
24 {TPM_ALG_SM3_256, SM3_256_DIGEST_SIZE, SM3_256_BLOCK_SIZE,
Vadim Bendebury34f0a9a2015-05-29 12:24:59 -070025 SM3_256_DER_SIZE, {SM3_256_DER}},
Vadim Bendebury56797522015-05-20 10:32:25 -070026#endif
27#ifdef TPM_ALG_SHA512
28 {TPM_ALG_SHA512, SHA512_DIGEST_SIZE, SHA512_BLOCK_SIZE,
Vadim Bendebury34f0a9a2015-05-29 12:24:59 -070029 SHA512_DER_SIZE, {SHA512_DER}},
Vadim Bendebury56797522015-05-20 10:32:25 -070030#endif
31 {TPM_ALG_NULL,0,0,0,{0}}
32 };