vgmul.vv
Vector multiply over GHASH Galois-field
- Extension
- Zvkg
- XLEN
- RV32 and RV64
- Assembly (riscv-unified-db)
vgmul.vv vd, vs2- Length
- 32-bit
Encoding
| 3126 | 25 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 101000 | 1 | vs2 | 10001 | 010 | vd | 1110111 | |||||||||||||||||||||||||
Match 0xa208a077, mask 0xfe0ff07f. Source: vgmul.vv 31..26=0x28 25=1 vs2 19..15=0x11 14..12=0x2 vd 6..0=0x77 in riscv-opcodes/extensions/rv_zvkg.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| vs2 | 24:20 | vs2 |
| vd | 11:7 | vd |
Description
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.
Description from riscv-unified-db, reformatted.