Skip to content

Commit

Permalink
Port map to canonical (4a980373f96b68a4237c7959918d224cd4062c37)
Browse files Browse the repository at this point in the history
As pointed out by Vincent Hwang in mupq/pqm4#369.
  • Loading branch information
mkannwischer committed Dec 6, 2024
1 parent 0630d11 commit d2c5451
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crypto_kem/ml-kem-512/m4fspeed/poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ void poly_tobytes(unsigned char *r, poly *a) {
int i;
uint16_t t0, t1;

poly_reduce(a);
poly_reduce(a);

for (i = 0; i < KYBER_N / 2; i++) {
Expand Down
1 change: 1 addition & 0 deletions crypto_kem/ml-kem-512/m4fstack/poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ void poly_tobytes(unsigned char *r, poly *a) {
int i;
uint16_t t0, t1;

poly_reduce(a);
poly_reduce(a);

for (i = 0; i < KYBER_N / 2; i++) {
Expand Down
1 change: 1 addition & 0 deletions crypto_kem/ml-kem-768/m4fspeed/poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ void poly_tobytes(unsigned char *r, poly *a) {
int i;
uint16_t t0, t1;

poly_reduce(a);
poly_reduce(a);

for (i = 0; i < KYBER_N / 2; i++) {
Expand Down
1 change: 1 addition & 0 deletions crypto_kem/ml-kem-768/m4fstack/poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ void poly_tobytes(unsigned char *r, poly *a) {
int i;
uint16_t t0, t1;

poly_reduce(a);
poly_reduce(a);

for (i = 0; i < KYBER_N / 2; i++) {
Expand Down

0 comments on commit d2c5451

Please sign in to comment.