1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! DTLS 1.3 protocol implementation.
//!
// This is the full DTLS 1.3 handshake flow (RFC 9147)
//
// Client Server
//
// ClientHello
// + supported_versions
// + supported_groups
// + key_share
// + signature_algorithms -------->
// ServerHello
// + key_share
// + supported_versions
// {EncryptedExtensions}
// {CertificateRequest*}
// {Certificate}
// {CertificateVerify}
// <-------- {Finished}
// {Certificate*}
// {CertificateVerify*}
// {Finished} -------->
// [Application Data] <-------> [Application Data]
//
// {} = encrypted with handshake keys (epoch 2)
// [] = encrypted with application keys (epoch 3)
// * = optional (client auth)
pub use Client;
pub use Server;