WvStreams
include
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
14
class
WvOakleyAuth
15
{
16
public
:
17
WvOakleyAuth
(
int
group
);
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
25
private
:
26
WvDiffieHellman
*dh;
27
short
pub_len, other_len;
28
short
secret_len;
29
WvDynBuf
other_pub_key;
30
};
31
32
#endif
/* __WVOAKLEY_H */
WvOakleyAuth
Definition:
wvoakley.h:14
group
Definition:
argp-parse.c:204
WvBufBase< unsigned char >
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
Definition:
wvbuf.h:22
WvDiffieHellman
Definition:
wvdiffiehellman.h:16
WvDynBufBase< unsigned char >
Generated by
1.8.17