Skip to content

Conversation

@luismarques
Copy link

No description provided.

Signed-off-by: Luís Marques <luismarques@lowrisc.org>
Copy link

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

This looks correct to me - decrypting block ciphers should apply the inverse of the the P-Box, and then the inverse of the S-box.

As a nit, I think you want the PR title to be

ot_present: fix ot_present_decrypt

or similar to match the convention we've been using in this repo recently.

@AlexJones0
Copy link

For now you can ignore any Earlgrey regression failures on rsa_3072_verify_functest_hardcoded_* by the way, I have a PR to fix this (#251) but that itself is pending on upstream OpenTitan fixes.

@luismarques luismarques changed the title [ot] hw/opentitan: ot_present: fix ot_present_decrypt ot_present: fix ot_present_decrypt Oct 22, 2025
@rivos-eblot
Copy link

LGTM. Have you checked whether the same fix is needed for otptool.py?
If not I'll do it, I do not remember which tool I cross checked with another :-(

@AlexJones0
Copy link

Have you checked whether the same fix is needed for otptool.py?
If not I'll do it, I do not remember which tool I cross checked with another :-(

As far as I can tell otptool.py uses python/qemu/ot/util/present.py which is correct.

@rivos-eblot
Copy link

Have you checked whether the same fix is needed for otptool.py?
If not I'll do it, I do not remember which tool I cross checked with another :-(

As far as I can tell otptool.py uses python/qemu/ot/util/present.py which is correct.

Ok thanks for checking.

@AlexJones0 AlexJones0 merged commit 508a0ea into lowRISC:ot-9.2.0 Oct 22, 2025
7 of 9 checks passed
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.

3 participants