]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add the QUIC v1 initial salt.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 1 Jul 2021 15:48:46 +0000 (17:48 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
See initial_salt value for QUIC-TLS RFC 9001 at
https://www.rfc-editor.org/rfc/rfc9001.html#name-initial-secrets

src/quic_tls.c

index f80565ec0123e9c1fefa2ef75efc4ffff91bb2f5..c27946a438948d7ae78704ba1110b04a06883cb3 100644 (file)
@@ -27,6 +27,12 @@ unsigned char initial_salt[20] = {
        0x43, 0x90, 0xa8, 0x99
 };
 
+unsigned char initial_salt_v1[20] = {
+       0x38, 0x76, 0x2c, 0xf7, 0xf5, 0x59, 0x34, 0xb3,
+       0x4d, 0x17, 0x9a, 0xe6, 0xa4, 0xc8, 0x0c, 0xad,
+       0xcc, 0xbb, 0x7f, 0x0a
+};
+
 /* Dump the RX/TX secrets of <secs> QUIC TLS secrets. */
 void quic_tls_keys_hexdump(struct buffer *buf, struct quic_tls_secrets *secs)
 {