TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
crypto_client_struct.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
21 #ifndef PSA_CRYPTO_CLIENT_STRUCT_H
22 #define PSA_CRYPTO_CLIENT_STRUCT_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* This is the client view of the `key_attributes` structure. Only
29  * fields which need to be set by the PSA crypto client are present.
30  * The PSA crypto service will maintain a different version of the
31  * data structure internally. */
33 {
34  uint32_t lifetime;
35  uint32_t id;
36  uint32_t alg;
37  uint32_t usage;
38  size_t bits;
39  uint16_t type;
40 };
41 
42 #define PSA_CLIENT_KEY_ATTRIBUTES_INIT {0, 0, 0, 0, 0, 0}
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* PSA_CRYPTO_CLIENT_STRUCT_H */