def cam.s2

bend-osdev-camellia@0.1.0.0 · camellia.bend:56

import bend-osdev-camellia@0.1.0.0/camellia.bend as Camellia
import Base
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L

56# SBOX2[x] = SBOX1[x] <<< 1, SBOX3[x] = SBOX1[x] <<< 7, SBOX4[x] = SBOX1[x <<< 1]
57def cam.s2() -> L.LcTab:
58  L.lc.tab(8n, cam.gen(~(x => cam.rotl8(cam.s1.raw(x), 1n)), 256n, 0))

Uses (5)

Used by (1)