forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aes/rtl] Optimize GHASH state restoring, align masked and unmasked impl
This commit aligns the unmasked and masked implementation of the GHASH block regarding state saving and restoring. In both cases, the sum of the GHASH state and S are saved. After restoring, S is again subtracted also for the unmasked implementation. This allows saving one 128-bit multiplexer input and it allows exchanging saved states between unmasked and masked implementations which simplifies DV. Signed-off-by: Pirmin Vogel <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters