Closed ben-marshall closed 5 years ago
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].
crs1
crs2
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]]
Usage: PRINCE, PRESENT, others?
Eventually merged as xc.lut instruction.
xc.lut
An instruction implementing an in-place 4-bit sbox
The concatenation of
crs1
andcrs2
describes the sbox, where the i'th nibble corresponds tosbox[i]
.