]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Reduce the maximum length of TLS secrets
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 22 Jun 2023 12:51:28 +0000 (14:51 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 30 Jun 2023 14:20:55 +0000 (16:20 +0200)
The maximum length of the secrets derived by the TLS stack is 384 bits.
This reduces the size of the objects provided by the "quic_tls_secret" pool by
16 bytes.

Should be backported as far as 2.6

include/haproxy/quic_tls-t.h

index 71f8932fdb738f4c5fab8389d316b78fe1571334..b13e4f8bc28c586138dc05d1baefeb6cc06771a5 100644 (file)
@@ -44,7 +44,7 @@
 /* AEAD iv and secrete key lengths */
 #define QUIC_TLS_IV_LEN     12 /* bytes */
 #define QUIC_TLS_KEY_LEN    32 /* bytes */
-#define QUIC_TLS_SECRET_LEN 64 /* bytes */
+#define QUIC_TLS_SECRET_LEN 48 /* bytes */
 /* The ciphersuites for AEAD QUIC-TLS have 16-bytes authentication tags */
 #define QUIC_TLS_TAG_LEN    16 /* bytes */