Example program to test AES-GCM functionality. Used for a workshop

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cipher_wrap.h Source File

cipher_wrap.h

Go to the documentation of this file.
00001 /**
00002  * \file cipher_wrap.h
00003  *
00004  * \brief Cipher wrappers.
00005  *
00006  * \author Adriaan de Jong <dejong@fox-it.com>
00007  *
00008  *  Copyright (C) 2006-2013, Brainspark B.V.
00009  *
00010  *  This file is part of PolarSSL (http://www.polarssl.org)
00011  *  Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
00012  *
00013  *  All rights reserved.
00014  *
00015  *  This program is free software; you can redistribute it and/or modify
00016  *  it under the terms of the GNU General Public License as published by
00017  *  the Free Software Foundation; either version 2 of the License, or
00018  *  (at your option) any later version.
00019  *
00020  *  This program is distributed in the hope that it will be useful,
00021  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  *  GNU General Public License for more details.
00024  *
00025  *  You should have received a copy of the GNU General Public License along
00026  *  with this program; if not, write to the Free Software Foundation, Inc.,
00027  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00028  */
00029 #ifndef POLARSSL_CIPHER_WRAP_H
00030 #define POLARSSL_CIPHER_WRAP_H
00031 
00032 #if !defined(POLARSSL_CONFIG_FILE)
00033 #include "config.h"
00034 #else
00035 #include POLARSSL_CONFIG_FILE
00036 #endif
00037 #include "cipher.h"
00038 
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042 
00043 typedef struct
00044 {
00045     cipher_type_t type;
00046     const cipher_info_t *info;
00047 } cipher_definition_t;
00048 
00049 extern const cipher_definition_t cipher_definitions[];
00050 
00051 extern int supported_ciphers[];
00052 
00053 #ifdef __cplusplus
00054 }
00055 #endif
00056 
00057 #endif /* POLARSSL_CIPHER_WRAP_H */
00058 
00059