diff options
author | Qixiang Xu <qixiang.xu@arm.com> | 2017-11-09 13:51:58 +0800 |
---|---|---|
committer | Qixiang Xu <qixiang.xu@arm.com> | 2017-11-21 14:16:18 +0800 |
commit | 2972247cb4ae84ed660532cac426259a4f17c816 (patch) | |
tree | a9dd4a6b777caf1946bbdbde44100d3545719a24 /tools/cert_create/include/key.h | |
parent | 203444c50066cad7aaddd3e36b0f9225bf95a865 (diff) | |
download | trusted-firmware-a-2972247cb4ae84ed660532cac426259a4f17c816.tar.gz |
tools: add an option -hash-alg for cert_create
This option enables the user to select the secure hash algorithm
to be used for generating the hash. It supports the following
options:
- sha256 (default)
- sha384
- sha512
Change-Id: Icb093cec1b5715e248c3d1c3749a2479a7ab4b89
Signed-off-by: Qixiang Xu <qixiang.xu@arm.com>
Diffstat (limited to 'tools/cert_create/include/key.h')
-rw-r--r-- | tools/cert_create/include/key.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/cert_create/include/key.h b/tools/cert_create/include/key.h index 304fa6154f..1a253cc713 100644 --- a/tools/cert_create/include/key.h +++ b/tools/cert_create/include/key.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -30,6 +30,13 @@ enum { KEY_ALG_MAX_NUM }; +/* Supported hash algorithms */ +enum{ + HASH_ALG_SHA256, + HASH_ALG_SHA384, + HASH_ALG_SHA512, +}; + /* * This structure contains the relevant information to create the keys * required to sign the certificates. |