aboutsummaryrefslogtreecommitdiffstats
path: root/docs/auth-framework.rst
diff options
context:
space:
mode:
authorQixiang Xu <qixiang.xu@arm.com>2017-08-24 15:26:39 +0800
committerQixiang Xu <qixiang.xu@arm.com>2017-09-22 17:42:40 +0800
commitdcbf3932fd58537695dfcd8ccacb1a76fd193b48 (patch)
tree3b41add181bdf950d41df02bf74f2133d6bd46ce /docs/auth-framework.rst
parent9db9c65a112e6e3a0bb9588b8e30a22265cbfbaf (diff)
downloadplatform_external_arm-trusted-firmware-dcbf3932fd58537695dfcd8ccacb1a76fd193b48.tar.gz
platform_external_arm-trusted-firmware-dcbf3932fd58537695dfcd8ccacb1a76fd193b48.tar.bz2
platform_external_arm-trusted-firmware-dcbf3932fd58537695dfcd8ccacb1a76fd193b48.zip
Dynamic selection of ECDSA or RSA
Add new option rsa+ecdsa for TF_MBEDTLS_KEY_ALG, which selects rsa or ecdsa depending on the certificate used. Change-Id: I08d9e99bdbba361ed2ec5624248dc382c750ad47 Signed-off-by: Qixiang Xu <qixiang.xu@arm.com>
Diffstat (limited to 'docs/auth-framework.rst')
-rw-r--r--docs/auth-framework.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/auth-framework.rst b/docs/auth-framework.rst
index 765d9f89b..3a054c7fb 100644
--- a/docs/auth-framework.rst
+++ b/docs/auth-framework.rst
@@ -921,9 +921,12 @@ three functions:
int verify_hash(void *data_ptr, unsigned int data_len,
void *digest_info_ptr, unsigned int digest_info_len);
-The key algorithm (rsa, ecdsa) must be specified in the build system using the
-``TF_MBEDTLS_KEY_ALG`` variable, so the Makefile can include the corresponding
-sources in the build.
+The mbedTLS library algorithm support is configured by the
+``TF_MBEDTLS_KEY_ALG`` variable which can take in 3 values: `rsa`, `ecdsa` or
+`rsa+ecdsa`. This variable allows the Makefile to include the corresponding
+sources in the build for the various algorthms. Setting the variable to
+`rsa+ecdsa` enables support for both rsa and ecdsa algorithms in the mbedTLS
+library.
Note: If code size is a concern, the build option ``MBEDTLS_SHA256_SMALLER`` can
be defined in the platform Makefile. It will make mbed TLS use an implementation
@@ -931,7 +934,7 @@ of SHA-256 with smaller memory footprint (~1.5 KB less) but slower (~30%).
--------------
-*Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.*
+*Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.*
.. _Trusted Board Boot: ./trusted-board-boot.rst
.. _Platform Porting Guide: ./porting-guide.rst