WvStreams
wvcrypto.h
1/* -*- Mode: C++ -*-
2 * Worldvisions Tunnel Vision Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4 *
5 * Miscellaneous cryptography primitives.
6 */
7#ifndef __WVCRYPTO_H
8#define __WVCRYPTO_H
9
10#include "wvencoder.h"
11#include "wvfile.h"
12
13
15class WvRandomStream : public WvFile
16{
17public:
19};
20
22{
23public:
24 /*
25 * Sets the current TripleDES keys and resets the initialization
26 * vector to all nulls.
27 *
28 * "key[1-3]" are the new keys
29 */
30 virtual void setkey(const void *_key)
31 {
32 return;
33 }
34
35 virtual void setkey(const void *_key1, const void *_key2,
36 const void *_key3)
37 {
38 return;
39 }
40
41 /*
42 * Sets the current TripleDES initialization vector.
43 *
44 * "iv" is the new IV must be 8 bytes
45 */
46 virtual void setiv(const void *iv)
47 {
48 return;
49 }
50
51};
52
53
54#endif // __WVCRYPTO_H
The base encoder class.
Definition wvencoder.h:68
WvFile implements a stream connected to a file or Unix device.
Definition wvfile.h:29
A very simple stream that returns randomness from /dev/urandom.
Definition wvcrypto.h:16