def toy

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

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

46# the toy cipher: XOR with the key block, its own inverse
47def toy(k: L.LcBlock64, b: L.LcBlock64) -> L.LcBlock64:
48  L.LcBlock64.xor(k, b)

Uses (2)

Used by (2)