60 HMAC(
const uint8_t *k, uint32_t kl);
173 const uint8_t *m,
const uint32_t ml,
HMAC(const uint8_t *k, uint32_t kl)
Construct an HMAC with its initial key.
EMSHAResult Update(const std::uint8_t *message, std::uint32_t messageLength) override
Write data into the context.
EMSHAResult Result(std::uint8_t *digest) override
Copy the current digest into a destination buffer.
EMSHAResult Finalise(std::uint8_t *digest) override
Complete the HMAC computation.
EMSHAResult Reset() override
Clear any data written to the HMAC.
std::uint32_t Size() override
Returns the output size of HMAC-SHA-256.
Declares an interface for an EMbedded Secure HAshing interface.
const std::uint32_t SHA256_HASH_SIZE
SHA256_HASH_SIZE is the output length of SHA-256 in bytes.
Definition emsha.h:57
const uint32_t HMAC_KEY_LENGTH
Definition hmac.h:42
const uint32_t SHA256_MB_SIZE
SHA256_MB_SIZE is the size of a message block.
Definition sha256.h:44
EMSHAResult ComputeHMAC(const uint8_t *k, const uint32_t kl, const uint8_t *m, const uint32_t ml, uint8_t *d)
Perform a single-pass HMAC computation over a message.
EMSHAResult
Describe the result of an EMSHA operation.
Definition emsha.h:64
Declares an interface for producing SHA-256 hashes.