Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shiftLimbs (1.14 sec)

  1. lib/fips140/v1.0.0.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) } }...
    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