Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testShift (1.47 seconds)

  1. lib/fips140/v1.26.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,...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:32 GMT 2026
    - 660.3K bytes
    - Click Count (0)
Back to Top