forked from aws/aws-lc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AES on PPCBE (32-bit and 64-bit). (aws#1213)
- Only compact_block and uncompact_block functions handled the input and output and were the only ones needing change. - It was deemed unnecessary to create the correct order of key rounds in AES_KEY. The order of each 2 subsequent 32-bit round keys is flipped, but because they get read again into 64-bit words where they are re-ordered correctly, the calculations proceed successfully. - In aes_nohw_compact_block, we opted to reduce the work done in the case of the little-endian build by using macros to restrict the use of load_u64 only in the case of big-endian build, though it would have worked correctly in little-endian build. - Support for PPCBE32 is included.
- Loading branch information
Showing
5 changed files
with
53 additions
and
20 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
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
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
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
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