25 <h3>Functions</h3> |
25 <h3>Functions</h3> |
26 |
26 |
27 <table> |
27 <table> |
28 |
28 |
29 <tr> |
29 <tr> |
30 <td><a href="#checkHashlibNew">checkHashlibNew</a></td> |
30 <td><a href="#_hashlibFunc">_hashlibFunc</a></td> |
31 <td>Function to check for use of insecure md4, md5, or sha1 hash functions in hashlib.new().</td> |
31 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new() if 'usedforsecurity' is not set to 'False'.</td> |
|
32 </tr> |
|
33 <tr> |
|
34 <td><a href="#_hashlibNew">_hashlibNew</a></td> |
|
35 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new().</td> |
|
36 </tr> |
|
37 <tr> |
|
38 <td><a href="#checkHashlib">checkHashlib</a></td> |
|
39 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new().</td> |
32 </tr> |
40 </tr> |
33 <tr> |
41 <tr> |
34 <td><a href="#getChecks">getChecks</a></td> |
42 <td><a href="#getChecks">getChecks</a></td> |
35 <td>Public method to get a dictionary with checks handled by this module.</td> |
43 <td>Public method to get a dictionary with checks handled by this module.</td> |
36 </tr> |
44 </tr> |
37 </table> |
45 </table> |
38 <hr /> |
46 <hr /> |
39 <hr /> |
47 <hr /> |
40 <a NAME="checkHashlibNew" ID="checkHashlibNew"></a> |
48 <a NAME="_hashlibFunc" ID="_hashlibFunc"></a> |
41 <h2>checkHashlibNew</h2> |
49 <h2>_hashlibFunc</h2> |
42 <b>checkHashlibNew</b>(<i>reportError, context, config</i>) |
50 <b>_hashlibFunc</b>(<i>reportError, context, config</i>) |
43 |
51 |
44 <p> |
52 <p> |
45 Function to check for use of insecure md4, md5, or sha1 hash functions |
53 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
|
54 in hashlib.new() if 'usedforsecurity' is not set to 'False'. |
|
55 </p> |
|
56 <dl> |
|
57 |
|
58 <dt><i>reportError</i> (func)</dt> |
|
59 <dd> |
|
60 function to be used to report errors |
|
61 </dd> |
|
62 <dt><i>context</i> (SecurityContext)</dt> |
|
63 <dd> |
|
64 security context object |
|
65 </dd> |
|
66 <dt><i>config</i> (dict)</dt> |
|
67 <dd> |
|
68 dictionary with configuration data |
|
69 </dd> |
|
70 </dl> |
|
71 <div align="right"><a href="#top">Up</a></div> |
|
72 <hr /> |
|
73 <hr /> |
|
74 <a NAME="_hashlibNew" ID="_hashlibNew"></a> |
|
75 <h2>_hashlibNew</h2> |
|
76 <b>_hashlibNew</b>(<i>reportError, context, config</i>) |
|
77 |
|
78 <p> |
|
79 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
|
80 in hashlib.new(). |
|
81 </p> |
|
82 <dl> |
|
83 |
|
84 <dt><i>reportError</i> (func)</dt> |
|
85 <dd> |
|
86 function to be used to report errors |
|
87 </dd> |
|
88 <dt><i>context</i> (SecurityContext)</dt> |
|
89 <dd> |
|
90 security context object |
|
91 </dd> |
|
92 <dt><i>config</i> (dict)</dt> |
|
93 <dd> |
|
94 dictionary with configuration data |
|
95 </dd> |
|
96 </dl> |
|
97 <div align="right"><a href="#top">Up</a></div> |
|
98 <hr /> |
|
99 <hr /> |
|
100 <a NAME="checkHashlib" ID="checkHashlib"></a> |
|
101 <h2>checkHashlib</h2> |
|
102 <b>checkHashlib</b>(<i>reportError, context, config</i>) |
|
103 |
|
104 <p> |
|
105 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
46 in hashlib.new(). |
106 in hashlib.new(). |
47 </p> |
107 </p> |
48 <dl> |
108 <dl> |
49 |
109 |
50 <dt><i>reportError</i> (func)</dt> |
110 <dt><i>reportError</i> (func)</dt> |