aead_algorithms.h
Go to the documentation of this file.
1 /**
2  * @file cipher_algorithms.h
3  * @brief Collection of AEAD algorithms
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneCRYPTO Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 2.4.4
29  **/
30 
31 #ifndef _AEAD_ALGORITHMS_H
32 #define _AEAD_ALGORITHMS_H
33 
34 //Dependencies
35 #include "core/crypto.h"
36 
37 //GCM mode support?
38 #if (GCM_SUPPORT == ENABLED)
39  #include "aead/gcm.h"
40 #endif
41 
42 //CCM mode support?
43 #if (CCM_SUPPORT == ENABLED)
44  #include "aead/ccm.h"
45 #endif
46 
47 //SIV mode support?
48 #if (SIV_SUPPORT == ENABLED)
49  #include "aead/siv.h"
50 #endif
51 
52 //ChaCha20Poly1305 support?
53 #if (CHACHA20_POLY1305_SUPPORT == ENABLED)
54  #include "aead/chacha20_poly1305.h"
55 #endif
56 
57 //C++ guard
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 
62 
63 /**
64  * @brief AEAD algorithms
65  **/
66 
67 typedef enum
68 {
69  AEAD_AES_128_GCM = 1, ///<RFC 5116
70  AEAD_AES_256_GCM = 2, ///<RFC 5116
71  AEAD_AES_128_CCM = 3, ///<RFC 5116
72  AEAD_AES_256_CCM = 4, ///<RFC 5116
73  AEAD_AES_128_GCM_8 = 5, ///<RFC 5282
74  AEAD_AES_256_GCM_8 = 6, ///<RFC 5282
75  AEAD_AES_128_GCM_12 = 7, ///<RFC 5282
76  AEAD_AES_256_GCM_12 = 8, ///<RFC 5282
77  AEAD_AES_128_CCM_SHORT = 9, ///<RFC 5282
78  AEAD_AES_256_CCM_SHORT = 10, ///<RFC 5282
79  AEAD_AES_128_CCM_SHORT_8 = 11, ///<RFC 5282
80  AEAD_AES_256_CCM_SHORT_8 = 12, ///<RFC 5282
81  AEAD_AES_128_CCM_SHORT_12 = 13, ///<RFC 5282
82  AEAD_AES_256_CCM_SHORT_12 = 14, ///<RFC 5282
83  AEAD_AES_SIV_CMAC_256 = 15, ///<RFC 5297
84  AEAD_AES_SIV_CMAC_384 = 16, ///<RFC 5297
85  AEAD_AES_SIV_CMAC_512 = 17, ///<RFC 5297
86  AEAD_AES_128_CCM_8 = 18, ///<RFC 6655
87  AEAD_AES_256_CCM_8 = 19, ///<RFC 6655
88  AEAD_AES_128_OCB_TAGLEN128 = 20, ///<RFC 7253
89  AEAD_AES_128_OCB_TAGLEN96 = 21, ///<RFC 7253
90  AEAD_AES_128_OCB_TAGLEN64 = 22, ///<RFC 7253
91  AEAD_AES_192_OCB_TAGLEN128 = 23, ///<RFC 7253
92  AEAD_AES_192_OCB_TAGLEN96 = 24, ///<RFC 7253
93  AEAD_AES_192_OCB_TAGLEN64 = 25, ///<RFC 7253
94  AEAD_AES_256_OCB_TAGLEN128 = 26, ///<RFC 7253
95  AEAD_AES_256_OCB_TAGLEN96 = 27, ///<RFC 7253
96  AEAD_AES_256_OCB_TAGLEN64 = 28, ///<RFC 7253
97  AEAD_CHACHA20_POLY1305 = 29, ///<RFC 8439
98  AEAD_AES_128_GCM_SIV = 30, ///<RFC 8452
99  AEAD_AES_256_GCM_SIV = 31, ///<RFC 8452
100  AEAD_AEGIS128L = 32, ///<Draft
101  AEAD_AEGIS256 = 33 ///<Draft
103 
104 
105 //C++ guard
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif
@ AEAD_AES_128_GCM_12
RFC 5282.
@ AEAD_AES_128_GCM
RFC 5116.
@ AEAD_AES_128_CCM_8
RFC 6655.
@ AEAD_AES_128_OCB_TAGLEN128
RFC 7253.
@ AEAD_AES_SIV_CMAC_256
RFC 5297.
AeadAlgo
AEAD algorithms.
@ AEAD_AES_256_GCM_8
RFC 5282.
@ AEAD_AES_256_GCM_12
RFC 5282.
@ AEAD_AES_256_CCM_8
RFC 6655.
@ AEAD_AES_128_OCB_TAGLEN96
RFC 7253.
@ AEAD_AES_256_CCM
RFC 5116.
@ AEAD_AES_256_CCM_SHORT_8
RFC 5282.
@ AEAD_AES_256_OCB_TAGLEN96
RFC 7253.
@ AEAD_AES_128_GCM_SIV
RFC 8452.
General definitions for cryptographic algorithms.
@ AEAD_AES_SIV_CMAC_384
RFC 5297.
@ AEAD_AEGIS256
Draft.
@ AEAD_CHACHA20_POLY1305
RFC 8439.
@ AEAD_AES_256_CCM_SHORT
RFC 5282.
@ AEAD_AES_128_CCM_SHORT_8
RFC 5282.
@ AEAD_AES_128_CCM
RFC 5116.
ChaCha20Poly1305 AEAD.
@ AEAD_AES_256_GCM
RFC 5116.
Synthetic Initialization Vector (SIV)
@ AEAD_AES_256_OCB_TAGLEN64
RFC 7253.
@ AEAD_AES_256_OCB_TAGLEN128
RFC 7253.
Galois/Counter Mode (GCM)
@ AEAD_AES_192_OCB_TAGLEN96
RFC 7253.
@ AEAD_AES_128_CCM_SHORT_12
RFC 5282.
@ AEAD_AEGIS128L
Draft.
@ AEAD_AES_256_GCM_SIV
RFC 8452.
@ AEAD_AES_192_OCB_TAGLEN128
RFC 7253.
@ AEAD_AES_128_GCM_8
RFC 5282.
@ AEAD_AES_128_OCB_TAGLEN64
RFC 7253.
@ AEAD_AES_192_OCB_TAGLEN64
RFC 7253.
@ AEAD_AES_128_CCM_SHORT
RFC 5282.
@ AEAD_AES_SIV_CMAC_512
RFC 5297.
Cipher Block Chaining-Message Authentication Code (CCM)
@ AEAD_AES_256_CCM_SHORT_12
RFC 5282.