blob: 1638c246e49b44b4e2fc7d03e803d6e124a358f2 [file] [log] [blame]
Paul Bakker8123e9d2011-01-06 15:37:30 +00001/**
2 * \file cipher_wrap.h
3 *
4 * \brief Cipher wrappers.
5 *
6 * \author Adriaan de Jong <dejong@fox-it.com>
7 *
8 * Copyright (C) 2006-2010, Brainspark B.V.
9 *
10 * This file is part of PolarSSL (http://www.polarssl.org)
11 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
12 *
13 * All rights reserved.
14 *
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.
19 *
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.
24 *
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.
28 */
29
Paul Bakker314052f2011-08-15 09:07:52 +000030#include "config.h"
31#include "cipher.h"
Paul Bakker8123e9d2011-01-06 15:37:30 +000032
33#ifndef POLARSSL_CIPHER_WRAP_H
34#define POLARSSL_CIPHER_WRAP_H
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40#if defined(POLARSSL_AES_C)
41
42extern const cipher_info_t aes_128_cbc_info;
43extern const cipher_info_t aes_192_cbc_info;
44extern const cipher_info_t aes_256_cbc_info;
45
Paul Bakker343a8702011-06-09 14:27:58 +000046#if defined(POLARSSL_CIPHER_MODE_CFB)
47extern const cipher_info_t aes_128_cfb128_info;
48extern const cipher_info_t aes_192_cfb128_info;
49extern const cipher_info_t aes_256_cfb128_info;
50#endif /* POLARSSL_CIPHER_MODE_CFB */
51
52#if defined(POLARSSL_CIPHER_MODE_CTR)
53extern const cipher_info_t aes_128_ctr_info;
54extern const cipher_info_t aes_192_ctr_info;
55extern const cipher_info_t aes_256_ctr_info;
56#endif /* POLARSSL_CIPHER_MODE_CTR */
57
Paul Bakker8123e9d2011-01-06 15:37:30 +000058#endif /* defined(POLARSSL_AES_C) */
59
60#if defined(POLARSSL_CAMELLIA_C)
61
62extern const cipher_info_t camellia_128_cbc_info;
63extern const cipher_info_t camellia_192_cbc_info;
64extern const cipher_info_t camellia_256_cbc_info;
65
Paul Bakker343a8702011-06-09 14:27:58 +000066#if defined(POLARSSL_CIPHER_MODE_CFB)
67extern const cipher_info_t camellia_128_cfb128_info;
68extern const cipher_info_t camellia_192_cfb128_info;
69extern const cipher_info_t camellia_256_cfb128_info;
70#endif /* POLARSSL_CIPHER_MODE_CFB */
71
72#if defined(POLARSSL_CIPHER_MODE_CTR)
73extern const cipher_info_t camellia_128_ctr_info;
74extern const cipher_info_t camellia_192_ctr_info;
75extern const cipher_info_t camellia_256_ctr_info;
76#endif /* POLARSSL_CIPHER_MODE_CTR */
77
Paul Bakker8123e9d2011-01-06 15:37:30 +000078#endif /* defined(POLARSSL_CAMELLIA_C) */
79
80#if defined(POLARSSL_DES_C)
81
82extern const cipher_info_t des_cbc_info;
83extern const cipher_info_t des_ede_cbc_info;
84extern const cipher_info_t des_ede3_cbc_info;
85
86#endif /* defined(POLARSSL_DES_C) */
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif /* POLARSSL_CIPHER_WRAP_H */