def sp.lt6

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

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

194# X0 = X0 xor X1 xor X3 (its own inverse)
195def sp.lt6(s: M.CmBlock) -> M.CmBlock:
196  match s:
197    case M.CmBlock{x0, +x1, x2, +x3}:
198      M.CmBlock{U32.xor(x0, U32.xor(x1, x3)), x1, x2, x3}

Uses (2)

Used by (5)