hmac: expose HMAC_*_KEY_MAX defines

This commit is contained in:
Michael Scire 2019-04-03 21:46:37 -07:00 committed by fincs
parent 048a0508bf
commit 13a690a5a8

View File

@ -23,6 +23,9 @@ typedef struct {
bool finalized;
} HmacSha256Context;
#define HMAC_SHA1_KEY_MAX (sizeof(((HmacSha1Context *)NULL)->key))
#define HMAC_SHA256_KEY_MAX (sizeof(((HmacSha256Context *)NULL)->key))
/// Initialize a HMAC-SHA256 context.
void hmacSha256ContextCreate(HmacSha256Context *out, const void *key, size_t key_size);
/// Updates HMAC-SHA256 context with data to hash