-
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
[BUG] Linux Test Harness Certification Declaration encoding error #26812
[BUG] Linux Test Harness Certification Declaration encoding error #26812
Conversation
Original payload:
Updated payloadAfter removing the extra byte
|
PR #26812: Size comparison from 5d459ce to 6345eed Increases (1 build for nrfconnect)
Decreases (7 builds for bl602, bl702, efr32, esp32, linux, nrfconnect)
Full report (34 builds for bl602, bl702, cc32xx, efr32, esp32, k32w, linux, mbed, nrfconnect, qpg)
|
PR #26812: Size comparison from 9f43988 to c55139b Increases (12 builds for bl602, bl702, cyw30739, psoc6, telink)
Decreases (10 builds for efr32, esp32, linux, nrfconnect, qpg, telink)
Full report (58 builds for bl602, bl702, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #26812: Size comparison from a0fe129 to 084b17d Increases (4 builds for bl602, cc32xx, esp32)
Decreases (7 builds for bl702, cyw30739, efr32, esp32, linux, psoc6)
Full report (50 builds for bl602, bl702, cc13x2_26x2, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg)
|
During internal QA testing related to commissioning the [chip-certification-tool (TH v 2.8.1 - 1.1 Release Build)](https://github.com/CHIP-Specifications/chip-certification-tool/releases/tag/v2.8.1-official) a failure occurred while attempting to verify the Certification Declaration payload using the latest releases of Bouncy Castle. > **11.17.5.5. Attestation Information** > > The certification_declaration field SHALL be the DER-encoded octet string representation of a CMS-formatted certification declaration, as described in Section 6.3, “Certification Declaration”. The [specific exception](https://github.com/bcgit/bc-java/blob/876bd0cf02811282707ddd38e4f0f9212a9f4d1f/core/src/main/java/org/bouncycastle/asn1/ASN1Primitive.java#L46-L49) is thrown while attempting to decode the DER-encoded octet string, due to unexpected bytes remaining after attempting to decode the packet. After extracting the Certification Declaration payload and attempting to perform manual validation using openssl, it was double-confirmed that the payload contained an encoding error. Finally, the Certification Declaration payload was confirmed to have an extra byte originating from the hardcoded test payload. After the extra byte is removed, the payload decoding is successful.
PR #26812: Size comparison from 76ccf9d to f2642c0 Increases (7 builds for bl602, bl702, psoc6, qpg, telink)
Decreases (13 builds for cc13x2_26x2, cc32xx, cyw30739, efr32, linux, psoc6, telink)
Full report (66 builds for bl602, bl702, cc13x2_26x2, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #26812: Size comparison from 76ccf9d to e6c9e8a Increases (7 builds for bl602, psoc6, telink)
Decreases (17 builds for bl702, cc13x4_26x4, cyw30739, efr32, esp32, linux, nrfconnect, psoc6, qpg, telink)
Full report (66 builds for bl602, bl702, cc13x2_26x2, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #26812: Size comparison from 76ccf9d to 322c4ac Increases (23 builds for bl602, bl702, linux, psoc6, qpg, telink)
Decreases (12 builds for bl702, cyw30739, efr32, esp32, linux, telink)
Full report (66 builds for bl602, bl702, cc13x2_26x2, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
Fixes #26811
During internal QA testing related to commissioning the chip-certification-tool (TH v 2.8.1 - 1.1 Release Build) a failure occurred while attempting to verify the Certification Declaration payload using the latest releases of Bouncy Castle.
The specific exception is thrown while attempting to decode the DER-encoded octet string, due to unexpected bytes remaining after attempting to decode the packet. After extracting the Certification Declaration payload and attempting to perform manual validation using openssl, it was double-confirmed that the payload contained an encoding error.
Finally, the Certification Declaration payload was confirmed to have an extra byte originating from the hardcoded test payload. After the extra byte is removed, the payload decoding is successful.