4
* \brief Cipher wrappers.
6
* \author Adriaan de Jong <dejong@fox-it.com>
8
* Copyright (C) 2006-2012, Brainspark B.V.
10
* This file is part of PolarSSL (http://www.polarssl.org)
11
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
13
* All rights reserved.
15
* This program is free software; you can redistribute it and/or modify
16
* it under the terms of the GNU General Public License as published by
17
* the Free Software Foundation; either version 2 of the License, or
18
* (at your option) any later version.
20
* This program is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
* GNU General Public License for more details.
25
* You should have received a copy of the GNU General Public License along
26
* with this program; if not, write to the Free Software Foundation, Inc.,
27
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29
#ifndef POLARSSL_CIPHER_WRAP_H
30
#define POLARSSL_CIPHER_WRAP_H
39
#if defined(POLARSSL_AES_C)
41
extern const cipher_info_t aes_128_cbc_info;
42
extern const cipher_info_t aes_192_cbc_info;
43
extern const cipher_info_t aes_256_cbc_info;
45
#if defined(POLARSSL_CIPHER_MODE_CFB)
46
extern const cipher_info_t aes_128_cfb128_info;
47
extern const cipher_info_t aes_192_cfb128_info;
48
extern const cipher_info_t aes_256_cfb128_info;
49
#endif /* POLARSSL_CIPHER_MODE_CFB */
51
#if defined(POLARSSL_CIPHER_MODE_CTR)
52
extern const cipher_info_t aes_128_ctr_info;
53
extern const cipher_info_t aes_192_ctr_info;
54
extern const cipher_info_t aes_256_ctr_info;
55
#endif /* POLARSSL_CIPHER_MODE_CTR */
57
#endif /* defined(POLARSSL_AES_C) */
59
#if defined(POLARSSL_CAMELLIA_C)
61
extern const cipher_info_t camellia_128_cbc_info;
62
extern const cipher_info_t camellia_192_cbc_info;
63
extern const cipher_info_t camellia_256_cbc_info;
65
#if defined(POLARSSL_CIPHER_MODE_CFB)
66
extern const cipher_info_t camellia_128_cfb128_info;
67
extern const cipher_info_t camellia_192_cfb128_info;
68
extern const cipher_info_t camellia_256_cfb128_info;
69
#endif /* POLARSSL_CIPHER_MODE_CFB */
71
#if defined(POLARSSL_CIPHER_MODE_CTR)
72
extern const cipher_info_t camellia_128_ctr_info;
73
extern const cipher_info_t camellia_192_ctr_info;
74
extern const cipher_info_t camellia_256_ctr_info;
75
#endif /* POLARSSL_CIPHER_MODE_CTR */
77
#endif /* defined(POLARSSL_CAMELLIA_C) */
79
#if defined(POLARSSL_DES_C)
81
extern const cipher_info_t des_cbc_info;
82
extern const cipher_info_t des_ede_cbc_info;
83
extern const cipher_info_t des_ede3_cbc_info;
85
#endif /* defined(POLARSSL_DES_C) */
87
#if defined(POLARSSL_BLOWFISH_C)
88
extern const cipher_info_t blowfish_cbc_info;
90
#if defined(POLARSSL_CIPHER_MODE_CFB)
91
extern const cipher_info_t blowfish_cfb64_info;
92
#endif /* POLARSSL_CIPHER_MODE_CFB */
94
#if defined(POLARSSL_CIPHER_MODE_CTR)
95
extern const cipher_info_t blowfish_ctr_info;
96
#endif /* POLARSSL_CIPHER_MODE_CTR */
97
#endif /* defined(POLARSSL_BLOWFISH_C) */
99
#if defined(POLARSSL_CIPHER_NULL_CIPHER)
100
extern const cipher_info_t null_cipher_info;
101
#endif /* defined(POLARSSL_CIPHER_NULL_CIPHER) */
107
#endif /* POLARSSL_CIPHER_WRAP_H */