blob: 63bd093fcbc4bb956bbb1173401a766bf864f999 [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 *
Paul Bakker68884e32013-01-07 18:20:04 +01008 * Copyright (C) 2006-2013, Brainspark B.V.
Paul Bakker8123e9d2011-01-06 15:37:30 +00009 *
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 */
Paul Bakkercce9d772011-11-18 14:26:47 +000029#ifndef POLARSSL_CIPHER_WRAP_H
30#define POLARSSL_CIPHER_WRAP_H
Paul Bakker8123e9d2011-01-06 15:37:30 +000031
Paul Bakker314052f2011-08-15 09:07:52 +000032#include "config.h"
33#include "cipher.h"
Paul Bakker8123e9d2011-01-06 15:37:30 +000034
Paul Bakker8123e9d2011-01-06 15:37:30 +000035#ifdef __cplusplus
36extern "C" {
37#endif
38
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020039typedef struct
40{
41 cipher_type_t type;
42 const cipher_info_t *info;
43} cipher_definition_t;
Paul Bakker8123e9d2011-01-06 15:37:30 +000044
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020045extern const cipher_definition_t cipher_definitions[];
Paul Bakker5e0efa72013-09-08 23:04:04 +020046
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020047extern int supported_ciphers[];
Paul Bakkerfab5c822012-02-06 16:45:10 +000048
Paul Bakker8123e9d2011-01-06 15:37:30 +000049#ifdef __cplusplus
50}
51#endif
52
53#endif /* POLARSSL_CIPHER_WRAP_H */