17 void init(
const uint8_t *key,
size_t len);
18 void init(
const char *key,
size_t len) { this->
init((
const uint8_t *) key, len); }
19 void init(
const std::string &key) { this->
init(key.c_str(), key.length()); }
22 void add(
const uint8_t *data,
size_t len);
23 void add(
const char *data,
size_t len) { this->
add((
const uint8_t *) data, len); }
void init(const std::string &key)
void init(const uint8_t *key, size_t len)
Initialize a new MD5 digest computation.
void get_bytes(uint8_t *output)
Retrieve the HMAC-MD5 digest as bytes.
void init(const char *key, size_t len)
bool equals_bytes(const uint8_t *expected)
Compare the digest against a provided byte-encoded digest (16 bytes).
bool equals_hex(const char *expected)
Compare the digest against a provided hex-encoded digest (32 bytes).
void add(const uint8_t *data, size_t len)
Add bytes of data for the digest.
void add(const char *data, size_t len)
void calculate()
Compute the digest, based on the provided data.
void get_hex(char *output)
Retrieve the HMAC-MD5 digest as hex characters.
Implementation of SPI Controller mode.