I'm trying to implement the following general sequence of operations
to safely encrypt/decrypt data using GCM.

Generate data header
  write to AAD
Pipe data to default channel as encrypted data

... this seems to be working right... with with streaming the AAD data
and directly calling ChannelPut*


Decrypting seems to be more of a problem...

I can do the following

Read data header out, parse
Read entire data chunk into a string

Send to decryptor using ChannelPut*

... I cannot seem to use TransferTo* and the like to get the data
decrypted....
The error I get is this.... hwoever the workflow is the exact same as
the ChannelPut......

AES/GCM: additional authenticated data (AAD) cannot be input after
data to be encrypted or decrypted

--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---

Reply via email to