TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
crypto_alloc.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_memory_utils.h"
Include dependency graph for crypto_alloc.c:

Go to the source code of this file.

Data Structures

struct  tfm_crypto_operation_s
 

Macros

#define TFM_CRYPTO_CONC_OPER_NUM   (8)
 This is the default value for the maximum number of concurrent operations that can be active (allocated) at any time, supported by the implementation. More...
 

Functions

psa_status_t tfm_crypto_init_alloc (void)
 Initialise the Alloc module. More...
 
psa_status_t tfm_crypto_operation_alloc (enum tfm_crypto_operation_type type, uint32_t *handle, void **ctx)
 Allocate an operation context in the backend. More...
 
psa_status_t tfm_crypto_operation_release (uint32_t *handle)
 Release an operation context in the backend. More...
 
psa_status_t tfm_crypto_operation_lookup (enum tfm_crypto_operation_type type, uint32_t handle, void **ctx)
 Look up an operation context in the backend for the corresponding frontend operation. More...
 

Macro Definition Documentation

#define TFM_CRYPTO_CONC_OPER_NUM   (8)

This is the default value for the maximum number of concurrent operations that can be active (allocated) at any time, supported by the implementation.

Definition at line 25 of file crypto_alloc.c.