TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
crypto_types.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  */
23 #ifndef PSA_CRYPTO_TYPES_H
24 #define PSA_CRYPTO_TYPES_H
25 
26 #include <stdint.h>
27 
38 /* If #PSA_SUCCESS is already defined, it means that #psa_status_t
39  * is also defined in an external header, so prevent its multiple
40  * definition.
41  */
42 #ifndef PSA_SUCCESS
43 typedef int32_t psa_status_t;
44 #endif
45 
52 /* Integral type representing a key handle. */
53 typedef uint16_t psa_key_handle_t;
54 
55 
58 typedef uint16_t psa_key_type_t;
59 
69 typedef uint8_t psa_ecc_family_t;
70 
80 typedef uint8_t psa_dh_family_t;
81 
90 typedef uint32_t psa_algorithm_t;
91 
133 typedef uint32_t psa_key_lifetime_t;
134 
178 typedef uint8_t psa_key_persistence_t;
179 
212 typedef uint32_t psa_key_location_t;
213 
223 typedef uint32_t psa_key_id_t;
224 #define PSA_KEY_ID_INIT 0
225 
233 typedef uint32_t psa_key_usage_t;
234 
348 
356 typedef uint16_t psa_key_derivation_step_t;
357 
360 #endif /* PSA_CRYPTO_TYPES_H */
uint8_t psa_key_persistence_t
Definition: crypto_types.h:178
uint16_t psa_key_derivation_step_t
Encoding of the step of a key derivation.
Definition: crypto_types.h:356
uint32_t psa_key_id_t
Definition: crypto_types.h:223
uint8_t psa_dh_family_t
Definition: crypto_types.h:80
uint32_t psa_key_location_t
Definition: crypto_types.h:212
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
Definition: crypto_types.h:90
uint32_t psa_key_usage_t
Encoding of permitted usage on a key.
Definition: crypto_types.h:233
uint16_t psa_key_type_t
Encoding of a key type.
Definition: crypto_types.h:58
uint16_t psa_key_handle_t
Definition: crypto_types.h:53
uint32_t psa_key_lifetime_t
Definition: crypto_types.h:133
uint8_t psa_ecc_family_t
Definition: crypto_types.h:69
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43