HMAC stream buffer.
More...
#include <hmac.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.
|
| |
| HmacCtxPtr | _ctx |
| | context.
|
| |
| std::string | _key |
| | key.
|
| |
|
| static const std::streamsize | _bufsize = 256 |
| | internal buffer size.
|
| |
◆ Hmacbuf() [1/3]
| Hmacbuf::Hmacbuf |
( |
const std::string & | algo, |
|
|
const std::string & | key ) |
create HMAC stream buffer instance.
- Parameters
-
| algo | the message digest algorithm used. |
| key | key. |
◆ Hmacbuf() [2/3]
| join::Hmacbuf::Hmacbuf |
( |
const Hmacbuf & | other | ) |
|
|
delete |
copy constructor.
- Parameters
-
| other | other object to copy. |
◆ Hmacbuf() [3/3]
| Hmacbuf::Hmacbuf |
( |
Hmacbuf && | other | ) |
|
move constructor.
- Parameters
-
| other | other object to move. |
◆ ~Hmacbuf()
| virtual join::Hmacbuf::~Hmacbuf |
( |
| ) |
|
|
virtualdefault |
destroy HMAC stream buffer instance.
◆ finalize()
get keyed-hash message authentication code.
- Returns
- keyed-hash message authentication code.
◆ 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()
| Hmacbuf::int_type Hmacbuf::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::Hmacbuf::_buf |
|
protected |
◆ _bufsize
| const std::streamsize join::Hmacbuf::_bufsize = 256 |
|
staticprotected |
◆ _ctx
◆ _key
| std::string join::Hmacbuf::_key |
|
protected |
◆ _md
| const EVP_MD* join::Hmacbuf::_md |
|
protected |
The documentation for this class was generated from the following files: