-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce maximum NONCE #19037
Enforce maximum NONCE #19037
Conversation
PR #19037: Size comparison from 5148b5d to 410b41d Increases (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Decreases (3 builds for cc13x2_26x2)
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
PR #19037: Size comparison from 8ef608d to a27f13b Increases (39 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, p6, telink)
Decreases (3 builds for cc13x2_26x2)
Full report (39 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, p6, telink)
|
/rebase |
PR #19037: Size comparison from 55ab764 to 4216fb2 Increases (30 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Decreases (5 builds for cc13x2_26x2)
Full report (30 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for making simplifications to AdvanceAndConsume
per discussed with @andy31415.
PR #19037: Size comparison from 10f620e to 69d4868 Increases (18 builds for cc13x2_26x2, linux)
Decreases (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
@@ -29,7 +29,7 @@ namespace chip { | |||
|
|||
void GlobalUnencryptedMessageCounter::Init() | |||
{ | |||
mValue = Crypto::GetRandU32(); | |||
mLastUsedValue = Crypto::GetRandU32(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed this after merge, but the spec has all counters initializing to: 1 to 2^28
.
@@ -29,7 +29,7 @@ namespace chip { | |||
|
|||
void GlobalUnencryptedMessageCounter::Init() | |||
{ | |||
mValue = Crypto::GetRandU32(); | |||
mLastUsedValue = Crypto::GetRandU32(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed this after merge, but the spec has all counters initializing to: (0 to 2^28) + 1
.
* Enforce maximum NONCE * Add test-case * Resove conversations, fix comments * Resolve comments
Problem
Fixes #19011
Change overview
Stop sending packet for a session if the counter is exhausted.
Testing
Added a unit-test for regression check