def toy_f

bend-osdev-cipher-core@0.1.0.0 · check.bend:53

import bend-osdev-cipher-core@0.1.0.0/check.bend as Check
import Base
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L

53# a toy round function for the Feistel rounds: x + k, then rotated by 7
54def toy_f(k: U32, x: U32) -> U32:
55  L.lc.rotl(U32.add(x, k), 7n)

Uses (3)

Used by (1)