]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic: fix the header protection key length dump with AWS-LC
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 29 Oct 2026 13:49:16 +0000 (14:49 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Tue, 3 Nov 2026 06:56:46 +0000 (07:56 +0100)
commit528b4bc2a4d43e1eff0567f695b7dfd7dd1b4634
tree8a2e58554efb4493bf341699a45d4e11f90182bd
parent32f94a38fa817307e33aae4d43974ca089d67de8
BUG/MINOR: quic: fix the header protection key length dump with AWS-LC

Under QUIC_AEAD_API, tls_hp() returns EVP_CIPHER_CHACHA20, which is an
EVP_AEAD cast to EVP_CIPHER. Applied to it, EVP_CIPHER_key_length() reads
an unrelated field and returns 1 instead of 32, so
quic_tls_keys_hexdump() only dumps one byte of the header protection key.
quic_tls_derive_keys() has the same computation but is guarded by
 #ifdef QUIC_AEAD_API. Move that special case to a helper in quic_tls.h
and use it for both.

This only affects the trace output. Measured on AWS-LC 5.9.0: 1 instead
of 32 for ChaCha20, AES-128 and AES-256 unaffected.

Should be backported to all stable versions even if only the QUIC traces
are impacted.
include/haproxy/quic_tls.h
src/quic_tls.c