aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQixiang Xu <qixiang.xu@arm.com>2017-09-22 16:21:41 +0800
committerQixiang Xu <qixiang.xu@arm.com>2017-10-09 13:30:31 +0800
commit1727de0e59930a60c2c03fd843ddc506d902db6a (patch)
tree6659ab34b7d8927fccdc66c997663d3679b7acea
parentd9066b4248dbe88198ba5b6f6ed800d9fd8492f5 (diff)
downloadtrusted-firmware-a-1727de0e59930a60c2c03fd843ddc506d902db6a.tar.gz
cert_tool: Fix ECDSA certificates create failure
Commit a8eb286adaa73e86305317b9cae15d41c57de8e7 introduced the following error when creating ECDSA certificates. ERROR: Error creating key 'Trusted World key' Makefile:634: recipe for target 'certificates' failed make: *** [certificates] Error 1 this patch adds the function to create PKCS#1 v1.5. Change-Id: Ief96d55969d5e9877aeb528c6bb503b560563537 Signed-off-by: Qixiang Xu <qixiang.xu@arm.com>
-rw-r--r--tools/cert_create/src/key.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/cert_create/src/key.c b/tools/cert_create/src/key.c
index c1bde5dea..e8257e94c 100644
--- a/tools/cert_create/src/key.c
+++ b/tools/cert_create/src/key.c
@@ -91,9 +91,10 @@ err:
typedef int (*key_create_fn_t)(key_t *key);
static const key_create_fn_t key_create_fn[KEY_ALG_MAX_NUM] = {
- key_create_rsa,
+ key_create_rsa, /* KEY_ALG_RSA */
+ key_create_rsa, /* KEY_ALG_RSA_1_5 */
#ifndef OPENSSL_NO_EC
- key_create_ecdsa,
+ key_create_ecdsa, /* KEY_ALG_ECDSA */
#endif /* OPENSSL_NO_EC */
};