def tea.order

bend-osdev-legacy-ciphers@0.1.0.0 · tea.bend:122

import bend-osdev-legacy-ciphers@0.1.0.0/tea.bend as Tea
import 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

Uses (4)

Used by (2)