]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Add structures to maintain key phase information
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 30 Nov 2021 09:59:37 +0000 (10:59 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 30 Nov 2021 10:51:12 +0000 (11:51 +0100)
commit40df78f116defca03d165e6eadd1754f1ce9688a
tree38f09fcb3a143eead543d263f7546e5668f65ea7
parent39484de813a8cb2e33eacd7799065ee51ddf5e66
MINOR: quic: Add structures to maintain key phase information

When running Key Update process, we must maintain much information
especially when the key phase bit has been toggled by the peer as
it is possible that it is due to late packets. This patch adds
quic_tls_kp new structure to do so. They are used to store
previous and next secrets, keys and IVs associated to the previous
and next RX key phase. We also need the next TX key phase information
to be able to encrypt packets for the next key phase.
include/haproxy/quic_tls-t.h
include/haproxy/quic_tls.h
include/haproxy/xprt_quic-t.h
src/xprt_quic.c