Skip to content

[crypto] AES-GCM FI Hardening #27633

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nasahlpa
Copy link
Member

This PR adds additional hardening against FI to AES-GCM. When setting the key security_level > low, the AES operation performed by the AES IP block is checked by recomputing the input.

@nasahlpa nasahlpa added the CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0 label Jul 15, 2025
nasahlpa added 3 commits July 16, 2025 09:23
This commit adds additional hardening against FI to AES-GCM. When
setting the key security_level > low, the AES operation performed
by the AES IP block is checked by recomputing the input.

Signed-off-by: Pascal Nasahl <[email protected]>
Replace kOtcryptoKeySecurityLevelLow with kOtcryptoKeySecurityLevelHigh
to make sure that the AES-GCM FI protection is tested as well. Not testing
security_level low is fine as low is a subset of high.

Signed-off-by: Pascal Nasahl <[email protected]>
By setting kOtcryptoKeySecurityLevelHigh, the CL will use countermeasures
to protect the AES-GCM computation against FI. Enable this protection for
the CL AES-GCM pentesting.

Signed-off-by: Pascal Nasahl <[email protected]>
@nasahlpa nasahlpa force-pushed the aes_gcm_fi_hardening branch from 2d183ad to 6809f47 Compare July 16, 2025 07:23
@nasahlpa nasahlpa requested a review from johannheyszl July 16, 2025 08:45
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.

1 participant