- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestExpand (0.07 sec)
-
lib/fips140/v1.0.0.zip
maxModulus(uint(len(xBytes)*8/_W + 1)) got, err := NewNat().SetBytes(xBytes, m) if err != nil { return false } return got.Equal(natFromBytes(xBytes).ExpandFor(m)) == yes } err := quick.Check(f, &quick.Config{}) if err != nil { t.Error(err) } } func TestExpand(t *testing.T) { sliced := []uint{1, 2, 3, 4} examples := []struct { in []uint n int out []uint }{{ []uint{1, 2}, 4, []uint{1, 2, 0, 0}, }, { sliced[:2], 4, []uint{1, 2, 0, 0}, }, { []uint{1, 2}, 2, []uint{1, 2}, }} for i, tt := range examples {...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)