def aria.sl1

bend-osdev-legacy-ciphers@0.1.0.0 · aria.bend:4391

import bend-osdev-legacy-ciphers@0.1.0.0/aria.bend as Aria
import Base

4391# The substitution layers SL1 (SB1, SB2, SB3, SB4 in turn) and SL2 (SB3,
4392# SB4, SB1, SB2)
4393def aria.sl1(s: LcAriaSt) -> LcAriaSt:
4394  match s:
4395    case LcAriaSt{x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15}:
4396      LcAriaSt{aria.sb1(x0), aria.sb2(x1), aria.sb3(x2), aria.sb4(x3), aria.sb1(x4), aria.sb2(x5), aria.sb3(x6), aria.sb4(x7), aria.sb1(x8), aria.sb2(x9), aria.sb3(x10), aria.sb4(x11), aria.sb1(x12), aria.sb2(x13), aria.sb3(x14), aria.sb4(x15)}

Uses (5)

Used by (5)