def tf.ror4
import bend-osdev-legacy-ciphers@0.1.0.0/twofish.bend as Twofishimport Base
42# a 4-bit value rotated right by one bit
43def tf.ror4(+x: U32) -> U32:
44 U32.and(15, U32.or(U32.shr(x), U32.shln(x, 3n)))
import bend-osdev-legacy-ciphers@0.1.0.0/twofish.bend as Twofishimport Base
42# a 4-bit value rotated right by one bit
43def tf.ror4(+x: U32) -> U32:
44 U32.and(15, U32.or(U32.shr(x), U32.shln(x, 3n)))