def tea.order
import bend-osdev-legacy-ciphers@0.1.0.0/tea.bend as Teaimport Base
122# the steps in the chosen byte order: little-endian words are byte-swapped
123# on the way in and out
124def tea.order(le: Bool, os: List<&2, LcTeaOp>) -> List<&2, LcTeaOp>:
125 match le:
126 case True{}:
127 Con{LcTeaBswap{}, tea.append(os, [LcTeaBswap{}])}
128 case False{}:
129 os