From 81ee098327902e9054bce3609c2d8d3dd29db173 Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Tue, 10 Mar 2015 12:17:21 +0000 Subject: [PATCH] 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 --- common/auth/polarssl/polarssl.mk | 1 - common/auth/polarssl/polarssl_config.h | 1 - 2 files changed, 2 deletions(-) diff --git a/common/auth/polarssl/polarssl.mk b/common/auth/polarssl/polarssl.mk index f7d92ea8d..69c741f7c 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 531e08453..b419bf9b7 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