def CrMichael.key

bend-osdev-crypto@0.1.0.0 · inst_michael.bend:19

import bend-osdev-crypto@0.1.0.0/inst_michael.bend as InstMichael
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-hashes@0.1.0.0/hashes.bend as Hs
import bend-osdev-hashes@0.1.0.0/michael.bend as MI
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr

19# the key of 8 raw bytes (CrBadKeyLength otherwise)
20def CrMichael.key(o: B.Octets) -> Result<&2, &2, Cr.CrError, Hs.HsW2>:
21  Cr.CrError.lift(~Hs.HsError, ~Hs.HsW2, ~CrMichael.err, MI.HsMichael.key(o))

Uses (8)

Used by (3)