vgmul.vv

Vector multiply over GHASH Galois-field

Multiplies the 128-bit element groups in vd (multiplier) and vs2 (multiplicand) over GF(2128) and writes the product to vd. The multiplication is a carry-less multiply of two 128-bit polynomials modulo the GHASH polynomial x128 + x7 + x2 + x + 1. This is the same as vghsh.vv with a zero cipher text block.

This instruction must have data-independent timing when extension Zkt is enabled.

Assembly format

vgmul.vv vd, vs2

Decode Variables

Bits<5> vs2 = $encoding[24:20];
Bits<5> vd = $encoding[11:7];

Execution

Encoding

svg

Defining extension

Access

M

Always

Containing profiles

  • Mandatory: RVA20S64, RVA20U64, RVA22S64, RVA22U64, RVA23S64, RVA23U64, RVA23p1S64, RVB23S64, RVB23U64, RVB23p1S64

  • Optional: RVB23U64