forked from aws/aws-lc
-
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.
ML-KEM encaps key modulus check optimization (aws#1874)
PR aws#1868 implemented the encapsulation key modulus check naively, as specified in FIPS 203 which introduced a significant performance hit to encapsulation. In this change we optimize encoding/decoding to/from bytes functions to reduce the performance regression. For example, encapsulation performance (ops/s) measured on M1 macbook: ``` | Variant | Before aws#1868 | After aws#1868 | After this change | | 512 | 94738 | 68293 | 92494 | | 768 | 58672 | 42083 | 55572 | | 1024 | 38893 | 28536 | 36820 | ```
- Loading branch information
Showing
1 changed file
with
114 additions
and
55 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