wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
hmac.h
Go to the documentation of this file.
1#ifndef QUIC_HASH_HMAC_H
2#define QUIC_HASH_HMAC_H
3
6#include "crypto/symmetric/hash/hash/sha384.h"
7
13
22
34 quic_span key, quic_span msg, u8* out, usz out_len);
35
43void quic_hmac_sha384(quic_span key, quic_span msg, u8 out[QUIC_SHA384_DIGEST]);
44
45#endif
void quic_hmac_sha256(quic_span key, quic_span msg, u8 out[QUIC_SHA256_DIGEST])
Compute HMAC-SHA-256(key, msg).
void quic_hmac_sha384(quic_span key, quic_span msg, u8 out[QUIC_SHA384_DIGEST])
Compute HMAC-SHA-384(key, msg) (RFC 2104, FIPS 180-4 SHA-384).
void quic_hmac_sha256_truncated(quic_span key, quic_span msg, u8 *out, usz out_len)
Compute HMAC-SHA-256(key, msg) truncated to its leftmost out_len bytes (FIPS 198-1 5,...
FIPS 180-4 SHA-256.
#define QUIC_SHA256_DIGEST
digest length in bytes
Definition sha256.h:11
Value-type views that fold the SDK's recurring argument shapes into single parameters,...
Read-only view of a byte range.
Definition span.h:30
u64 usz
unsigned size (size_t equivalent)
Definition syscall.h:19
unsigned char u8
unsigned 8-bit integer / byte
Definition syscall.h:17