def both

bend-osdev-camellia@0.1.0.0 · check.bend:28

import bend-osdev-camellia@0.1.0.0/check.bend as Check
import Base
import bend-osdev-mode-core@0.1.0.0/mode_core.bend as M

28def both(~K: Data, ~enc: K -> M.CmBlock -> M.CmBlock, ~dec: K -> M.CmBlock -> M.CmBlock, +k: K, b: M.CmBlock) -> String:
29  +c = enc(k, b)
30  M.CmBlock.hex(c) ++ " " ++ M.CmBlock.hex(dec(k, c))

Uses (4)

Used by (1)