|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
One suite's hash and the HKDF/HMAC instantiated over it. More...
#include <suitehash.h>
Data Fields | |
| usz | len |
| Hash.length in bytes (32 or 48). | |
| void(* | digest )(const u8 *p, usz n, u8 *out) |
| one-shot digest of n bytes at p into out (len bytes) | |
| void(* | extract )(wired_span salt, wired_span ikm, u8 *prk) |
| HKDF-Extract(salt, ikm) into prk (len bytes). | |
| int(* | expand_label )(const u8 *prk, const hkdf_label *l, wired_mspan okm) |
| HKDF-Expand-Label(prk, l, okm.n). | |
| void(* | mac )(wired_span key, wired_span msg, u8 *out) |
| HMAC(key, msg) into out (len bytes). | |
One suite's hash and the HKDF/HMAC instantiated over it.