VSHA2CH.VV
Vector SHA-2 Compress High
VSHA2CH.VV vd, vs2, vs1
Performs two rounds of SHA-2 compression using the two most significant message words in vs1.
Encoding
Binary Layout
1011101
31:25
vs2
24:20
vs1
19:15
010
14:12
vd
11:7
1110111
6:0
Operands
-
vd
State {c,d,g,h} (input); next state {a,b,e,f} (output) -
vs2
State {a,b,e,f} -
vs1
Message words plus round constants
Example
VSHA2CH.VV v1, v4, v2
Related
More in Zvknha
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Vector SHA-2 two rounds of compression (high). With SEW=32 two rounds of SHA-256 are performed; vs1 supplies the message-schedule words plus round constants (the two most significant words are used), vs2 the current state {a,b,e,f} and vd the state {c,d,g,h}; vd receives the next state {a,b,e,f}.
Operation
vd = SHA2_two_rounds(state_abef = vs2, state_cdgh = vd, W_plus_K = vs1[3:2]);