def xtea.g

bend-osdev-legacy-ciphers@0.1.0.0 · tea.bend:37

import bend-osdev-legacy-ciphers@0.1.0.0/tea.bend as Tea
import Base

37# XTEA's: (((x << 4) xor (x >> 5)) + x) xor c
38def xtea.g(+x: U32, c: U32) -> U32:
39  U32.xor(U32.add(U32.xor(U32.shln(x, 4n), U32.shrn(x, 5n)), x), c)

Uses (5)

Used by (4)