2 * Worldvisions Weaver Software:
3 * Copyright (C) 2003 Net Integration Technologies, Inc.
5 * Diffie-Hellman shared secret creation.
8 #ifndef __WVDIFFIEHELLMAN_H
9 #define __WVDIFFIEHELLMAN_H
11 #include <openssl/dh.h>
19 WvDiffieHellman(const unsigned char *_key
, int _keylen
,
21 ~WvDiffieHellman() { DH_free(info
); }
23 void get_created_secret(WvBuf
&outbuf
, size_t len
);
24 int get_public_value(WvBuf
&outbuf
, int len
);
27 bool create_secret(WvBuf
&inbuf
, size_t in_len
, WvBuf
& outbuf
);
38 #endif /* __WVDIFFIEHELLMAN_H */