Yes, inherit from Filter. Look at SignerFilter in filters.h for a simple
Filter example.
----- Original Message -----
From: "Jeffrey Walton" <[EMAIL PROTECTED]>
To: "Crypto" <[email protected]>
Sent: Tuesday, November 21, 2006 7:12 AM
Subject: Create Custom Filter
Hi All,
Has anyone created a custom filter (and willing to share it)? I did
not see anything on the archives?
As an example Suppose I start with the following:
// NULL Transformation
CryptoPP::StringSource( source, true,
new CryptoPP::StringSink( sink )
);
I want to prepend or append a byte as a test. I'm not sure where to
gegin. BufferedTransformation documentation is written from a user's
point of view.
Hex, Base32, and Base64 inherit from SimpleProxyFilter. This seems a
bit high level for the TestEncoder
BufferedTransformation seems a bit low for the TestEncoder.
Should TestEncoder inherit from Filter?
Jeff