C++ crypto streambuffers