CsCrypto  1.0.1
config.h
1 /***********************************************************************
2 *
3 * Copyright (c) 2021-2024 Tim van Deurzen
4 * Copyright (c) 2021-2024 Barbara Geller
5 * Copyright (c) 2021-2024 Ansel Sermersheim
6 *
7 * This file is part of CsCrypto.
8 *
9 * CsCrypto is free software, released under the BSD 2-Clause license.
10 * For license details refer to LICENSE provided with this project.
11 *
12 * CsCrypto 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.
15 *
16 * https://opensource.org/licenses/BSD-2-Clause
17 *
18 ***********************************************************************/
19 
20 #ifndef CS_CRYPTO_DRIVERS_BOTAN_CONFIG_H
21 #define CS_CRYPTO_DRIVERS_BOTAN_CONFIG_H
22 
23 #if CSCRYPTO_HAVE_BOTAN
24 
25 #include <drivers/base/drivers.h>
26 #include <drivers/base/traits.h>
27 #include <drivers/backend/botan/hash.h>
28 #include <drivers/backend/botan/aes.h>
29 
30 namespace cs_crypto::drivers::traits {
31 
32 template <>
33 struct driver_for<implementation::botan> {
34  using hash = cs_crypto::drivers::botan::hash;
35  using symmetric_encryption = cs_crypto::drivers::botan::cipher_mode;
36 };
37 
38 } // namespace cs_crypto::drivers::traits
39 
40 #endif
41 
42 #endif