blob: 46bc757a8ea37cbfda771442cb2d3449096d60c9 [file] [log] [blame]
Paul Bakker8123e9d2011-01-06 15:37:30 +00001/**
2 * \file cipher_wrap.h
Paul Bakker9af723c2014-05-01 13:03:14 +02003 *
Paul Bakker8123e9d2011-01-06 15:37:30 +00004 * \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
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020032#if !defined(POLARSSL_CONFIG_FILE)
Paul Bakker314052f2011-08-15 09:07:52 +000033#include "config.h"
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020034#else
35#include POLARSSL_CONFIG_FILE
36#endif
Paul Bakker314052f2011-08-15 09:07:52 +000037#include "cipher.h"
Paul Bakker8123e9d2011-01-06 15:37:30 +000038
Paul Bakker8123e9d2011-01-06 15:37:30 +000039#ifdef __cplusplus
40extern "C" {
41#endif
42
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020043typedef struct
44{
45 cipher_type_t type;
46 const cipher_info_t *info;
47} cipher_definition_t;
Paul Bakker8123e9d2011-01-06 15:37:30 +000048
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020049extern const cipher_definition_t cipher_definitions[];
Paul Bakker5e0efa72013-09-08 23:04:04 +020050
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020051extern int supported_ciphers[];
Paul Bakkerfab5c822012-02-06 16:45:10 +000052
Paul Bakker8123e9d2011-01-06 15:37:30 +000053#ifdef __cplusplus
54}
55#endif
56
57#endif /* POLARSSL_CIPHER_WRAP_H */