def both

bend-osdev-legacy-ciphers@0.1.0.0 · check.bend:94

import bend-osdev-legacy-ciphers@0.1.0.0/check.bend as Check
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

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

Uses (4)

Used by (6)