Skip to content
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

Move OPENSSL_armcap changes and aarch64 dispatch tests to 1MU #1124

Merged

Conversation

billbo-yang
Copy link
Contributor

@billbo-yang billbo-yang commented Jul 31, 2023

Issues

Resolves CryptoAlg-1873
Addresses CryptoAlg-1764

Description of changes:

Moves changes from PRs #1093, #1118, and #1045 into the 1MU branch

It also contains d723334, to fix the devicefarm CI failure on the 1MU branch since it hasn't been pulled in yet

Call-outs:

For the dispatch tests, I had to remove tests for capabilities we don't have in the 1MU branch (e.g. lots of the arm GCM stuff)

Testing:

Tests pass locally on aarch64 M1 mac and x86 Ubuntu

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

Bill Yang and others added 3 commits July 31, 2023 14:50
Using registers x6 and x7 is risky because they can be used for input parameters.
Switching the dispatch tests to use x9 and x10 which are corruptible regitsters.
…-bit ARM systems (aws#1045)

* use handle_cpu_env from cpu_aarch64_linux.c to cpu_aarch64_apple.c

* always use OPENSSL_armcap() when detecting hardware capabilities on arm

* refactor duplicated into cpu_aarch64.h/c

* add ifdefs to cpu_aarch64.h/c

* Update comments

Co-authored-by: Nevine Ebeid <66388554+nebeid@users.noreply.github.com>

* adjust line length of comment

* set arm capabilities functions to fillow format of x86 ones

* make rest of the arm capability functions in line with x86 ones

---------

Co-authored-by: Nevine Ebeid <66388554+nebeid@users.noreply.github.com>
Co-authored-by: Bill Yang <wbyang@amazon.com>
@billbo-yang billbo-yang force-pushed the fips-2021-10-20-1MU branch from edaaed0 to 55d988e Compare July 31, 2023 22:09
@billbo-yang billbo-yang marked this pull request as ready for review July 31, 2023 23:23
@billbo-yang billbo-yang requested review from a team as code owners July 31, 2023 23:23
@billbo-yang billbo-yang requested review from dkostic and nebeid July 31, 2023 23:24
@billbo-yang billbo-yang merged commit e4e4720 into aws:fips-2021-10-20-1MU Aug 1, 2023
@billbo-yang billbo-yang deleted the fips-2021-10-20-1MU branch August 2, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants