Camellia.LcCamellia.key128: def of bend-osdev-camellia@0.1.0.0 Import: import bend-osdev-camellia@0.1.0.0/camellia.bend as Camellia Lines 337-340 of bend-osdev-camellia@0.1.0.0/camellia.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-camellia@0.1.0.0/camellia.bend&start_line=337&end_line=340 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 # a key of exactly this size def LcCamellia.key128(o: B.Octets) -> Result<&2, &2, L.LcError, LcCamelliaKey>: +xs = B.Octets.to_list(o) cam.key.pick(Nat.is_eq(B.len(xs), 16n), False{}, False{}, xs) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.to_list https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=len https://jend.leeeet.dev/definition.txt?path=bend-osdev-camellia@0.1.0.0/camellia.bend&name=LcCamelliaKey https://jend.leeeet.dev/definition.txt?path=bend-osdev-camellia@0.1.0.0/camellia.bend&name=cam.key.pick https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/cipher_core.bend&name=LcError