- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testEquals (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
lib/fips140/v1.26.0.zip
x2, x2sq) } var bytes [32]byte _, err := io.ReadFull(rand.Reader, bytes[:]) if err != nil { t.Fatal(err) } x.SetBytes(bytes[:]) x2.Multiply(&x, &x) x2sq.Square(&x) if x2 != x2sq { t.Fatalf("all ones failed\nmul: %x\nsqr: %x\n", x2, x2sq) } } func TestEqual(t *testing.T) { x := Element{1, 1, 1, 1, 1} y := Element{5, 4, 3, 2, 1} eq := x.Equal(&x) if eq != 1 { t.Errorf("wrong about equality") } eq = x.Equal(&y) if eq != 0 { t.Errorf("wrong about inequality") } } func TestInvert(t *testing.T) { x := Element{1,...
Created: 2026-04-07 11:13 - Last Modified: 2026-01-08 17:58 - 660.3K bytes - Click Count (0)