-
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
[CASESession] Factoring Out Sigma2 and Sigma3 Parsing Functions for Improved Testability #36941
[CASESession] Factoring Out Sigma2 and Sigma3 Parsing Functions for Improved Testability #36941
Conversation
…sionParameters as an outparam and does not touch PairingSession class member mRemoteSessionParameters - a utility SetRemoteSessionParameters to be able to set PairingSession class member mRemoteSessionParameters
9351204
to
403d4ee
Compare
PR #36941: Size comparison from 2249628 to 403d4ee Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36941: Size comparison from 2249628 to ea053d8 Increases above 0.2%:
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
ea053d8
to
cc77e8c
Compare
PR #36941: Size comparison from 2249628 to cc77e8c Increases above 0.2%:
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
df9a3e8
to
5c9281b
Compare
0fe56e3
to
1a6f27b
Compare
PR #36941: Size comparison from d5e9829 to 1a6f27b Full report (70 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
1a6f27b
to
c4dfb95
Compare
4c0fd48
to
a68f2c0
Compare
PR #36941: Size comparison from 8a0fc4d to a68f2c0 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
a68f2c0
to
386d4b9
Compare
386d4b9
to
f7b8166
Compare
PR #36941: Size comparison from 958c1cb to f7b8166 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36941: Size comparison from 17ad72e to 1f9cd96 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36941: Size comparison from 17ad72e to 291a38f Increases above 0.2%:
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
…mproved Testability (project-chip#36941) * - Creating an overload of DecodeMRPParametersIfPresent that takes SessionParameters as an outparam and does not touch PairingSession class member mRemoteSessionParameters - a utility SetRemoteSessionParameters to be able to set PairingSession class member mRemoteSessionParameters * Making ParseSigma1 static and not dependent on class state * factoring out ParseSigma2 * factor out Parser for decrypted Sigma2 * various cleanup * factor out ParseSigma2Resume * Adding Unit Tests * More Various Cleanup * Factor out ParseSigma3 and ParseSigma3TBEData * Unit Tests for ParseSigma3 and ParseSigma3TBEData * Code Cleanup * Integrating Comments and Adding comments * Increase Coverage of TestSigma1Parsing * Integrating Comments * Integrating comments
Overview:
This PR continues the CASESession refactoring efforts to improve testability and robustness, building on:
Key Changes:
1. Refactoring:
2. Hardening and Fixes:
TBSData2Signature
andTBSData3Signature
.EndOfContainer
TLV elements by ensuringExitContainer
is called after TLV-Reading containers TLV Reading of Containers often missed a call to ExitContainer #36959.Testing