Hi All/Wei,
Is it possible to retrieve the calculated tag from the
AuthenticatedDecryptionFilter? I think it would be useful for
situations where the verifier fails (i.e., GetLastResult() is false)
and one would like to inspect the calculated value for inspection,
logging, etc.
When I switch to the AAD channel and call MaxRetrievable, I always get
0 back. GetNextMessage and the like do not help.
Jeff
df.SetRetrievalChannel( "AAD" );
n = (size_t)df.MaxRetrievable();
calculated.resize( n );
if( n > 0 ) { df.Get( (byte*)calculated.data(), n ); }
assert( calculated == mac );
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---