SHA1M

SHA1 hash update (majority).

It has encodings from the following instruction sets: A32 ( A1 ) and T32 ( T1 ) .

A1

313029282726252423222120191817161514131211109876543210
111100100D10VnVd1100NQM0Vm

A1

SHA1M.32 <Qd>, <Qn>, <Qm>

if ! HaveCryptoExt() then UNDEFINED; if Q != '1' then UNDEFINED; if Vd<0> == '1' || Vn<0> == '1' || Vm<0> == '1' then UNDEFINED; d = UInt(D:Vd); n = UInt(N:Vn); m = UInt(M:Vm);

T1

15141312111098765432101514131211109876543210
111011110D10VnVd1100NQM0Vm

T1

SHA1M.32 <Qd>, <Qn>, <Qm>

if InITBlock() then UNPREDICTABLE; if ! HaveCryptoExt() then UNDEFINED; if Q != '1' then UNDEFINED; if Vd<0> == '1' || Vn<0> == '1' || Vm<0> == '1' then UNDEFINED; d = UInt(D:Vd); n = UInt(N:Vn); m = UInt(M:Vm);

For more information about the constrained unpredictable behavior of this instruction, see Architectural Constraints on UNPREDICTABLE behaviors.

Assembler Symbols

<Qd>

Is the 128-bit name of the SIMD&FP destination register, encoded in the "D:Vd" field as <Qd>*2.

<Qn>

Is the 128-bit name of the first SIMD&FP source register, encoded in the "N:Vn" field as <Qn>*2.

<Qm>

Is the 128-bit name of the second SIMD&FP source register, encoded in the "M:Vm" field as <Qm>*2.

Operation

if ConditionPassed() then EncodingSpecificOperations(); CheckCryptoEnabled32(); X = Q[d>>1]; Y = Q[n>>1]<31:0>; // Note: 32 bits wide W = Q[m>>1]; for e = 0 to 3 t = SHAmajority(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); Q[d>>1] = X;


Internal version only: isa v00_79, pseudocode v34.2 ; Build timestamp: 2017-12-19T15:42

Copyright © 2010-2017 ARM Limited or its affiliates. All rights reserved. This document is Non-Confidential.