Crypto: Fix types of psa_client_key_attributes_s
This patch fixes the types of fields in psa_client_key_attributes_s
to match the types as changed by the recent MbedTLS migration.
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Change-Id: I717f40671b3b5b838962eb155c24b29a63a0dda2
diff --git a/interface/include/psa/crypto_client_struct.h b/interface/include/psa/crypto_client_struct.h
index 732441a..959f573 100644
--- a/interface/include/psa/crypto_client_struct.h
+++ b/interface/include/psa/crypto_client_struct.h
@@ -31,12 +31,12 @@
* data structure internally. */
struct psa_client_key_attributes_s
{
- uint32_t type;
uint32_t lifetime;
uint32_t id;
uint32_t alg;
uint32_t usage;
- uint16_t bits;
+ size_t bits;
+ uint16_t type;
};
#define PSA_CLIENT_KEY_ATTRIBUTES_INIT {0, 0, 0, 0, 0, 0}