AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
aes128.hpp
1/*
2 ANCH Framework: ANother C++ Hack is a C++ framework based on C++23 standard
3 Copyright (C) 2012 Vincent Lachenal
4
5 This file is part of ANCH Framework.
6
7 ANCH Framework is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 ANCH Framework is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with ANCH Framework. If not, see <https://www.gnu.org/licenses/>.
19*/
20#pragma once
21
22#include "crypto/cipher/aes.hpp"
23
24#include "crypto/cipher/ecb.hpp"
25#include "crypto/cipher/cbc.hpp"
26#include "crypto/cipher/pcbc.hpp"
27#include "crypto/cipher/cfb.hpp"
28#include "crypto/cipher/ofb.hpp"
29#include "crypto/cipher/ctr.hpp"
30
31#include "crypto/padding/ansiX923.hpp"
32#include "crypto/padding/iso7816_4Padding.hpp"
33#include "crypto/padding/pkcs5Padding.hpp"
34#include "crypto/padding/zeroPadding.hpp"
35
36namespace anch::crypto {
37
38 extern template class BlockCipher<16>;
39 extern template class AES<4,10>;
44
49 extern template class ECB<AES128,ZeroPadding>;
51 extern template class ECB<AES128,ANSIX923>;
53 extern template class ECB<AES128,ISO7816_4Padding>;
55 extern template class ECB<AES128,PKCS5Padding>;
56
58 extern template class CBC<AES128,ZeroPadding>;
60 extern template class CBC<AES128,ANSIX923>;
62 extern template class CBC<AES128,ISO7816_4Padding>;
64 extern template class CBC<AES128,PKCS5Padding>;
65
67 extern template class PCBC<AES128,ZeroPadding>;
69 extern template class PCBC<AES128,ANSIX923>;
71 extern template class PCBC<AES128,ISO7816_4Padding>;
73 extern template class PCBC<AES128,PKCS5Padding>;
74
76 extern template class CFB<AES128>;
77
79 extern template class OFB<AES128>;
80
82 extern template class CTR<AES128>;
83
84} // anch::crypto
AES block cipher algorithm implementation.
Definition aes.hpp:68
Block cipher interface.
Definition blockCipher.hpp:59
Block cipher mode of operation interface.
Definition bcModOp.hpp:54
Cipher-block chaining implementation.
Definition cbc.hpp:38
Cipher feedback implementation.
Definition cfb.hpp:38
Counter implementation.
Definition ctr.hpp:40
Electronic codebook implementation.
Definition ecb.hpp:39
Output feedback implementation.
Definition ofb.hpp:38
Propagating cipher-block chaining implementation.
Definition pcbc.hpp:41
Cryptography namespace.
Definition base64.hpp:30
AES< 4, 10 > AES128
Definition aes128.hpp:43