def LcCamellia.key128

bend-osdev-camellia@0.1.0.0 · camellia.bend:337

import bend-osdev-camellia@0.1.0.0/camellia.bend as Camellia
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L

337# a key of exactly this size
338def LcCamellia.key128(o: B.Octets) -> Result<&2, &2, L.LcError, LcCamelliaKey>:
339  +xs = B.Octets.to_list(o)
340  cam.key.pick(Nat.is_eq(B.len(xs), 16n), False{}, False{}, xs)

Uses (9)

Used by (0)

No other definition uses this definition.