Hi All/Wei,
What I want to achieve is similar to below. StringSource does not have
it, and neither does Redirector. Both would be good candidates, but I
think Redirector would probably trump due to its behavior. Or should I
look at rolling ChannelSource(...)?
Using a ChannelSwitch is like using a Filter's PutChannel - it's not
quite as elegant as Crypto++.
Jeff
AuthenticatedDecryptionFilter df( d, ... );
ArraySource( (const byte*)adata.data(),
adata.size(), true,
new Redirector( df ),
"AAD"
); // ArraySource
ArraySource( (const byte*)enc.data(),
enc.size(), true,
new Redirector( df ),
DEFAULT_CHANNEL
); // ArraySource
ArraySource( (const byte*)tag.data(),
tag.size(), true,
new Redirector( df ),
"MAC"
); // ArraySource
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---