TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
crypto_key.c File Reference
#include <stddef.h>
#include <stdint.h>
#include "tfm_mbedcrypto_include.h"
#include "tfm_crypto_api.h"
#include "tfm_crypto_defs.h"
#include "tfm_crypto_private.h"
#include <stdbool.h>
Include dependency graph for crypto_key.c:

Go to the source code of this file.

Data Structures

struct  tfm_crypto_handle_owner_s
 

Macros

#define TFM_CRYPTO_MAX_KEY_HANDLES   (16)
 

Functions

psa_status_t tfm_crypto_key_attributes_from_client (const struct psa_client_key_attributes_s *client_key_attr, int32_t client_id, psa_key_attributes_t *key_attributes)
 Gets key attributes from client key attributes. More...
 
psa_status_t tfm_crypto_key_attributes_to_client (const psa_key_attributes_t *key_attributes, struct psa_client_key_attributes_s *client_key_attr)
 Converts key attributes to client key attributes. More...
 
psa_status_t tfm_crypto_check_handle_owner (psa_key_handle_t handle, uint32_t *index)
 Checks that the requested handle belongs to the requesting partition. More...
 
psa_status_t tfm_crypto_check_key_storage (uint32_t *index)
 Checks that there is enough local storage in RAM to keep another key, and returns the index of the storage to use. More...
 
psa_status_t tfm_crypto_set_key_storage (uint32_t index, psa_key_handle_t key_handle)
 Sets the index of the local storage in use with a key requested by the calling partition, and stores the corresponding key_handle. More...
 
psa_status_t tfm_crypto_set_key_domain_parameters (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_get_key_domain_parameters (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_import_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_open_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_close_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_destroy_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_get_key_attributes (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_reset_key_attributes (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_export_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_export_public_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_copy_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 
psa_status_t tfm_crypto_generate_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
 

Macro Definition Documentation

#define TFM_CRYPTO_MAX_KEY_HANDLES   (16)

Definition at line 19 of file crypto_key.c.