Crypto: Align to Mbed Crypto 3.0.1
This patch upgrades the Crypto service to be able
to use Mbed Crypto 3.0.1:
- Updates the PSA crypto headers to latest available in mbed-crypto
- Updates the service implementation
- Updates the test suites where needed
- Updates the SST and Attestation interfaces
towards cryptographic functionalities
- Updates documentation to reflect updated
requirements, and changes in the integration guide
This patch migrates the use of psa_asymmetric_sign() and
psa_asymmetric_verify() to the non-deprecated versions of
the API psa_sign_hash() and psa_verify_hash().
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I7d8275def2336c1b5cfb8847b2842c305cfab116
diff --git a/secure_fw/services/crypto/crypto_alloc.c b/secure_fw/services/crypto/crypto_alloc.c
index df322ab..be68be0 100644
--- a/secure_fw/services/crypto/crypto_alloc.c
+++ b/secure_fw/services/crypto/crypto_alloc.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -35,7 +35,7 @@
psa_cipher_operation_t cipher; /*!< Cipher operation context */
psa_mac_operation_t mac; /*!< MAC operation context */
psa_hash_operation_t hash; /*!< Hash operation context */
- psa_crypto_generator_t generator; /*!< Generator operation context */
+ psa_key_derivation_operation_t key_deriv; /*!< Key derivation operation context */
} operation;
};
@@ -65,8 +65,8 @@
case TFM_CRYPTO_HASH_OPERATION:
mem_size = sizeof(psa_hash_operation_t);
break;
- case TFM_CRYPTO_GENERATOR_OPERATION:
- mem_size = sizeof(psa_crypto_generator_t);
+ case TFM_CRYPTO_KEY_DERIVATION_OPERATION:
+ mem_size = sizeof(psa_key_derivation_operation_t);
break;
case TFM_CRYPTO_OPERATION_NONE:
default: