def tf.xt
import bend-osdev-legacy-ciphers@0.1.0.0/twofish.bend as Twofishimport Base
86def tf.xt(+a: U32, +poly: U32) -> U32:
87 U32.and(255, U32.xor(U32.shl(a), U32.and(poly, U32.sub(0, U32.and(1, U32.shrn(a, 7n))))))
import bend-osdev-legacy-ciphers@0.1.0.0/twofish.bend as Twofishimport Base
86def tf.xt(+a: U32, +poly: U32) -> U32:
87 U32.and(255, U32.xor(U32.shl(a), U32.and(poly, U32.sub(0, U32.and(1, U32.shrn(a, 7n))))))