digest stream buffer.
More...
#include <digest.hpp>
|
| virtual int_type | overflow (int_type c=traits_type::eof()) override |
| | writes characters to the associated output sequence from the put area.
|
| |
|
| std::unique_ptr< char[]> | _buf |
| | internal buffer.
|
| |
| const EVP_MD * | _md |
| | message digest.
|
| |
| EvpMdCtxPtr | _ctx |
| | message digest context.
|
| |
|
| static const std::streamsize | _bufsize = 256 |
| | internal buffer size.
|
| |
◆ Digestbuf() [1/3]
| Digestbuf::Digestbuf |
( |
const std::string & | algo | ) |
|
create digest stream buffer instance.
- Parameters
-
| algo | the message digest used. |
◆ Digestbuf() [2/3]
| join::Digestbuf::Digestbuf |
( |
const Digestbuf & | other | ) |
|
|
delete |
copy constructor.
- Parameters
-
| other | other object to copy. |
◆ Digestbuf() [3/3]
move constructor.
- Parameters
-
| other | other object to move. |
◆ ~Digestbuf()
| virtual join::Digestbuf::~Digestbuf |
( |
| ) |
|
|
virtualdefault |
destroy digest stream buffer instance.
◆ finalize()
get message digest.
- Returns
- message digest.
◆ operator=() [1/2]
copy assignment operator.
- Parameters
-
| other | other object to assign. |
- Returns
- current object.
◆ operator=() [2/2]
move assignment operator.
- Parameters
-
| other | other object to assign. |
- Returns
- current object.
◆ overflow()
| Digestbuf::int_type Digestbuf::overflow |
( |
int_type | c = traits_type::eof () | ) |
|
|
overrideprotectedvirtual |
writes characters to the associated output sequence from the put area.
- Parameters
-
| c | the character to store in the put area. |
- Returns
- EOF on failure, some other value on success.
◆ _buf
| std::unique_ptr<char []> join::Digestbuf::_buf |
|
protected |
◆ _bufsize
| const std::streamsize join::Digestbuf::_bufsize = 256 |
|
staticprotected |
◆ _ctx
◆ _md
| const EVP_MD* join::Digestbuf::_md |
|
protected |
The documentation for this class was generated from the following files: