Last change
on this file since 337 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
1.5 KB
|
Line | |
---|
1 | /* dh.h for openSSL */
|
---|
2 |
|
---|
3 |
|
---|
4 | #ifndef WOLFSSL_DH_H_
|
---|
5 | #define WOLFSSL_DH_H_
|
---|
6 |
|
---|
7 | #include <wolfssl/openssl/ssl.h>
|
---|
8 | #include <wolfssl/openssl/bn.h>
|
---|
9 |
|
---|
10 | #ifdef __cplusplus
|
---|
11 | extern "C" {
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | struct WOLFSSL_DH {
|
---|
15 | WOLFSSL_BIGNUM* p;
|
---|
16 | WOLFSSL_BIGNUM* g;
|
---|
17 | WOLFSSL_BIGNUM* q;
|
---|
18 | WOLFSSL_BIGNUM* pub_key; /* openssh deference g^x */
|
---|
19 | WOLFSSL_BIGNUM* priv_key; /* openssh deference x */
|
---|
20 | void* internal; /* our DH */
|
---|
21 | char inSet; /* internal set from external ? */
|
---|
22 | char exSet; /* external set from internal ? */
|
---|
23 | /*added for lighttpd openssl compatibility, go back and add a getter in
|
---|
24 | * lighttpd src code.
|
---|
25 | */
|
---|
26 | int length;
|
---|
27 | };
|
---|
28 |
|
---|
29 |
|
---|
30 | WOLFSSL_API WOLFSSL_DH* wolfSSL_DH_new(void);
|
---|
31 | WOLFSSL_API void wolfSSL_DH_free(WOLFSSL_DH*);
|
---|
32 |
|
---|
33 | WOLFSSL_API int wolfSSL_DH_size(WOLFSSL_DH*);
|
---|
34 | WOLFSSL_API int wolfSSL_DH_generate_key(WOLFSSL_DH*);
|
---|
35 | WOLFSSL_API int wolfSSL_DH_compute_key(unsigned char* key, WOLFSSL_BIGNUM* pub,
|
---|
36 | WOLFSSL_DH*);
|
---|
37 |
|
---|
38 | typedef WOLFSSL_DH DH;
|
---|
39 |
|
---|
40 | #define DH_new wolfSSL_DH_new
|
---|
41 | #define DH_free wolfSSL_DH_free
|
---|
42 |
|
---|
43 | #define DH_size wolfSSL_DH_size
|
---|
44 | #define DH_generate_key wolfSSL_DH_generate_key
|
---|
45 | #define DH_compute_key wolfSSL_DH_compute_key
|
---|
46 |
|
---|
47 |
|
---|
48 | #ifdef __cplusplus
|
---|
49 | } /* extern "C" */
|
---|
50 | #endif
|
---|
51 |
|
---|
52 | #ifdef HAVE_STUNNEL
|
---|
53 | #define DH_generate_parameters wolfSSL_DH_generate_parameters
|
---|
54 | #define DH_generate_parameters_ex wolfSSL_DH_generate_parameters_ex
|
---|
55 | #endif /* HAVE_STUNNEL */
|
---|
56 | #endif /* header */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.