Algorithm 1 SHA-256. |
-
1:
for Compression Function do
-
2:
Message Schedule module (Equation (1))
-
3:
Words are prepared for each round (Equation (2))
-
4:
for First 16 rounds do (Equation (3))
-
5:
Six registers b,c,d,f,g,h are updated with the previous registers
-
6:
K are a set of 64 constant words (Equations (4) and (5))
-
7:
After 64 rounds of operation to
-
8:
if
-
9:
Final 256-bit Hash value is obtained by concatenating 32-bit values
-
10:
end if
-
11:
Hash digest = to
-
12:
end for
-
13:
end for
|