crypto_types.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef PSA_CRYPTO_PSA_CRYPTO_TYPES_H
21 #define PSA_CRYPTO_PSA_CRYPTO_TYPES_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <stdint.h>
28 
29 #include "psa/algorithm.h"
30 #include "psa/error.h"
31 #include "psa/key/attributes.h"
32 
37 typedef enum {
38  PSA_CRYPTO_DRIVER_DECRYPT,
39  PSA_CRYPTO_DRIVER_ENCRYPT
41 
74 
78 typedef uint16_t psa_key_derivation_step_t;
79 
80 /* These are all temporarily defined as some numeric type to prevent errors at compile time.*/
112 
143 
175 
207 
208 #ifdef __cplusplus
209 }
210 #endif
211 
212 #endif /* PSA_CRYPTO_PSA_CRYPTO_TYPES_H */
Algorithm definitions for the PSA Crypto API.
Key attributes definitions for the PSA Crypto API.
uint16_t psa_key_derivation_step_t
Encoding of the step of a key derivation.
Definition: crypto_types.h:78
psa_encrypt_or_decrypt_t
For encrypt-decrypt functions, whether the operation is an encryption or a decryption.
Definition: crypto_types.h:37
Error definitions for the PSA Crypto API.
Structure storing an AEAD operation context.
Definition: crypto_struct.h:37
Structure storing a cipher operation context.
Definition: crypto_struct.h:64
Structure containing a hash context and algorithm.
Structure storing a key derivation context.
Structure storing a MAC operation context.