42#ifndef _DWMCREDENCEXCHACHA20POLY1305OUTBUFFER_HH_
43#define _DWMCREDENCEXCHACHA20POLY1305OUTBUFFER_HH_
52 namespace XChaCha20Poly1305 {
69 :
public std::streambuf
75 OutBuffer(std::ostream & os,
const std::string & key);
78 int_type overflow(int_type c)
override;
80 std::streamsize xsputn(
const char *p, std::streamsize n)
override;
85 std::string _plainbuf;
This class is a helper for encrypted stream output.
Definition DwmCredenceXChaCha20Poly1305OutBuffer.hh:70
OutBuffer(std::ostream &os, const std::string &key)
Construct with the given ostream os and encryption key key.