34 proto_bool (*ctr_hmac_sha256)(uint8_t *,
const uint8_t *, size_t,
const uint8_t *, size_t, uint8_t *, size_t);
50 size_t fixed_len, uint8_t *out,
size_t out_len);
PROTOCORE_NS KdfNs Kdf PROTOCORE_UNUSED
Module namespace.
proto_bool protocore_kdf_ctr_hmac_sha256(uint8_t *work, const uint8_t *ki, size_t ki_len, const uint8_t *fixed, size_t fixed_len, uint8_t *out, size_t out_len)
Derive out_len bytes, counter mode, HMAC-SHA256 PRF.
#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.
proto_bool(* ctr_hmac_sha256)(uint8_t *, const uint8_t *, size_t, const uint8_t *, size_t, uint8_t *, size_t)
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS