def li.mask_append

bend-osdev-cipher-modes@0.1.0.0 · PROOF.bend:212

import bend-osdev-cipher-modes@0.1.0.0/PROOF.bend as PROOF
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B

212def li.mask_append(+a: List<&2, U32>, +b: List<&2, U32>) -> {B.mask(B.append(a, b)) == B.append(B.mask(a), B.mask(b)) : List<&2, U32>}:
213  match a:
214    case Nil{}:
215      {==}
216    case Con{+h, +t}:
217      %li.mask_append(t, b) : {Con{B.byte(h), B.mask(B.append(t, b))} == Con{B.byte(h), _} : List<&2, U32>}
218      {==}

Uses (5)

Used by (2)