diff options
author | Qixiang Xu <qixiang.xu@arm.com> | 2017-11-09 13:56:29 +0800 |
---|---|---|
committer | Qixiang Xu <qixiang.xu@arm.com> | 2017-11-21 14:16:18 +0800 |
commit | 9a3088a5f509084e60d9c55bf53985c5ec4ca821 (patch) | |
tree | b3e7af650e56d8ab6df9a04c0253000dc20b7160 /drivers/auth/tbbr/tbbr_cot.c | |
parent | 2972247cb4ae84ed660532cac426259a4f17c816 (diff) | |
download | trusted-firmware-a-9a3088a5f509084e60d9c55bf53985c5ec4ca821.tar.gz |
tbbr: Add build flag HASH_ALG to let the user to select the SHA
The flag support the following values:
- sha256 (default)
- sha384
- sha512
Change-Id: I7a49d858c361e993949cf6ada0a86575c3291066
Signed-off-by: Qixiang Xu <qixiang.xu@arm.com>
Diffstat (limited to 'drivers/auth/tbbr/tbbr_cot.c')
-rw-r--r-- | drivers/auth/tbbr/tbbr_cot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/auth/tbbr/tbbr_cot.c b/drivers/auth/tbbr/tbbr_cot.c index 4aaab390fb..01d6fb5a39 100644 --- a/drivers/auth/tbbr/tbbr_cot.c +++ b/drivers/auth/tbbr/tbbr_cot.c @@ -19,7 +19,7 @@ * Maximum key and hash sizes (in DER format) */ #define PK_DER_LEN 294 -#define HASH_DER_LEN 51 +#define HASH_DER_LEN 83 /* * The platform must allocate buffers to store the authentication parameters |