On Friday, October 2, 2015 at 11:41:53 AM UTC-4, Luciano Santos wrote:
>
> Is there any sink that will output the data to a SecByteBlock (and 
> possibly make it grow automatically)? I am currently using StrinkSink and 
> reinterpret_cast to byte on c_str(), but I wonder if there's no lib native 
> way to output directly to SecByteBlocks.
>

There is https://cryptopp.com/wiki/SecByteBlockSink .

The sink is fairly naive and can be inefficient. The sink uses simple 
concatenation, which means it wraps the incoming array in a SecBlock, and 
then passes it on to the destination SecBlock. The destination SecBlock 
will grow, and then copy the original array again.

You might want to use a ByteQueue or MessageQueue instead.

Jeff

-- 
-- 
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.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to