ANS X9.82 Part 4 (April 2011 Draft) Section 13.3.4.2 states that "When using the derivation function based on a hash function, the output length of the hash function shall meet or exceed the security strength indicated by the min_entropy parameter in the Get_entropy_input call", although this criteria is missing from the pseudocode provided in the same section. Add a test for this condition, and upgrade from SHA-1 to SHA-256 since SHA-1 has an output length of 160 bits, which is insufficient for generating the (128 * 3/2 = 192) bits required when instantiating the 128-bit strength DRBG. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
14 |
|
14 |
|
15 |
|
15 |
|
16 |
|
16 |
|
17 |
|
|
|
|
17 |
|
|
18 |
|
18 |
|
19 |
|
19 |
|
20 |
|
20 |
|
|
|
||
100 |
|
100 |
|
101 |
|
101 |
|
102 |
|
102 |
|
103 |
|
|
|
|
103 |
|
|
104 |
|
104 |
|
105 |
|
|
|
|
105 |
|
|
106 |
|
106 |
|
107 |
|
|
|
|
107 |
|
|
108 |
|
108 |
|
109 |
|
109 |
|
110 |
|
|
|
|
110 |
|
|
111 |
|
111 |
|
112 |
|
112 |
|
113 |
|
113 |
|
|
|
||
166 |
|
166 |
|
167 |
|
167 |
|
168 |
|
168 |
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
169 |
|
176 |
|
170 |
|
177 |
|
171 |
|
178 |
|