Skip to content

Commit

Permalink
Add note about output range to invNTTs
Browse files Browse the repository at this point in the history
  • Loading branch information
dop-amin committed Apr 9, 2024
1 parent f37cffe commit d5c0d02
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/naive/aarch64/intt_dilithium_1234_5678.s
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@
restore_gprs
.endm

// For comparability reasons, the output range for the coefficients of this
// invNTT code is supposed to match the implementation from PQClean on commit
// ee71d2c823982bfcf54686f3cf1d666f396dc9aa. After the invNTT, the coefficients
// are canonically reduced. The ordering of the coefficients is canonical, also
// matching PQClean.

.data
.p2align 4
roots:
Expand Down
6 changes: 6 additions & 0 deletions examples/naive/aarch64/intt_dilithium_1234_5678_manual_ld4.s
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@
restore_gprs
.endm

// For comparability reasons, the output range for the coefficients of this
// invNTT code is supposed to match the implementation from PQClean on commit
// ee71d2c823982bfcf54686f3cf1d666f396dc9aa. After the invNTT, the coefficients
// are canonically reduced. The ordering of the coefficients is canonical, also
// matching PQClean.

.data
.p2align 4
roots:
Expand Down
6 changes: 6 additions & 0 deletions examples/naive/aarch64/intt_dilithium_123_45678.s
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ xtmp1 .req x11
restore_gprs
.endm

// For comparability reasons, the output range for the coefficients of this
// invNTT code is supposed to match the implementation from PQClean on commit
// ee71d2c823982bfcf54686f3cf1d666f396dc9aa. After the invNTT, the coefficients
// are canonically reduced. The ordering of the coefficients is canonical, also
// matching PQClean.

.data
.p2align 4
roots:
Expand Down
6 changes: 6 additions & 0 deletions examples/naive/aarch64/intt_dilithium_123_45678_manual_ld4.s
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ xtmp1 .req x11
restore_gprs
.endm

// For comparability reasons, the output range for the coefficients of this
// invNTT code is supposed to match the implementation from PQClean on commit
// ee71d2c823982bfcf54686f3cf1d666f396dc9aa. After the invNTT, the coefficients
// are canonically reduced. The ordering of the coefficients is canonical, also
// matching PQClean.

.data
.p2align 4
roots:
Expand Down
6 changes: 6 additions & 0 deletions examples/naive/aarch64/intt_kyber_123_4567.s
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@
restore_gprs
.endm

// For comparability reasons, the output range for the coefficients of this
// invNTT code is supposed to match the implementation from PQClean on commit
// ee71d2c823982bfcf54686f3cf1d666f396dc9aa. After the invNTT, the coefficients
// are NOT canonically reduced. The ordering of the coefficients is canonical,
// also matching PQClean.

.data
.p2align 4
roots:
Expand Down
6 changes: 6 additions & 0 deletions examples/naive/aarch64/intt_kyber_123_4567_manual_ld4.s
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@
restore_gprs
.endm

// For comparability reasons, the output range for the coefficients of this
// invNTT code is supposed to match the implementation from PQClean on commit
// ee71d2c823982bfcf54686f3cf1d666f396dc9aa. After the invNTT, the coefficients
// are NOT canonically reduced. The ordering of the coefficients is canonical,
// also matching PQClean.

.data
.p2align 4
roots:
Expand Down

0 comments on commit d5c0d02

Please sign in to comment.