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 HASH_HMAC_H
2#define HASH_HMAC_H
3
6#include "crypto/symmetric/hash/hash/sha384.h"
7
13
22
34 wired_span key, wired_span msg, u8* out, usz out_len);
35
43void hmac_sha384(wired_span key, wired_span msg, u8 out[SHA384_DIGEST]);
44
52void hmac_sha512(wired_span key, wired_span msg, u8 out[SHA512_DIGEST]);
53
54#endif
void hmac_sha384(wired_span key, wired_span msg, u8 out[SHA384_DIGEST])
Compute HMAC-SHA-384(key, msg) (RFC 2104, FIPS 180-4 SHA-384).
void hmac_sha512(wired_span key, wired_span msg, u8 out[SHA512_DIGEST])
Compute HMAC-SHA-512(key, msg) (RFC 2104, FIPS 180-4 SHA-512).
void hmac_sha256_truncated(wired_span key, wired_span msg, u8 *out, usz out_len)
Compute HMAC-SHA-256(key, msg) truncated to its leftmost out_len bytes (FIPS 198-1 5,...
void hmac_sha256(wired_span key, wired_span msg, u8 out[SHA256_DIGEST])
Compute HMAC-SHA-256(key, msg).
FIPS 180-4 SHA-256.
#define 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 types.h:20
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18