blob: ffa8c53bd050fa1b4dba9562c83804a6ef02949b [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 *
Manuel Pégourié-Gonnarda658a402015-01-23 09:45:19 +00008 * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved
Paul Bakker8123e9d2011-01-06 15:37:30 +00009 *
Manuel Pégourié-Gonnard860b5162015-01-28 17:12:07 +000010 * This file is part of mbed TLS (https://polarssl.org)
Paul Bakker8123e9d2011-01-06 15:37:30 +000011 *
Paul Bakker8123e9d2011-01-06 15:37:30 +000012 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 */
Paul Bakkercce9d772011-11-18 14:26:47 +000026#ifndef POLARSSL_CIPHER_WRAP_H
27#define POLARSSL_CIPHER_WRAP_H
Paul Bakker8123e9d2011-01-06 15:37:30 +000028
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020029#if !defined(POLARSSL_CONFIG_FILE)
Paul Bakker314052f2011-08-15 09:07:52 +000030#include "config.h"
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020031#else
32#include POLARSSL_CONFIG_FILE
33#endif
Rich Evans00ab4702015-02-06 13:43:58 +000034
Paul Bakker314052f2011-08-15 09:07:52 +000035#include "cipher.h"
Paul Bakker8123e9d2011-01-06 15:37:30 +000036
Paul Bakker8123e9d2011-01-06 15:37:30 +000037#ifdef __cplusplus
38extern "C" {
39#endif
40
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020041typedef struct
42{
43 cipher_type_t type;
44 const cipher_info_t *info;
45} cipher_definition_t;
Paul Bakker8123e9d2011-01-06 15:37:30 +000046
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020047extern const cipher_definition_t cipher_definitions[];
Paul Bakker5e0efa72013-09-08 23:04:04 +020048
Manuel Pégourié-Gonnarddace82f2013-09-18 15:12:07 +020049extern int supported_ciphers[];
Paul Bakkerfab5c822012-02-06 16:45:10 +000050
Paul Bakker8123e9d2011-01-06 15:37:30 +000051#ifdef __cplusplus
52}
53#endif
54
55#endif /* POLARSSL_CIPHER_WRAP_H */