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
| 3130 | 2925 | 24 | 2320 | 1915 | 1412 | 117 | 60 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 00 | 11000 | 1 | rnum | rs1 | 001 | rd | 0010011 | ||||||||||||||||||||||||
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.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| rnum | 23:20 | rnum |
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
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
- The RISC-V Instruction Set Manual: src/unpriv/zk.adoc (Zk)
- The RISC-V Instruction Set Manual: src/unpriv/zk.adoc (Zkn)
- The RISC-V Instruction Set Manual: src/unpriv/zk.adoc (Zknd)
- The RISC-V Instruction Set Manual: src/unpriv/zk.adoc (Zkne)
- riscv-unified-db: spec/std/isa/inst/Zkn/aes64ks1i.yaml
- Zk instruction listing
- Zkn instruction listing
- Zknd instruction listing
- Zkne instruction listing