wolfSSL SSL/TLS library, support up to TLS1.3
Embed:
(wiki syntax)
Show/hide line numbers
ec25519.h
00001 /* ec25519.h 00002 * 00003 * Copyright (C) 2006-2017 wolfSSL Inc. 00004 * 00005 * This file is part of wolfSSL. 00006 * 00007 * wolfSSL is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * wolfSSL is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 00020 */ 00021 00022 /* ec25519.h */ 00023 00024 #ifndef WOLFSSL_EC25519_H_ 00025 #define WOLFSSL_EC25519_H_ 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 WOLFSSL_API 00032 int wolfSSL_EC25519_generate_key(unsigned char *priv, unsigned int *privSz, 00033 unsigned char *pub, unsigned int *pubSz); 00034 00035 WOLFSSL_API 00036 int wolfSSL_EC25519_shared_key(unsigned char *shared, unsigned int *sharedSz, 00037 const unsigned char *priv, unsigned int privSz, 00038 const unsigned char *pub, unsigned int pubSz); 00039 00040 #ifdef __cplusplus 00041 } /* extern "C" */ 00042 #endif 00043 00044 #endif /* header */ 00045
Generated on Wed Jul 13 2022 01:38:41 by 1.7.2