-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
317 additions
and
348 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
Figure-of-merit only; no particular care has been taken to disable turbo-boost etc. | ||
Note that constant-time restrictions significantly impact performance. | ||
Note that constant-time restrictions on the implementation do impact performance. | ||
|
||
Performance optimizations will quickly follow the next update to FIPS 203. | ||
Near-obvious uplift can be had with more careful modular multiplication & addition, | ||
then fewer reductions. Also, 'u16' arithmetic has a performance penalty. | ||
Additional performance optimizations will follow the next update to FIPS 203. | ||
Near-obvious uplift can be had with more careful modular multiplication & addition | ||
using fewer reductions. Also, 'u16' arithmetic has a performance penalty. | ||
|
||
~~~ | ||
April 1, 2024 | ||
April 13, 2024 | ||
Intel® Core™ i7-7700K CPU @ 4.20GHz × 8 | ||
$ RUSTFLAGS="-C target-cpu=native" cargo bench | ||
ml_kem_512 KeyGen time: [52.346 µs 52.370 µs 52.386 µs] | ||
ml_kem_768 KeyGen time: [90.119 µs 90.518 µs 91.110 µs] | ||
ml_kem_1024 KeyGen time: [140.77 µs 140.96 µs 141.13 µs] | ||
ml_kem_512 KeyGen time: [28.157 µs 28.164 µs 28.172 µs] | ||
ml_kem_768 KeyGen time: [47.946 µs 47.963 µs 47.985 µs] | ||
ml_kem_1024 KeyGen time: [74.143 µs 74.152 µs 74.162 µs] | ||
ml_kem_512 Encaps time: [66.662 µs 66.938 µs 67.355 µs] | ||
ml_kem_768 Encaps time: [107.48 µs 107.54 µs 107.62 µs] | ||
ml_kem_1024 Encaps time: [156.71 µs 156.93 µs 157.19 µs] | ||
ml_kem_512 Encaps time: [28.580 µs 28.584 µs 28.588 µs] | ||
ml_kem_768 Encaps time: [45.487 µs 45.512 µs 45.542 µs] | ||
ml_kem_1024 Encaps time: [67.062 µs 67.144 µs 67.252 µs] | ||
ml_kem_512 Decaps time: [94.679 µs 94.720 µs 94.749 µs] | ||
ml_kem_768 Decaps time: [150.44 µs 151.12 µs 152.29 µs] | ||
ml_kem_1024 Decaps time: [213.44 µs 214.01 µs 214.65 µs] | ||
ml_kem_512 Decaps time: [40.099 µs 40.111 µs 40.123 µs] | ||
ml_kem_768 Decaps time: [61.509 µs 61.532 µs 61.558 µs] | ||
ml_kem_1024 Decaps time: [91.470 µs 91.606 µs 91.744 µs] | ||
~~~ |
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
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
Oops, something went wrong.