A cryptographic message authentication code class.
More...
#include <secure.h>
|
| HMAC (const char *digest, const secure::keybytes &key) |
|
secure::keybytes | key (void) |
|
secure::string | operator * () |
|
bool | operator *= (const char *text) |
|
| operator bool () const |
|
| operator secure::string () |
|
bool | operator! () const |
|
bool | operator+= (const char *text) |
|
HMAC & | operator<< (const char *str) |
|
HMAC & | operator<< (int16_t value) |
|
HMAC & | operator<< (int32_t value) |
|
HMAC & | operator<< (const PrintProtocol &p) |
|
bool | put (const void *memory, size_t size) |
|
bool | puts (const char *str) |
|
void | set (const char *digest, const secure::keybytes &key) |
|
unsigned | size () const |
|
secure::string | str (void) |
|
|
static bool | has (const char *name) |
| Test to see if a specific digest type is supported. More...
|
|
static secure::keybytes | sha256 (secure::keybytes key, const uint8_t *mem, size_t size) |
|
static secure::keybytes | sha384 (secure::keybytes key, const uint8_t *mem, size_t soze) |
|
|
const uint8_t * | get (void) |
|
void | release (void) |
|
A cryptographic message authentication code class.
This class can support md5 digests, sha1, sha256, etc, depending on what the underlying library supports.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 656 of file secure.h.
◆ has()
static bool ucommon::HMAC::has |
( |
const char * |
name | ) |
|
|
static |
Test to see if a specific digest type is supported.
- Parameters
-
name | of digest we want to check. |
- Returns
- true if supported, false if not.
The documentation for this class was generated from the following file: