TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_crypto_defs.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_CRYPTO_DEFS_H__
9 #define __TFM_CRYPTO_DEFS_H__
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include <stdint.h>
16 #include <limits.h>
17 #include "tfm_api.h"
18 #include "psa/crypto.h"
19 
26 #define TFM_CRYPTO_MAX_NONCE_LENGTH (16u)
29  uint32_t nonce_length;
30 };
31 
37  uint32_t sfn_id;
40  uint16_t step;
43  uint32_t op_handle;
46  size_t capacity;
52 };
53 
58 enum {
124 };
125 
130 #define TFM_CRYPTO_SID_INVALID (~0x0u)
131 
136 #define TFM_CRYPTO_INVALID_HANDLE (0x0u)
137 
142 #define TFM_CRYPTO_KEY_ID_HUK (0xFFFF815Bu)
143 
149 #define TFM_CRYPTO_ALG_HUK_DERIVATION ((psa_algorithm_t)0xB0000F00)
150 
155 enum {
158 };
159 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 #endif /* __TFM_CRYPTO_DEFS_H__ */
#define TFM_CRYPTO_MAX_NONCE_LENGTH
This type is used to overcome a limitation in the number of maximum IOVECs that can be used especiall...
psa_key_handle_t key_handle
Structure used to pack non-pointer types in a call.
Platform Security Architecture cryptography module.
psa_algorithm_t alg
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
Definition: crypto_types.h:90
struct tfm_crypto_aead_pack_input aead_in
_unsigned_integral_type_ psa_key_handle_t
Key handle.
Definition: crypto.h:35