From 22856406c5662161fe909157c9c47d9a02e97b38 Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Tue, 31 May 2022 19:35:35 -0700 Subject: [PATCH] [crypto] Fix message counter init to be 28-bit random. (#19012) --- src/transport/MessageCounter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/MessageCounter.h b/src/transport/MessageCounter.h index c0e1c366ca8d64..26f50568343047 100644 --- a/src/transport/MessageCounter.h +++ b/src/transport/MessageCounter.h @@ -77,8 +77,8 @@ class GlobalUnencryptedMessageCounter : public MessageCounter class LocalSessionMessageCounter : public MessageCounter { public: - static constexpr uint32_t kInitialSyncValue = 0; ///< Used for initializing peer counter - static constexpr uint32_t kMessageCounterRandomInitMask = 0x0FFFFFF; ///< 28-bit mask + static constexpr uint32_t kInitialSyncValue = 0; ///< Used for initializing peer counter + static constexpr uint32_t kMessageCounterRandomInitMask = 0x0FFFFFFF; ///< 28-bit mask /** * Initialize a local message counter with random value between [1, 2^28]. This increases the difficulty of traffic analysis