-
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.
Update montgomery multiplication to use s2n-bignum's verified scalar …
…bignum functions (#1135) This is only adopted for AArch64 that has narrow multiplication instruction bandwidths. To selectively apply s2n-bignum to Graviton 2, this patch invokes CRYPTO_is_ARMv8_wide_multiplier_capable() and runs the s2n-bignum functions only when wide multipliers are not capable. The performance numbers of RSA signing are as follows. Graviton 2 is used, and `tool/bssl speed -filter RSA` has been used. (Unit: ops/sec). Bits | Operation | baseline AWS-LC | s2n-bignum | speedup vs baseline -- | -- | -- | -- | -- 2048 | RSA sign | 299.3 | 399 | 33.31% | verify (fresh key) | 10736.3 | 15491 | 44.29% 3072 | RSA sign | 95.4 | 113.2 | 18.66% | verify (fresh key) | 4917.7 | 6001.7 | 22.04% 4096 | RSA sign | 41.7 | 63.2 | 51.56% | verify (fresh key) | 2781.6 3451 | 24.07%
- Loading branch information
1 parent
61370c2
commit b706d7e
Showing
6 changed files
with
217 additions
and
18 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
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