|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
RFC 8446 4.4.1: cumulative Transcript-Hash over handshake messages. More...
Go to the source code of this file.
Data Structures | |
| struct | transcript |
| Cumulative Transcript-Hash state. More... | |
Functions | |
| void | transcript_init (transcript *t) |
| Start an empty transcript. | |
| void | transcript_add (transcript *t, const u8 *msg, usz len) |
| Fold a handshake message into the transcript. | |
| void | transcript_hash (const transcript *t, u8 out[SHA256_DIGEST]) |
| Running hash at the current point; t is left unchanged. | |
| void | transcript_hash_suite (const transcript *t, u16 suite, u8 *out) |
| Running hash under suite's hash (SHA-384 for TLS_AES_256_GCM_SHA384, else SHA-256); t is left unchanged. | |
RFC 8446 4.4.1: cumulative Transcript-Hash over handshake messages.
| void transcript_add | ( | transcript * | t, |
| const u8 * | msg, | ||
| usz | len ) |
Fold a handshake message into the transcript.
| t | transcript state |
| msg | the handshake message bytes |
| len | length of msg in bytes |
| void transcript_hash | ( | const transcript * | t, |
| u8 | out[SHA256_DIGEST] ) |
Running hash at the current point; t is left unchanged.
| t | transcript state |
| out | receives the transcript hash |
| void transcript_hash_suite | ( | const transcript * | t, |
| u16 | suite, | ||
| u8 * | out ) |
Running hash under suite's hash (SHA-384 for TLS_AES_256_GCM_SHA384, else SHA-256); t is left unchanged.
| t | transcript state |
| suite | RFC 8446 B.4 cipher suite |
| out | receives Hash.length bytes |
| void transcript_init | ( | transcript * | t | ) |
Start an empty transcript.
| t | transcript state to initialize |