summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJuan Castillo <juan.castillo@arm.com>2015-03-10 12:17:21 +0000
committerJuan Castillo <juan.castillo@arm.com>2015-03-11 11:44:15 +0000
commit81ee098327902e9054bce3609c2d8d3dd29db173 (patch)
tree6b008be8ffbf8578477cf18deb7c95e5bf58648d /common
parentea4ec3aad5e15225e8fbdd638872bdceeb96a8dc (diff)
TBB: remove PolarSSL SHA1 functions from the binary
Commit ea4ec3aad5e1 ("TBB: use SHA256 to generate the certificate signatures") updated the cert_create tool to generate the signatures using SHA256 instead of SHA1. Therefore, SHA1 is no longer required. This patch removes the SHA1 option from the PolarSSL configuration file. The source file sha1.c is no longer needed and has been excluded from the build. The SHA1 functions are no longer included in the binary, reducing the memory footprint of BL1 and BL2 by approximately 6 KB. Change-Id: I72ea2cff03c0964c3eaadce148ec2ad2c6dde2e3
Diffstat (limited to 'common')
-rw-r--r--common/auth/polarssl/polarssl.mk1
-rw-r--r--common/auth/polarssl/polarssl_config.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/common/auth/polarssl/polarssl.mk b/common/auth/polarssl/polarssl.mk
index f7d92ea8..69c741f7 100644
--- a/common/auth/polarssl/polarssl.mk
+++ b/common/auth/polarssl/polarssl.mk
@@ -54,7 +54,6 @@ POLARSSL_SOURCES := $(addprefix ${POLARSSL_DIR}/library/, \
pkwrite.c \
platform.c \
rsa.c \
- sha1.c \
sha256.c \
x509.c \
x509_crt.c \
diff --git a/common/auth/polarssl/polarssl_config.h b/common/auth/polarssl/polarssl_config.h
index 531e0845..b419bf9b 100644
--- a/common/auth/polarssl/polarssl_config.h
+++ b/common/auth/polarssl/polarssl_config.h
@@ -65,7 +65,6 @@
#define POLARSSL_PLATFORM_C
#define POLARSSL_RSA_C
-#define POLARSSL_SHA1_C
#define POLARSSL_SHA256_C
#define POLARSSL_VERSION_C