Skip to content

Comments

[fi] Update pentest binaries#396

Merged
nasahlpa merged 9 commits intolowRISC:masterfrom
nasahlpa:update_pentest_binaries
Jul 22, 2025
Merged

[fi] Update pentest binaries#396
nasahlpa merged 9 commits intolowRISC:masterfrom
nasahlpa:update_pentest_binaries

Conversation

@nasahlpa
Copy link
Member

This PR updates the pentest binaries to the latest binaries from lowRISC/opentitan#27408.

@nasahlpa
Copy link
Member Author

nasahlpa commented Jun 11, 2025

Once lowRISC/opentitan#27408 is merged, I will rebase the https://github.com/lowRISC/opentitan/tree/ot-sca_cw310 branch, create a tag, and build from there & link the tag in the commit message here in this PR.

@nasahlpa nasahlpa force-pushed the update_pentest_binaries branch from 62e240e to 01ec33f Compare June 11, 2025 09:31
@nasahlpa nasahlpa requested a review from johannheyszl June 11, 2025 09:33
@nasahlpa nasahlpa force-pushed the update_pentest_binaries branch from 01ec33f to 2abfadd Compare June 11, 2025 11:41
@nasahlpa nasahlpa marked this pull request as draft June 11, 2025 16:23
@nasahlpa nasahlpa force-pushed the update_pentest_binaries branch 3 times, most recently from 0c2af73 to ef14b81 Compare June 17, 2025 12:30
@nasahlpa nasahlpa marked this pull request as ready for review June 18, 2025 10:55
@nasahlpa
Copy link
Member Author

The AES CI job will pass again after merging #397. For context, the failing AES SCA job uses the generic bitstream & pentest binary instead of the specific AES bitstream and binary.

Copy link
Collaborator

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one question.

nasahlpa added 9 commits July 22, 2025 08:00
This commit updates the cw310 pentest binaries to the latest
commit (lowRISC/opentitan@c0fece9)
in the ot-sca_cw310 branch.
Build commands used:
```
./bazelisk.sh build //sw/device/tests/penetrationtests/\
	firmware:pen_test_fi_otbn_fpga_cw310_test_rom
./bazelisk.sh build //sw/device/tests/penetrationtests/\
	firmware:pen_test_fi_fpga_cw310_test_rom
./bazelisk.sh build //sw/device/tests/penetrationtests/\
	firmware:pen_test_fi_ibex_fpga_cw310_test_rom
```

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
Update the CW310 bitstream used for the FI experiments to
commit lowRISC/opentitan@c0fece9
of the ot-sca_cw310 branch of OpenTitan.

The following command was used to generate the bitstream:
```
./bazelisk.sh build //hw/bitstream/vivado:fpga_cw310_test_rom
```

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
This commit updates the Init function that is used by all FI commands.
Now, the SRAM readback feature as well as the jittery clock can be
configured. Moreover, in the init function, the device configuration
now is received and stored into the database.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
In the latest pentest framework, the IbexFi tests return a register
file dump back to ot-sca. As the RF dump could be different for
each compilation, filter it. Nevertheless, the RF dump is still
stored into the database for further evaluation.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
As the FI pentest framework changed quite substantially,
this commit updates the golden responses of the tests.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
This commit excludes the "data" field from the FI evaluation
as it contains random data. The field is stored in the database
for further evaluation.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
Streamline the icache and dummy instructions enable/disable
configuration.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
As in the OpenTitan repository the compilation target names for the
pentest binaries changes, this commit adapts them accordingly.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
This commit renames jittery_clock_enable to enable_jittery_clock
to streamline the naming with the other config parameters.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
@nasahlpa nasahlpa force-pushed the update_pentest_binaries branch from ef14b81 to e1290f2 Compare July 22, 2025 06:09
@nasahlpa nasahlpa merged commit c81a42a into lowRISC:master Jul 22, 2025
15 of 18 checks passed
@nasahlpa nasahlpa deleted the update_pentest_binaries branch July 22, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants