mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 23:35:10 +00:00

This patch adds a crypto driver which utilizes the ARM® TrustZone® CryptoCell-712 to verify signature and hash during Trusted Board Boot. Along with this driver, the CryptoCell SBROM library is required to successfully build the BL image. The path to this library is specified via the `CCSBROM_LIB_PATH` variable. Please note that, mbedTLS is still required to do the X509 certificate ASN.1 parsing and CryptoCell is only utilized for signature and hash verification. Change-Id: If82dfbae0d7772ba1c64839f0b27850c103fe253 Signed-off-by: Soby Mathew <soby.mathew@arm.com>
28 lines
No EOL
782 B
Makefile
28 lines
No EOL
782 B
Makefile
#
|
|
# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
include drivers/auth/mbedtls/mbedtls_common.mk
|
|
|
|
# The algorithm is RSA when using Cryptocell crypto driver
|
|
TF_MBEDTLS_KEY_ALG_ID := TF_MBEDTLS_RSA
|
|
|
|
# Needs to be set to drive mbed TLS configuration correctly
|
|
$(eval $(call add_define,TF_MBEDTLS_KEY_ALG_ID))
|
|
|
|
# CCSBROM_LIB_PATH must be set to the Cryptocell SBROM library path
|
|
ifeq (${CCSBROM_LIB_PATH},)
|
|
$(error Error: CCSBROM_LIB_PATH not set)
|
|
endif
|
|
|
|
TF_LDFLAGS += -L$(CCSBROM_LIB_PATH)
|
|
LDLIBS += -lcc_712sbromx509
|
|
|
|
INCLUDES += -Iinclude/drivers/arm/cryptocell
|
|
|
|
CRYPTOCELL_SOURCES := drivers/auth/cryptocell/cryptocell_crypto.c
|
|
|
|
BL1_SOURCES += ${CRYPTOCELL_SOURCES}
|
|
BL2_SOURCES += ${CRYPTOCELL_SOURCES}
|