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 
9 #pragma once
10 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #include <stdint.h>
27 
28 #include "psa/algorithm.h"
29 #include "psa/error.h"
30 #include "psa/key/attributes.h"
31 
36 typedef enum {
37  PSA_CRYPTO_DRIVER_DECRYPT,
38  PSA_CRYPTO_DRIVER_ENCRYPT
40 
73 
77 typedef uint16_t psa_key_derivation_step_t;
78 
79 /* These are all temporarily defined as some numeric type to prevent errors at compile time.*/
111 
142 
174 
206 
207 #ifdef __cplusplus
208 }
209 #endif
210 
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:77
psa_encrypt_or_decrypt_t
For encrypt-decrypt functions, whether the operation is an encryption or a decryption.
Definition: crypto_types.h:36
Error definitions for the PSA Crypto API.
Structure storing an AEAD operation context.
Definition: crypto_struct.h:36
Structure storing a cipher operation context.
Definition: crypto_struct.h:63
Structure containing a hash context and algorithm.
Structure storing a key derivation context.
Structure storing a MAC operation context.