SHA-224 is almost identical to SHA-256, with differing initial hash values and a truncated output length. This implementation has been verified using the NIST SHA-224 test vectors. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
||
69 | 69 |
|
70 | 70 |
|
71 | 71 |
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
72 | 103 |
|
73 | 104 |
|
74 | 105 |
|
|
||
77 | 108 |
|
78 | 109 |
|
79 | 110 |
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
111 |
|
|
112 |
|
|
89 | 113 |
|
90 | 114 |
|
91 | 115 |
|
|
||
190 | 214 |
|
191 | 215 |
|
192 | 216 |
|
193 |
|
|
217 |
|
|
194 | 218 |
|
195 | 219 |
|
196 | 220 |
|
|
||
213 | 237 |
|
214 | 238 |
|
215 | 239 |
|
216 |
|
|
240 |
|
|
217 | 241 |
|
218 | 242 |
|
219 | 243 |
|
|
||
234 | 258 |
|
235 | 259 |
|
236 | 260 |
|
237 |
|
|
238 |
|
|
261 |
|
|
239 | 262 |
|
240 | 263 |
|
241 | 264 |
|
|
||
160 | 160 |
|
161 | 161 |
|
162 | 162 |
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
|
163 | 170 |
|
164 | 171 |
|
165 | 172 |
|
|
||
58 | 58 |
|
59 | 59 |
|
60 | 60 |
|
61 |
|
|
62 |
|
|
61 | 63 |
|
62 | 64 |
|
63 | 65 |
|
|
||
68 | 70 |
|
69 | 71 |
|
70 | 72 |
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
71 | 82 |
|
83 |
|
|
72 | 84 |
|
73 | 85 |
|
|
||
25 | 25 |
|
26 | 26 |
|
27 | 27 |
|
28 |
|
|
28 |
|
|
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
32 | 32 |
|
33 |
|
|
33 | 34 |
|
34 | 35 |
|
35 | 36 |
|
|
||
61 | 62 |
|
62 | 63 |
|
63 | 64 |
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
64 | 86 |
|
65 |
|
|
87 |
|
|
66 | 88 |
|
67 | 89 |
|
68 | 90 |
|
|
||
71 | 93 |
|
72 | 94 |
|
73 | 95 |
|
96 |
|
|
97 |
|
|
98 |
|
|
74 | 99 |
|
75 | 100 |
|
76 | 101 |
|
77 | 102 |
|
103 |
|
|
104 |
|
|
78 | 105 |
|
79 | 106 |
|
80 |
|
|
107 |
|
|
81 | 108 |
|
82 | 109 |
|
83 | 110 |
|