这是indexloc提供的服务,不要输入任何密码
Skip to content

[crypto] Harden RSA padding selection against FI #27602

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nasahlpa
Copy link
Member

This commit adds checks to the RSA codebase where, based on the selected padding scheme, the control-flow diverges. These checks make sure that a fault cannot allow an attacker to switch to a different padding scheme.

This commit adds checks to the RSA codebase where, based on the
selected padding scheme, the control-flow diverges. These checks
make sure that a fault cannot allow an attacker to switch to a
different padding scheme.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
@nasahlpa nasahlpa requested a review from johannheyszl July 10, 2025 11:48
@johannheyszl
Copy link
Contributor

lgtm

@nasahlpa nasahlpa added the CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0 label Jul 11, 2025
@nasahlpa nasahlpa marked this pull request as ready for review July 17, 2025 17:12
@nasahlpa nasahlpa requested a review from a team as a code owner July 17, 2025 17:12
@nasahlpa nasahlpa requested review from HU90m, cfrantz, felixmiller, sameo, moidx, vogelpi, h-filali and andrea-caforio and removed request for a team and HU90m July 17, 2025 17:12
Copy link
Contributor

@moidx moidx left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants