-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
P-384/521 runtime check for s2n-bignum on aarch64 (#983)
Decide in runtime which s2n-bignum functions to call for P-384/521 field arithmetic. This gives us small improvement in the performance of P-384/521 operations on Graviton 3 (and any other non-Apple aarch64 processor). Performance (ops/s) measured on GV 3 c7g.4xlarge instance: ``` Operation | Before | After | Speedup | ---------------------------------------------------- P-384 ECDH | 2975 | 3329 | x1.12 | P-384 ECDSA sign | 8345 | 8871 | x1.06 | P-384 ECDSA verify | 3306 | 3659 | x1.11 | P-521 ECDH | 1603 | 2141 | x1.33 | P-521 ECDSA sign | 3819 | 4466 | x1.17 | P-521 ECDSA verify | 1599 | 2025 | x1.27 | ``` While I'm here, replace calls to `OPENSSL_ia32cap_get()` with corresponding `CRYPTO_is_ABC_capable()` for x86. Co-authored-by: dkostic <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
22 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