def tf.xt

bend-osdev-legacy-ciphers@0.1.0.0 · twofish.bend:86

import bend-osdev-legacy-ciphers@0.1.0.0/twofish.bend as Twofish
import 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))))))

Uses (6)

Used by (1)