std.crypto.math.rotate_right_u32
Show source codeHide source code
fn pub inline rotate_right_u32(value: Int, amount: Int) -> Int {
to_u32((value >> amount) | (value << (32.wrapping_sub(amount))))
}
fn pub inline static rotate_right_u32(value: Int, amount: Int) -> Int
Rotates a 32-bits unsigned integer to the right.
Panics
This method panics if amount
is greater than 32 or less than zero.