VSHA2CH.VV

Vector SHA-2 Compress High

VSHA2CH.VV vd, vs2, vs1

Performs SHA-256 compression (high 128 bits).

Details

Performs a vectorised SHA cryptographic round operation. Each element group undergoes one step of the cipher algorithm in parallel. See the Zvk vector crypto extension for full semantic details.

Pseudocode Operation

vd = SHA256_Compress_High(vd, vs1, vs2);

Example

VSHA2CH.VV v1, v4, v2

Encoding

Binary Layout
101110
31:26
1
25
vs2
24:20
vs1
19:15
010
14:12
vd
11:7
1010111
6:0
 
Format OPIVV
Opcode 0x57
Extension Zvknha

Operands

  • vd
    State
  • vs2
    Message
  • vs1
    State B