- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for asBig (0.03 sec)
-
lib/fips140/v1.0.0.zip
*testing.T, shift uint) { n := NewNat().setBig(nb) oldLen := len(n.limbs) n.ShiftRightVarTime(shift) if len(n.limbs) != oldLen { t.Errorf("len(n.limbs) = %d, want %d", len(n.limbs), oldLen) } exp := new(big.Int).Rsh(nb, shift) if n.asBig().Cmp(exp) != 0 { t.Errorf("%v != %v", n.asBig(), exp) } } t.Run(fmt.Sprint(shift-1), func(t *testing.T) { testShift(t, shift-1) }) t.Run(fmt.Sprint(shift), func(t *testing.T) { testShift(t, shift) }) t.Run(fmt.Sprint(shift+1), func(t *testing.T) { testShift(t, shift+1)...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)