- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRightShift (0.15 sec)
-
lib/fips140/v1.0.0.zip
0xff, 0xff, 0xff, 0x7e}) nb.Lsh(nb, 128) expected := 129 for expected >= 0 { n := NewNat().setBig(nb) if n.TrailingZeroBitsVarT() != uint(expected) { t.Errorf("%d != %d", n.TrailingZeroBitsVarT(), expected) } nb.Rsh(nb, 1) expected-- } } func TestRightShift(t *testing.T) { nb, err := cryptorand.Int(cryptorand.Reader, new(big.Int).Lsh(big.NewInt(1), 1024)) if err != nil { t.Fatal(err) } for _, shift := range []uint{1, 32, 64, 128, 1024 - 128, 1024 - 64, 1024 - 32, 1024 - 1} { testShift := func(t *testing.T,...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)