Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testShift (0.61 sec)

  1. lib/fips140/v1.0.0.zip

    []uint{1, 32, 64, 128, 1024 - 128, 1024 - 64, 1024 - 32, 1024 - 1} { testShift := func(t *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,...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top