Renesas / SecureDweet
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ecdh.h Source File

ecdh.h

00001 /* ecdh.h for openssl */
00002 
00003 #ifndef WOLFSSL_ECDH_H_
00004 #define WOLFSSL_ECDH_H_
00005 
00006 #include <wolfssl/openssl/ssl.h>
00007 #include <wolfssl/openssl/bn.h>
00008 
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012 
00013 
00014 WOLFSSL_API int wolfSSL_ECDH_compute_key(void *out, size_t outlen,
00015                                          const WOLFSSL_EC_POINT *pub_key,
00016                                          WOLFSSL_EC_KEY *ecdh,
00017                                          void *(*KDF) (const void *in,
00018                                                        size_t inlen,
00019                                                        void *out,
00020                                                        size_t *outlen));
00021 
00022 #define ECDH_compute_key wolfSSL_ECDH_compute_key
00023 
00024 #ifdef __cplusplus
00025 }  /* extern C */
00026 #endif
00027 
00028 #endif /* header */
00029