aes64ks2
AES Key Schedule Instruction 2
- Extension
- Zk, Zkn, Zknd, Zkne
- XLEN
- RV64 only
- Assembly (riscv-unified-db)
aes64ks2 xd, xs1, xs2- Length
- 32-bit
Encoding
| 3130 | 2925 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 01 | 11111 | rs2 | rs1 | 000 | rd | 0110011 | |||||||||||||||||||||||||
Match 0x7e000033, mask 0xfe00707f. Source: aes64ks2 rd rs1 rs2 31..30=1 29..25=0b11111 14..12=0b000 6..0=0x33 in riscv-opcodes/extensions/rv64_zknd.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| rs2 | 24:20 | rs2 |
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
Description
This instruction implements the additional XOR'ing of key words as part of the AES block cipher Key Schedule.
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/aes64ks2.yaml
- Zk instruction listing
- Zkn instruction listing
- Zknd instruction listing
- Zkne instruction listing