ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

aes64ks2

T1 riscv crypto insn
AES Key Schedule Instruction 2
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zknd, Zkne, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZknd, Zkne, Zkt-DIT

Summary

This instruction implements the additional XOR'ing of key words as part of the AES block cipher Key Schedule.

Syntax / Encoding

aes64ks2 xd, xs1, xs2 | 0111111xxxxxxxxxx000xxxxx0110011 (mask=0xfe00707f match=0x7e000033)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0111111xxxxxxxxxx000xxxxx01100110xfe00707f / 0x7e000033

Operands

NameDescription
xs2bits [24:20]
xs1bits [19:15]
xdbits [11:7]