Webcentive RISC-V Reference

aes64ks1i

AES Key Schedule Instruction 1

Extension
Zk, Zkn, Zknd, Zkne
XLEN
RV64 only
Assembly (riscv-unified-db)
aes64ks1i xd, xs1, rnum
Length
32-bit

Encoding

313029252423201915141211760
00110001rnumrs1001rd0010011

Match 0x31001013, mask 0xff00707f. Source: aes64ks1i rd rs1 rnum 31..30=0 29..25=0b11000 24=1 14..12=0b001 6..0=0x13 in riscv-opcodes/extensions/rv64_zknd.

FieldBitsriscv-opcodes name
rnum23:20rnum
rs119:15rs1
rd11:7rd

Description

This instruction implements the rotation, SubBytes and Round Constant addition steps of the AES block cipher Key Schedule. rnum must be in the range 0x0..0xA. The values 0xB..0xF are reserved.

Description from riscv-unified-db, reformatted.

Specification and related pages