diff options
author | Gilad Ben-Yossef <gilad.benyossef@arm.com> | 2019-09-15 13:29:29 +0300 |
---|---|---|
committer | Gilad Ben-Yossef <gilad.benyossef@arm.com> | 2019-12-11 14:18:18 +0200 |
commit | b8622922c8ab7a450a3184b7a5f4929bd95ffaad (patch) | |
tree | 3c6c64d8daf2dbf52effd419bac7c52b034f5f02 /drivers | |
parent | 87b582ef5b31c5893a470b61c217931fc7602da3 (diff) | |
download | trusted-firmware-a-b8622922c8ab7a450a3184b7a5f4929bd95ffaad.tar.gz |
cryptocell: add cryptocell 712 RSA 3K support
Add the support needed to enable using CryptoCell integration with
with RSA 3K support.
Signed-off-by: Gilad Ben-Yossef <gilad.benyossef@arm.com>
Change-Id: I95527cb0c41ae012109e8968dd20a4ae9fe67f17
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/auth/cryptocell/712/cryptocell_crypto.c | 2 | ||||
-rw-r--r-- | drivers/auth/cryptocell/cryptocell_crypto.mk | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/auth/cryptocell/712/cryptocell_crypto.c b/drivers/auth/cryptocell/712/cryptocell_crypto.c index 395c550859..25eb6bcb6d 100644 --- a/drivers/auth/cryptocell/712/cryptocell_crypto.c +++ b/drivers/auth/cryptocell/712/cryptocell_crypto.c @@ -225,7 +225,7 @@ static int verify_signature(void *data_ptr, unsigned int data_len, /* Verify the signature */ error = CCSbVerifySignature((uintptr_t)PLAT_CRYPTOCELL_BASE, (uint32_t *)data_ptr, &pk, &signature, - data_len, RSA_PSS_2048); + data_len, RSA_PSS); if (error != CC_OK) return CRYPTO_ERR_SIGNATURE; diff --git a/drivers/auth/cryptocell/cryptocell_crypto.mk b/drivers/auth/cryptocell/cryptocell_crypto.mk index d42a2e7e12..2fc4ddb11b 100644 --- a/drivers/auth/cryptocell/cryptocell_crypto.mk +++ b/drivers/auth/cryptocell/cryptocell_crypto.mk @@ -1,5 +1,5 @@ # -# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. +# Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -12,6 +12,8 @@ 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)) +$(eval $(call add_define,KEY_SIZE)) + # CCSBROM_LIB_PATH must be set to the Cryptocell SBROM library path ifeq (${CCSBROM_LIB_PATH},) $(error Error: CCSBROM_LIB_PATH not set) |