blob: d8df06f4f517c30a16e72f7f6f96582d21674187 (
plain)
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
55
|
/*************************************************
* Basic Filters Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_BASEFILT_H__
#define BOTAN_BASEFILT_H__
#include <botan/filter.h>
namespace Botan {
/*************************************************
* Chain *
*************************************************/
class Chain : public Fanout_Filter
{
public:
void write(const byte input[], u32bit length) { send(input, length); }
Chain(Filter* = 0, Filter* = 0, Filter* = 0, Filter* = 0);
Chain(Filter*[], u32bit);
};
/*************************************************
* Fork *
*************************************************/
class Fork : public Fanout_Filter
{
public:
void write(const byte input[], u32bit length) { send(input, length); }
void set_port(u32bit n) { Fanout_Filter::set_port(n); }
Fork(Filter*, Filter*, Filter* = 0, Filter* = 0);
Fork(Filter*[], u32bit);
};
/*************************************************
* Keyed Filter *
*************************************************/
class Keyed_Filter : public Filter
{
public:
virtual void set_key(const SymmetricKey&);
virtual void set_iv(const InitializationVector&) {}
virtual bool valid_keylength(u32bit) const;
Keyed_Filter() { base_ptr = 0; }
protected:
SymmetricAlgorithm* base_ptr;
};
}
#endif
|