An instruction implementing an in-place 4-bit sbox The concatenation of `crs1` and `crs2` describes the sbox, where the i'th nibble corresponds to `sbox[i]`. ``` xc.sbox.4 crd, crs1, crs2 let t = crs1 || crs2 for i in 0..15 let sbox[i] = t[4*i+3 :4*i] for i in 0..15 let crd[4*i+3: 4*i] = sbox[crd[i]] ```
An instruction implementing an in-place 4-bit sbox
The concatenation of
crs1andcrs2describes the sbox, where the i'th nibble corresponds tosbox[i].