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