RISC-V ISA Explorer · Cryptography (Zk*)

Zbkb: Crypto Bitmanip

Ratified 2022-02 · version 1.0.1

Rotations, byte packing, and bit reversal used heavily inside cipher and hash implementations.

Typical use: Rotations, pack and byte-reverse for crypto

Specification

Open Zbkb in the explorer

Dependencies

Required by

Instructions (16)

MnemonicNameEncodingMatchMask
ANDNAND with inverted operand0100000----------111-----01100110x400070330xfe00707f
BREV8Reverse bits in bytes011010000111-----101-----00100110x687050130xfff0707f
ORNOR with inverted operand0100000----------110-----01100110x400060330xfe00707f
PACK0000100----------100-----01100110x80040330xfe00707f
PACKH0000100----------111-----01100110x80070330xfe00707f
PACKW0000100----------100-----01110110x800403b0xfe00707f
REV8.RV32011010011000-----101-----00100110x698050130xfff0707f
ROLRotate left (Register)0110000----------001-----01100110x600010330xfe00707f
ROLWRotate left word (Register)0110000----------001-----01110110x6000103b0xfe00707f
RORRotate right (Register)0110000----------101-----01100110x600050330xfe00707f
RORIRotate right (Immediate)011000-----------101-----00100110x600050130xfc00707f
RORIWRotate right word (Immediate)0110000----------101-----00110110x6000501b0xfe00707f
RORWRotate right word (Register)0110000----------101-----01110110x6000503b0xfe00707f
UNZIPBit deinterleave000010001111-----101-----00100110x08f050130xfff0707f
XNORExclusive NOR0100000----------100-----01100110x400040330xfe00707f
ZIPBit interleave000010001111-----001-----00100110x08f010130xfff0707f