- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for fieldReduce (0.16 sec)
-
src/crypto/internal/mlkem768/mlkem768.go
x := uint32(a) * uint32(b) return fieldReduce(x) } // fieldMulSub returns a * (b - c). This operation is fused to save a // fieldReduceOnce after the subtraction. func fieldMulSub(a, b, c fieldElement) fieldElement { x := uint32(a) * uint32(b-c+q) return fieldReduce(x) } // fieldAddMul returns a * b + c * d. This operation is fused to save a // fieldReduceOnce and a fieldReduce.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 28.4K bytes - Viewed (0) -
src/crypto/internal/mlkem768/mlkem768_test.go
"encoding/hex" "errors" "flag" "math/big" "strconv" "testing" "golang.org/x/crypto/sha3" ) func TestFieldReduce(t *testing.T) { for a := uint32(0); a < 2*q*q; a++ { got := fieldReduce(a) exp := fieldElement(a % q) if got != exp { t.Fatalf("reduce(%d) = %d, expected %d", a, got, exp) } } } func TestFieldAdd(t *testing.T) { for a := fieldElement(0); a < q; a++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 15:27:18 UTC 2024 - 10.3K bytes - Viewed (0)