From b4e17386cb4093acf636ebaec858a30557098e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=E9d=E9ric=20L=E9caille?= Date: Wed, 16 Dec 2020 11:28:58 +0100 Subject: [PATCH] MINOR: quic: Update the initial salt to that of draft-29. This salt is ued at leat up to draft-32. At this date ngtcp2 always uses this salt even if it started the draft-33 development. Note that when the salt is not correct, we cannot remove the header protection. In this case the packet number length is wrong. --- src/quic_tls.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/quic_tls.c b/src/quic_tls.c index ff24e94d8..f80565ec0 100644 --- a/src/quic_tls.c +++ b/src/quic_tls.c @@ -19,12 +19,12 @@ __attribute__((format (printf, 3, 4))) void hexdump(const void *buf, size_t buflen, const char *title_fmt, ...); /* Initial salt depending on QUIC version to derive client/server initial secrets. - * This one is for draft-23 QUIC version. + * This one is for draft-29 QUIC version. */ unsigned char initial_salt[20] = { - 0xc3, 0xee, 0xf7, 0x12, 0xc7, 0x2e, 0xbb, 0x5a, - 0x11, 0xa7, 0xd2, 0x43, 0x2b, 0xb4, 0x63, 0x65, - 0xbe, 0xf9, 0xf5, 0x02, + 0xaf, 0xbf, 0xec, 0x28, 0x99, 0x93, 0xd2, 0x4c, + 0x9e, 0x97, 0x86, 0xf1, 0x9c, 0x61, 0x11, 0xe0, + 0x43, 0x90, 0xa8, 0x99 }; /* Dump the RX/TX secrets of QUIC TLS secrets. */