- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for shiftLimbs (0.09 seconds)
-
lib/fips140/v1.0.0-c2097c7c.zip
announced length of x is unchanged. // //go:norace func (x *Nat) ShiftRightVarTime(n uint) *Nat { // Eliminate bounds checks in the loop. size := len(x.limbs) xLimbs := x.limbs[:size] shift := int(n % _W) shiftLimbs := int(n / _W) var shiftedLimbs []uint if shiftLimbs < size { shiftedLimbs = xLimbs[shiftLimbs:] } for i := range xLimbs { if i >= len(shiftedLimbs) { xLimbs[i] = 0 continue } xLimbs[i] = shiftedLimbs[i] >> shift if i+1 < len(shiftedLimbs) { xLimbs[i] |= shiftedLimbs[i+1] << (_W - shift) } }...
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Sep 25 19:53:19 GMT 2025 - 642.7K bytes - Click Count (0) -
lib/fips140/v1.1.0-rc1.zip
announced length of x is unchanged. // //go:norace func (x *Nat) ShiftRightVarTime(n uint) *Nat { // Eliminate bounds checks in the loop. size := len(x.limbs) xLimbs := x.limbs[:size] shift := int(n % _W) shiftLimbs := int(n / _W) var shiftedLimbs []uint if shiftLimbs < size { shiftedLimbs = xLimbs[shiftLimbs:] } for i := range xLimbs { if i >= len(shiftedLimbs) { xLimbs[i] = 0 continue } xLimbs[i] = shiftedLimbs[i] >> shift if i+1 < len(shiftedLimbs) { xLimbs[i] |= shiftedLimbs[i+1] << (_W - shift) } }...
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Dec 11 16:27:41 GMT 2025 - 663K bytes - Click Count (0)