vsha2ms.vv

Vector SHA-2 message schedule

Performs four rounds of SHA-2 message schedule expansion (SHA-256 when SEW=32; SHA-512 when SEW=64, which requires Zvknhb). Eleven of the last 16 message schedule words, taken from vd (oldest), vs2, and vs1 (most recent), are processed to produce the next four message schedule words, which are written to vd.

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

Assembly format

vsha2ms.vv vd, vs2, vs1

Decode Variables

Bits<5> vs2 = $encoding[24:20];
Bits<5> vs1 = $encoding[19:15];
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: None