def sp.lt3

bend-osdev-legacy-ciphers@0.1.0.0 · serpent.bend:177

import bend-osdev-legacy-ciphers@0.1.0.0/serpent.bend as Serpent
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

177# X1 = X1 xor X0 xor X2 (its own inverse)
178def sp.lt3(s: M.CmBlock) -> M.CmBlock:
179  match s:
180    case M.CmBlock{+x0, x1, +x2, x3}:
181      M.CmBlock{x0, U32.xor(x1, U32.xor(x0, x2)), x2, x3}

Uses (2)

Used by (5)