Repository navigation
Enable legacy AES API to use AESNI or VPAES if available - #11895
Closed
bernd-edlinger wants to merge 2 commits into
Closed
bernd-edlinger wants to merge 2 commits into
bernd-edlinger wants to merge 2 commits into
Conversation
bernd-edlinger
force-pushed
the
enable_aes_legacy_api_asm_support_1
branch
from
May 21, 2020 10:47
b38cb3f to
a99c55e
Compare
Member
Author
|
Travis failure is unrelated. |
Member
Author
When no assembler support is available, we fall back to either the constant time C implementation or the non-constant time C code implementation. This is controlled by -DOPENSSL_AES_CONST_TIME. So this makes the legacy API completely constant time, if OPENSSL_AES_CONST_TIME is defined, otherwise it uses constant time assembler implementations when available, and may fall back to the non-constant time implementation. This works so far only for intel and aarch64 CPUs. [extended tests]
bernd-edlinger
force-pushed
the
enable_aes_legacy_api_asm_support_1
branch
from
May 21, 2020 18:50
a99c55e to
f4f6661
Compare
This makes the legacy API AES_cbc_encrypt outperform the EVP API. [extended tests]
Member
Author
|
With the second commit also the AES_cbc_encrypt API is able to use AESNI or VPAES. EVP API: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When no assembler support is available, we fall back
to either the constant time implementation or the non-constant time
C code implementation.
This is controlled by -DOPENSSL_AES_CONST_TIME.
So this makes the legacy API completely constant time,
if OPENSSL_AES_CONST_TIME is defined, otherwise it uses constant time
assembler implementaions when available, and may fall back to the
non-constant time implementaion.
This works so far only for intel and aarch64 CPUs.
[extended tests]
Checklist