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.
pull/9575/head
itayzafrir 2019-02-19 20:09:00 +02:00
parent 3992b83a52
commit ca94dc8673
2 changed files with 7 additions and 0 deletions

View File

@ -29,7 +29,12 @@
#include "crypto.h"
#include "crypto_platform_spe.h"
#include "mbed_assert.h"
#define MINOR_VER 1
#define CLIENT_PSA_KEY_ID_SIZE_IN_BYTES 4
MBED_STATIC_ASSERT(sizeof(psa_key_id_t) == CLIENT_PSA_KEY_ID_SIZE_IN_BYTES, "Unexpected psa_key_id_t size");
psa_status_t psa_crypto_init(void)
{

View File

@ -65,6 +65,8 @@ extern "C" {
#define psa_close_key psa_sec_close_key
#define psa_hash_clone psa_sec_hash_clone
#define MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER 1
#include "crypto.h"
#ifdef __cplusplus