mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
3992b83a52
commit
ca94dc8673
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue