mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
hmac: expose HMAC_*_KEY_MAX defines
This commit is contained in:
parent
048a0508bf
commit
13a690a5a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user