tools: add an option -hash-alg for cert_create
authorQixiang Xu <qixiang.xu@arm.com>
Thu, 9 Nov 2017 05:51:58 +0000 (13:51 +0800)
committerQixiang Xu <qixiang.xu@arm.com>
Tue, 21 Nov 2017 06:16:18 +0000 (14:16 +0800)
commit2972247cb4ae84ed660532cac426259a4f17c816
treea9dd4a6b777caf1946bbdbde44100d3545719a24
parent203444c50066cad7aaddd3e36b0f9225bf95a865
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>
tools/cert_create/include/cert.h
tools/cert_create/include/key.h
tools/cert_create/include/sha.h
tools/cert_create/src/cert.c
tools/cert_create/src/main.c
tools/cert_create/src/sha.c