def CmBlock.of_octets
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModesimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
293# a 16-byte string as a block; None for any other length
294def CmBlock.of_octets(o: B.Octets) -> Maybe<&2, CmBlock>:
295 +xs = B.Octets.to_list(o)
296 CmBlock.of_octets.pick(Nat.is_eq(B.len(xs), 16n), xs)