Skip to content

Commit ca94dc8

Browse files
author
itayzafrir
committed
Define MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER
This enables crypto encoding an owner in key file IDs. Added a static assert check in client side proxy.
1 parent 3992b83 commit ca94dc8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
#include "crypto.h"
3030
#include "crypto_platform_spe.h"
3131

32+
#include "mbed_assert.h"
33+
3234
#define MINOR_VER 1
35+
#define CLIENT_PSA_KEY_ID_SIZE_IN_BYTES 4
36+
37+
MBED_STATIC_ASSERT(sizeof(psa_key_id_t) == CLIENT_PSA_KEY_ID_SIZE_IN_BYTES, "Unexpected psa_key_id_t size");
3338

3439
psa_status_t psa_crypto_init(void)
3540
{

components/TARGET_PSA/services/crypto/COMPONENT_SPE/crypto_spe.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ extern "C" {
6565
#define psa_close_key psa_sec_close_key
6666
#define psa_hash_clone psa_sec_hash_clone
6767

68+
#define MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER 1
69+
6870
#include "crypto.h"
6971

7072
#ifdef __cplusplus

0 commit comments

Comments
 (0)