Crypto: Add frontend support for multipart AEAD APIs
This patch adds support in the TF-M Crypto service
frontend for AEAD multipart APIs.
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I81b55bc6ae1b0e1c1c015c90577518328a3286fa
diff --git a/secure_fw/partitions/crypto/crypto_alloc.c b/secure_fw/partitions/crypto/crypto_alloc.c
index 1036a67..be8e83c 100644
--- a/secure_fw/partitions/crypto/crypto_alloc.c
+++ b/secure_fw/partitions/crypto/crypto_alloc.c
@@ -36,6 +36,7 @@
psa_mac_operation_t mac; /*!< MAC operation context */
psa_hash_operation_t hash; /*!< Hash operation context */
psa_key_derivation_operation_t key_deriv; /*!< Key derivation operation context */
+ psa_aead_operation_t aead; /*!< AEAD operation context */
} operation;
};
@@ -68,6 +69,9 @@
case TFM_CRYPTO_KEY_DERIVATION_OPERATION:
mem_size = sizeof(psa_key_derivation_operation_t);
break;
+ case TFM_CRYPTO_AEAD_OPERATION:
+ mem_size = sizeof(psa_aead_operation_t);
+ break;
case TFM_CRYPTO_OPERATION_NONE:
default:
mem_size = 0;