4#ifndef PROTOCORE_HMAC_SHA384_H
5#define PROTOCORE_HMAC_SHA384_H
39#define PROTOCORE_HMAC_SHA384_LEN 48
44 embed_bool (*
init)(uint8_t *,
const uint8_t *, size_t);
45 embed_bool (*
update)(uint8_t *,
const uint8_t *, size_t);
46 embed_bool (*
final)(uint8_t *, uint8_t *);
47 embed_bool (*
mac)(uint8_t *,
const uint8_t *, size_t,
const uint8_t *, size_t, uint8_t *);
embed_bool protocore_hmac_sha384_init(uint8_t *work, const uint8_t *key, size_t key_len)
Start a MAC under HmacSha384Ns::key_args.
embed_bool protocore_hmac_sha384_final(uint8_t *work, uint8_t *out)
Finish, writing the 48 bytes out.
embed_bool protocore_hmac_sha384_mac(uint8_t *work, const uint8_t *key, size_t key_len, const uint8_t *data, size_t len, uint8_t *out)
Init, update and final in one call, for a message already whole.
embed_bool protocore_hmac_sha384_update(uint8_t *work, const uint8_t *data, size_t len)
Feed the running MAC a chunk.
#define PROTOCORE_UNUSED
Suppress the unused warning. Every module ends in a namespace most callers only partly use.
#define PROTOCORE_NS_LAYOUT(T,...)
Pin every dispatch slot of a table that is nothing but function pointers.
#define PROTOCORE_NS
Storage for a dispatch table. The const is load bearing.
Dispatch table. Addressed by offset, so the layout is asserted below.
embed_bool(* update)(uint8_t *, const uint8_t *, size_t)
embed_bool(* mac)(uint8_t *, const uint8_t *, size_t, const uint8_t *, size_t, uint8_t *)
embed_bool(* init)(uint8_t *, const uint8_t *, size_t)