-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[crypto] Let otcrypto_aes() have up to 3 blocks in flight
Previously, the hot loop inside otcrypto_aes() would only ever have 2 blocks in flight while the underlying driver function aes_update() as well as the hardware allows up to 3 blocks being in flight: - Block x-1 can be retrieved from the data output registers by SW. - Block x is being processed by HW. - Block x+1 can already be provided via the data input registers by SW. Doing this is better for SCA hardening (more concurrency means more background noise) and allows achieving higher throughput. This is related to #20308. This is a cherry pick of commit 8f0f500 to branch earlgrey_es_sival. Signed-off-by: Pirmin Vogel <[email protected]>
- Loading branch information
Showing
1 changed file
with
48 additions
and
21 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