Greetings,

The AES Example at the bottom of 
http://www.cryptopp.com/fom-serve/cache/79.html uses an std::string as the 
sink for the AES encryption/decryption process. However, std::string 
doesn't use a secure allocator (and apparently due to optimization won't 
ever be secured even with one).

That is, 

  std::string output;

  CryptoPP::StringSource( temp, true,
       new CryptoPP::StreamTransformationFilter( encryptor,
           new CryptoPP::StringSink( output )
       ) // StreamTransformationFilter
   ); // StringSource

Is it possible to use something like a SecByteBlock for output instead? If 
so, what Sink class is to be used for that?

Cheers

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