WvStreams
|
00001 /* -*- Mode: C++ -*- 00002 * Worldvisions Tunnel Vision Software: 00003 * Copyright (C) 1997-2002 Net Integration Technologies, Inc. 00004 * 00005 * Miscellaneous cryptography primitives. 00006 */ 00007 #ifndef __WVCRYPTO_H 00008 #define __WVCRYPTO_H 00009 00010 #include "wvencoder.h" 00011 #include "wvfile.h" 00012 00013 00015 class WvRandomStream : public WvFile 00016 { 00017 public: 00018 WvRandomStream(); 00019 }; 00020 00021 class WvCryptoEncoder : public WvEncoder 00022 { 00023 public: 00024 /* 00025 * Sets the current TripleDES keys and resets the initialization 00026 * vector to all nulls. 00027 * 00028 * "key[1-3]" are the new keys 00029 */ 00030 virtual void setkey(const void *_key) 00031 { 00032 return; 00033 } 00034 00035 virtual void setkey(const void *_key1, const void *_key2, 00036 const void *_key3) 00037 { 00038 return; 00039 } 00040 00041 /* 00042 * Sets the current TripleDES initialization vector. 00043 * 00044 * "iv" is the new IV must be 8 bytes 00045 */ 00046 virtual void setiv(const void *iv) 00047 { 00048 return; 00049 } 00050 00051 }; 00052 00053 00054 #endif // __WVCRYPTO_H