← Home

vghsh.vv

Vector add-multiply over GHASH Galois-field

Performs a single iteration of the GHASH algorithm. The current partial hash in vd is added to the cipher text block in vs1, and the sum is multiplied over GF(2^128^) by the hash subkey in vs2. The multiplication is a carry-less multiply of two 128-bit polynomials modulo the GHASH polynomial x^128^ + x^7^ + x^2^ + x + 1. The next partial hash is written to vd.

This instruction has data-independent execution timing.

Assembly format

vghsh.vv vd, vs2, vs1

Encoding

313029282726252423222120191817161514131211109876543210
1011001vs2vs1010vd1110111

Decode variables

VariableBitsWidth
vs2[24:20]5
vs1[19:15]5
vd[11:7]5

No execution pseudocode is available for this instruction.

Defined by

Zvkg

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.