def both64

bend-osdev-blowfish@0.1.0.0 · check.bend:36

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

36def both64(~K: Data, ~enc: K -> L.LcBlock64 -> L.LcBlock64, ~dec: K -> L.LcBlock64 -> L.LcBlock64, +k: K, b: L.LcBlock64) -> String:
37  +c = enc(k, b)
38  L.LcBlock64.hex(c) ++ " " ++ L.LcBlock64.hex(dec(k, c))

Uses (4)

Used by (1)