WvStreams
wvoakley.h
1/* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 2003 Net Integration Technologies, Inc.
4 *
5 * Diffie-Hellman shared secret creation.
6 */
7
8#ifndef __WVOAKLEY_H
9#define __WVOAKLEY_H
10
11#include "wvstream.h"
12#include "wvdiffiehellman.h"
13
15{
16public:
18 short public_len();
19 short other_pub_len();
20 short get_public_key(WvBuf &outbuf, short len);
21 short get_other_public_key(WvBuf &outbuf, short len);
22 void create_secret(WvBuf &_other_pub_key, short len);
23 WvDynBuf dh_secret;
24
25private:
27 short pub_len, other_len;
28 short secret_len;
29 WvDynBuf other_pub_key;
30};
31
32#endif /* __WVOAKLEY_H */