Webcentive RISC-V Reference

Zkn instructions

NIST Algorithm Suite

This extension is shorthand for the following set of other extensions:

  • Zbkb
  • Zbkc
  • Zbkx
  • Zkne
  • Zknd
  • Zknh

Extension description from riscv-unified-db, reformatted.

Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zk.adoc.

Instructions (45)

MnemonicName (riscv-unified-db)XLEN
aes32dsiAES final round decryption instruction for RV32RV32 only
aes32dsmiAES middle round decryption instruction for RV32RV32 only
aes32esiNo synopsis availableRV32 only
aes32esmiNo synopsis availableRV32 only
aes64dsAES decrypt final roundRV64 only
aes64dsmAES decrypt middle roundRV64 only
aes64esAES encrypt final roundRV64 only
aes64esmAES encrypt middle roundRV64 only
aes64imAES Decrypt KeySchedule MixColumnsRV64 only
aes64ks1iAES Key Schedule Instruction 1RV64 only
aes64ks2AES Key Schedule Instruction 2RV64 only
andnAND with inverted operandRV32 and RV64
brev8Reverse bits in bytesRV32 and RV64
clmulCarry-less multiply (low-part)RV32 and RV64
clmulhCarry-less multiply (high-part)RV32 and RV64
ornOR with inverted operandRV32 and RV64
packNo synopsis availableRV32 and RV64
packhNo synopsis availableRV32 and RV64
packwNo synopsis availableRV64 only
rev8Byte-reverse register (RV64 encoding)RV32 and RV64
rolRotate left (Register)RV32 and RV64
rolwRotate left word (Register)RV64 only
rorRotate right (Register)RV32 and RV64
roriRotate right (Immediate)RV32 and RV64
roriwRotate right word (Immediate)RV64 only
rorwRotate right word (Register)RV64 only
sha256sig0No synopsis availableRV32 and RV64
sha256sig1No synopsis availableRV32 and RV64
sha256sum0No synopsis availableRV32 and RV64
sha256sum1No synopsis availableRV32 and RV64
sha512sig0No synopsis availableRV64 only
sha512sig0hNo synopsis availableRV32 only
sha512sig0lNo synopsis availableRV32 only
sha512sig1No synopsis availableRV64 only
sha512sig1hNo synopsis availableRV32 only
sha512sig1lNo synopsis availableRV32 only
sha512sum0No synopsis availableRV64 only
sha512sum0rNo synopsis availableRV32 only
sha512sum1No synopsis availableRV64 only
sha512sum1rNo synopsis availableRV32 only
unzipBit deinterleaveRV32 only
xnorExclusive NORRV32 and RV64
xperm4Crossbar permutation (nibbles)RV32 and RV64
xperm8Crossbar permutation (bytes)RV32 and RV64
zipBit interleaveRV32 only