sha1p
SHA1 Parity
SHA1P <Qd>, <Sn>, <Vm>.<T>
SHA1 hash update (Parity function).
Pseudocode Operation
T ← SHA1_Parity(Sn)
Qd ← SHA1_Update_P(Qd, T, Vm)
Example
SHA1P q0, s1, v2.4s.T
Reference
View in Arm A64 ISA Reference ↗
Arm A64 ISA
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0x5E001000 | SHA1P <Qd>, <Sn>, <Vm>.4S | A64 | 01011110 | 00 | 0 | Rm | 0 | 001 | 00 | Rn | Rd |
Description
SHA1 hash update (parity).
Operation
AArch64.CheckFPAdvSIMDEnabled();
bits(128) x = V[d, 128];
bits(32) y = V[n, 32]; // Note: 32 not 128 bits wide
bits(128) w = V[m, 128];
bits(32) t;
for e = 0 to 3
t = SHAparity(x<63:32>, x<95:64>, x<127:96>);
y = y + ROL(x<31:0>, 5) + t + Elem[w, e, 32];
x<63:32> = ROL(x<63:32>, 30);
<y, x> = ROL(y:x, 32);
V[d, 128] = x;