Skip to content
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

[aes/rtl] Correct manual operation mode for GCM #17

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

vogelpi
Copy link
Owner

@vogelpi vogelpi commented Jan 9, 2025

No description provided.

Copy link
Collaborator

@andrea-caforio andrea-caforio left a comment

Choose a reason for hiding this comment

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

Looks sound. I ran the my testbench, which still works. I should at some point add some tests that exercise manual mode.

This commit cleans up the generation of GCM specific start signals
and properly handles manual operation mode for GCM. Previously, some
GCM phases (especially the ones not using the AES cipher core) would
start automatically despite the module being configured in manual
operation mode.

Signed-off-by: Pirmin Vogel <[email protected]>
@vogelpi vogelpi changed the title [aes/rtl] Correct generation of idle signal in manual operation mode [aes/rtl] Correct manual operation mode for GCM Jan 11, 2025
@vogelpi
Copy link
Owner Author

vogelpi commented Jan 11, 2025

@nasahlpa it turns out that some GCM phases (especially the ones not using the AES cipher core but the GHASH block only) would start automatically despite the module being configured in manual operation mode. This should now be fixed. I've tested this with a sequence involving multiple AAD and TEXT blocks as well as the tag generation.

Copy link
Collaborator

@nasahlpa nasahlpa left a comment

Choose a reason for hiding this comment

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

Thanks, now #16 works :-)

@vogelpi vogelpi merged commit 2721e79 into aes-gcm-review Jan 13, 2025
13 of 17 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