Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 0a0007d594db2fceed413cd73e7f08dd8d8ddd57 Mon Sep 17 00:00:00 2001 |
| 2 | From: Satish Kumar <satish.kumar01@arm.com> |
| 3 | Date: Sun, 13 Feb 2022 09:01:10 +0000 |
| 4 | Subject: [PATCH] Fix: Crypto interface structure aligned with tf-m change. |
| 5 | |
| 6 | NO NEED TO RAISE PR: The PR for this FIX is raied by Emek. |
| 7 | |
| 8 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 9 | Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com> |
| 10 | |
| 11 | |
| 12 | --- |
| 13 | components/service/crypto/backend/psa_ipc/crypto_ipc_backend.h | 3 ++- |
| 14 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/components/service/crypto/backend/psa_ipc/crypto_ipc_backend.h b/components/service/crypto/backend/psa_ipc/crypto_ipc_backend.h |
| 17 | index c13c20e8..ec25eaf8 100644 |
| 18 | --- a/components/service/crypto/backend/psa_ipc/crypto_ipc_backend.h |
| 19 | +++ b/components/service/crypto/backend/psa_ipc/crypto_ipc_backend.h |
| 20 | @@ -38,7 +38,8 @@ struct psa_ipc_crypto_pack_iovec { |
| 21 | * multipart operation |
| 22 | */ |
| 23 | uint32_t capacity; /*!< Key derivation capacity */ |
| 24 | - |
| 25 | + uint32_t ad_length; /*!< Additional Data length for multipart AEAD */ |
| 26 | + uint32_t plaintext_length; /*!< Plaintext length for multipart AEAD */ |
| 27 | struct psa_ipc_crypto_aead_pack_input aead_in; /*!< FixMe: Temporarily used for |
| 28 | * AEAD until the API is |
| 29 | * restructured |