I need to read the first few bytes of a file or stdin and store that
into one sink, I then need to take the remaining data and pipe that
into another sink. I haven't found a way to do it and redirectors only
work for sinks from what i can see.

I tried something similar to this

SecByteBlock iv(AES::BLOCKSIZE);
FileSource source(cin,true,new ArraySink(iv,iv.size()));
^ this eats all of the data and throws the remainder away

FileSource source(cin,false,new ArraySink(iv,iv.size());
source.Attach(new ArraySink(data));
source.pumpAll();
^  something like this but it still doesn't work and the arraysink for
data was a stream transformation filter to decrypt it. any ideas

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