wolfSSL SSL/TLS library, support up to TLS1.3
Embed:
(wiki syntax)
Show/hide line numbers
ecdh.h
00001 /* ecdh.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 /* ecdh.h for openssl */ 00023 00024 #ifndef WOLFSSL_ECDH_H_ 00025 #define WOLFSSL_ECDH_H_ 00026 00027 #include <wolfssl/openssl/ssl.h> 00028 #include <wolfssl/openssl/bn.h> 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 00034 00035 WOLFSSL_API int wolfSSL_ECDH_compute_key(void *out, size_t outlen, 00036 const WOLFSSL_EC_POINT *pub_key, 00037 WOLFSSL_EC_KEY *ecdh, 00038 void *(*KDF) (const void *in, 00039 size_t inlen, 00040 void *out, 00041 size_t *outlen)); 00042 00043 #define ECDH_compute_key wolfSSL_ECDH_compute_key 00044 00045 #ifdef __cplusplus 00046 } /* extern C */ 00047 #endif 00048 00049 #endif /* header */ 00050
Generated on Wed Jul 13 2022 01:38:41 by 1.7.2