/usr/include/wvstreams/wvcrypto.h is in libwvstreams-dev 4.6.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | /* -*- Mode: C++ -*-
* Worldvisions Tunnel Vision Software:
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
*
* Miscellaneous cryptography primitives.
*/
#ifndef __WVCRYPTO_H
#define __WVCRYPTO_H
#include "wvencoder.h"
#include "wvfile.h"
/** A very simple stream that returns randomness from /dev/urandom */
class WvRandomStream : public WvFile
{
public:
WvRandomStream();
};
class WvCryptoEncoder : public WvEncoder
{
public:
/*
* Sets the current TripleDES keys and resets the initialization
* vector to all nulls.
*
* "key[1-3]" are the new keys
*/
virtual void setkey(const void *_key)
{
return;
}
virtual void setkey(const void *_key1, const void *_key2,
const void *_key3)
{
return;
}
/*
* Sets the current TripleDES initialization vector.
*
* "iv" is the new IV must be 8 bytes
*/
virtual void setiv(const void *iv)
{
return;
}
};
#endif // __WVCRYPTO_H
|