wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
transcript.h File Reference

RFC 8446 4.4.1: cumulative Transcript-Hash over handshake messages. More...

Go to the source code of this file.

Data Structures

struct  quic_transcript
 Cumulative Transcript-Hash state. More...

Functions

void quic_transcript_init (quic_transcript *t)
 Start an empty transcript.
void quic_transcript_add (quic_transcript *t, const u8 *msg, usz len)
 Fold a handshake message into the transcript.
void quic_transcript_hash (const quic_transcript *t, u8 out[QUIC_SHA256_DIGEST])
 Running hash at the current point; t is left unchanged.

Detailed Description

RFC 8446 4.4.1: cumulative Transcript-Hash over handshake messages.

Function Documentation

◆ quic_transcript_add()

void quic_transcript_add ( quic_transcript * t,
const u8 * msg,
usz len )

Fold a handshake message into the transcript.

Parameters
ttranscript state
msgthe handshake message bytes
lenlength of msg in bytes

◆ quic_transcript_hash()

void quic_transcript_hash ( const quic_transcript * t,
u8 out[QUIC_SHA256_DIGEST] )

Running hash at the current point; t is left unchanged.

Parameters
ttranscript state
outreceives the transcript hash

◆ quic_transcript_init()

void quic_transcript_init ( quic_transcript * t)

Start an empty transcript.

Parameters
ttranscript state to initialize