def cm.join_onto
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModesimport Base
160# the bytes of the blocks bs, in front of rest
161def cm.join_onto(bs: List<&2, CmBlock>, rest: List<&2, U32>) -> List<&2, U32>:
162 match bs:
163 case Nil{}:
164 rest
165 case Con{b, t}:
166 cm.bytes_onto(b, cm.join_onto(t, rest))