Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for fieldToMontgomery (0.2 seconds)

  1. lib/fips140/v1.26.0.zip

     % q) if got != exp { t.Fatalf("%d * %d = %d, expected %d", a, b, got, exp) } } } } func TestFieldToMontgomer(t *testing.T) { // fieldToMontgomery should reject inputs ≥ q. inputs := []uint32{ q, q + 1, q + 2, 1<<23 - 1, 1 << 23, q + 1<<23, q + 1<<31, ^uint32(0), } for _, in := range inputs { if _, err := fieldToMontgomery(in); err == nil { t.Fatalf("fieldToMontgomery(%d) did not return an error", in) } } } func TestFieldMulSub(t *testing.T) { for _, a := range interestingValues() { for _, b := range...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:32 GMT 2026
    - 660.3K bytes
    - Click Count (0)
Back to Top