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

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pk_wrap.h Source File

pk_wrap.h

00001 /**
00002  * \file pk.h
00003  *
00004  * \brief Public Key abstraction layer: wrapper functions
00005  *
00006  *  Copyright (C) 2006-2013, Brainspark B.V.
00007  *
00008  *  This file is part of PolarSSL (http://www.polarssl.org)
00009  *  Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
00010  *
00011  *  All rights reserved.
00012  *
00013  *  This program is free software; you can redistribute it and/or modify
00014  *  it under the terms of the GNU General Public License as published by
00015  *  the Free Software Foundation; either version 2 of the License, or
00016  *  (at your option) any later version.
00017  *
00018  *  This program is distributed in the hope that it will be useful,
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  *  GNU General Public License for more details.
00022  *
00023  *  You should have received a copy of the GNU General Public License along
00024  *  with this program; if not, write to the Free Software Foundation, Inc.,
00025  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00026  */
00027 
00028 #ifndef POLARSSL_PK_WRAP_H
00029 #define POLARSSL_PK_WRAP_H
00030 
00031 #if !defined(POLARSSL_CONFIG_FILE)
00032 #include "config.h"
00033 #else
00034 #include POLARSSL_CONFIG_FILE
00035 #endif
00036 
00037 #include "pk.h"
00038 
00039 /* Container for RSA-alt */
00040 typedef struct
00041 {
00042     void *key;
00043     pk_rsa_alt_decrypt_func decrypt_func;
00044     pk_rsa_alt_sign_func sign_func;
00045     pk_rsa_alt_key_len_func key_len_func;
00046 } rsa_alt_context;
00047 
00048 #if defined(POLARSSL_RSA_C)
00049 extern const pk_info_t rsa_info;
00050 #endif
00051 
00052 #if defined(POLARSSL_ECP_C)
00053 extern const pk_info_t eckey_info;
00054 extern const pk_info_t eckeydh_info;
00055 #endif
00056 
00057 #if defined(POLARSSL_ECDSA_C)
00058 extern const pk_info_t ecdsa_info;
00059 #endif
00060 
00061 extern const pk_info_t rsa_alt_info;
00062 
00063 #endif /* POLARSSL_PK_WRAP_H */
00064 
00065