]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic_tls: Add quic_tls_decrypt2() implementation
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 16 May 2022 08:27:57 +0000 (10:27 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 20 May 2022 14:57:12 +0000 (16:57 +0200)
commit55367c86791be8fb54d03b2dc0e01eae90a9a893
treed292c2a174a1c8d651406a01e9f4ae3be583e893
parenta9c5d8da58c02d58097b8d7b592255c9fead5110
MINOR: quic_tls: Add quic_tls_decrypt2() implementation

This function does exactly the same thing as quic_tls_decrypt(), except that
it does reuse its input buffer as output buffer. This is needed
to decrypt the Retry token without modifying the packet buffer which
contains this token. Indeed, this would prevent us from decryption
the packet itself as the token belong to the AEAD AAD for the packet.
include/haproxy/quic_tls.h
src/quic_tls.c