-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
2.28: Fix AESNI selection #8209
2.28: Fix AESNI selection #8209
Conversation
Signed-off-by: Pengyu Lv <[email protected]>
Signed-off-by: Pengyu Lv <[email protected]>
Signed-off-by: Pengyu Lv <[email protected]>
Signed-off-by: Pengyu Lv <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only two minor issues.
Signed-off-by: Pengyu Lv <[email protected]>
Please correct me if I was wrong, I think building ARM/ARM64 target using MSVC is not officially support, so here are two questions:
|
Just to confirm, (cross) building on X86_64 for ARM64 with default config, on 2.28 I get There is no such issue on |
Signed-off-by: Pengyu Lv <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I've also confirmed that we get NI compiled in with intrinsics (and Padlock support, if enabled) when targeting (Linux) 32-bit (with Note that if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should #8168 not have been closed when this was merged? |
No, that only happens when a pull request is merged into the directory's default branch, which is |
Description
Fix: #8168
This PR does a clean-up of the arch detection and implementation selection macros in
include/mbedtls/aesni.h
, similar to #7384. This would fix the issue when building with MSVC for ARM/ARM64 target ifMBEDTLS_AESNI_C
is not disabled.PR checklist