diff options
author | Antonio de Angelis <Antonio.deAngelis@arm.com> | 2021-10-07 15:04:12 +0100 |
---|---|---|
committer | Antonio de Angelis <Antonio.deAngelis@arm.com> | 2022-01-18 10:31:47 +0000 |
commit | c26af639ed463b02d44180dab863176a3119ed8a (patch) | |
tree | 8fc2c4825723634248bcf4b1d39318443937767e /interface/include | |
parent | 1a39992036497edbf862a3fc83ac0280c2a1160c (diff) | |
download | trusted-firmware-m-c26af639ed463b02d44180dab863176a3119ed8a.tar.gz |
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
Diffstat (limited to 'interface/include')
-rw-r--r-- | interface/include/tfm_crypto_defs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/interface/include/tfm_crypto_defs.h b/interface/include/tfm_crypto_defs.h index 47d972475f..2eaa28b3f3 100644 --- a/interface/include/tfm_crypto_defs.h +++ b/interface/include/tfm_crypto_defs.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, Arm Limited. All rights reserved. + * Copyright (c) 2018-2022, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * @@ -44,6 +44,8 @@ struct tfm_crypto_pack_iovec { * multipart operation */ size_t capacity; /*!< Key derivation capacity */ + size_t ad_length; /*!< Additional Data length for multipart AEAD */ + size_t plaintext_length; /*!< Plaintext length for multipart AEAD */ struct tfm_crypto_aead_pack_input aead_in; /*!< FixMe: Temporarily used for * AEAD until the API is @@ -53,7 +55,9 @@ struct tfm_crypto_pack_iovec { /** * \brief Define a progressive numerical value for each SID which can be used - * when dispatching the requests to the service + * when dispatching the requests to the service. Note: This has to + * match exactly with the list of APIs defined in tfm_crypto_api.h by + * the LIST_TFM_CRYPTO_UNIFORM_SIGNATURE_API X macro. */ enum { TFM_CRYPTO_GET_KEY_ATTRIBUTES_SID = (0u), |