mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
hmac: expose HMAC_*_KEY_MAX defines
This commit is contained in:
parent
bc52e4f47e
commit
e5dec7ebf6
@ -23,6 +23,9 @@ typedef struct {
|
|||||||
bool finalized;
|
bool finalized;
|
||||||
} HmacSha256Context;
|
} HmacSha256Context;
|
||||||
|
|
||||||
|
#define HMAC_SHA1_KEY_MAX (sizeof(((HmacSha1Context *)NULL)->key))
|
||||||
|
#define HMAC_SHA256_KEY_MAX (sizeof(((HmacSha256Context *)NULL)->key))
|
||||||
|
|
||||||
/// Initialize a HMAC-SHA256 context.
|
/// Initialize a HMAC-SHA256 context.
|
||||||
void hmacSha256ContextCreate(HmacSha256Context *out, const void *key, size_t key_size);
|
void hmacSha256ContextCreate(HmacSha256Context *out, const void *key, size_t key_size);
|
||||||
/// Updates HMAC-SHA256 context with data to hash
|
/// Updates HMAC-SHA256 context with data to hash
|
||||||
|
Loading…
Reference in New Issue
Block a user