wvdbusserver: implement NameHasOwner request.
[wvstreams.git] / include / wvcrypto.h
blob5d20f5fa247d6f0f4a347c462f5056e76aa71f65
1 /* -*- Mode: C++ -*-
2 * Worldvisions Tunnel Vision Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * Miscellaneous cryptography primitives.
6 */
7 #ifndef __WVCRYPTO_H
8 #define __WVCRYPTO_H
10 #include "wvencoder.h"
11 #include "wvfile.h"
14 /** A very simple stream that returns randomness from /dev/urandom */
15 class WvRandomStream : public WvFile
17 public:
18 WvRandomStream();
21 class WvCryptoEncoder : public WvEncoder
23 public:
25 * Sets the current TripleDES keys and resets the initialization
26 * vector to all nulls.
28 * "key[1-3]" are the new keys
30 virtual void setkey(const void *_key)
32 return;
35 virtual void setkey(const void *_key1, const void *_key2,
36 const void *_key3)
38 return;
42 * Sets the current TripleDES initialization vector.
44 * "iv" is the new IV must be 8 bytes
46 virtual void setiv(const void *iv)
48 return;
54 #endif // __WVCRYPTO_H