TBB: remove PolarSSL SHA1 functions from the binary

Commit ea4ec3aad5 ("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
This commit is contained in:
Juan Castillo 2015-03-10 12:17:21 +00:00
parent ea4ec3aad5
commit 81ee098327
2 changed files with 0 additions and 2 deletions

View File

@ -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 \

View File

@ -65,7 +65,6 @@
#define POLARSSL_PLATFORM_C
#define POLARSSL_RSA_C
#define POLARSSL_SHA1_C
#define POLARSSL_SHA256_C
#define POLARSSL_VERSION_C