5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.weakCryptographicKey</h1> |
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.weakCryptographicKey</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing checks for weak cryptographic key use. |
11 Module implementing checks for weak cryptographic key use. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
|
21 <table> |
20 <table> |
22 <tr><td>None</td></tr> |
21 <tr><td>None</td></tr> |
23 </table> |
22 </table> |
|
23 |
24 <h3>Functions</h3> |
24 <h3>Functions</h3> |
25 |
|
26 <table> |
25 <table> |
27 |
|
28 <tr> |
26 <tr> |
29 <td><a href="#_classifyKeySize">_classifyKeySize</a></td> |
27 <td><a href="#_classifyKeySize">_classifyKeySize</a></td> |
30 <td>Function to classify a key and report an error if insufficient.</td> |
28 <td>Function to classify a key and report an error if insufficient.</td> |
31 </tr> |
29 </tr> |
32 <tr> |
30 <tr> |
44 <tr> |
42 <tr> |
45 <td><a href="#getChecks">getChecks</a></td> |
43 <td><a href="#getChecks">getChecks</a></td> |
46 <td>Public method to get a dictionary with checks handled by this module.</td> |
44 <td>Public method to get a dictionary with checks handled by this module.</td> |
47 </tr> |
45 </tr> |
48 </table> |
46 </table> |
|
47 |
49 <hr /> |
48 <hr /> |
50 <hr /> |
49 <hr /> |
51 <a NAME="_classifyKeySize" ID="_classifyKeySize"></a> |
50 <a NAME="_classifyKeySize" ID="_classifyKeySize"></a> |
52 <h2>_classifyKeySize</h2> |
51 <h2>_classifyKeySize</h2> |
53 <b>_classifyKeySize</b>(<i>reportError, config, keyType, keySize, node</i>) |
52 <b>_classifyKeySize</b>(<i>reportError, config, keyType, keySize, node</i>) |
54 |
|
55 <p> |
53 <p> |
56 Function to classify a key and report an error if insufficient. |
54 Function to classify a key and report an error if insufficient. |
57 </p> |
55 </p> |
|
56 |
58 <dl> |
57 <dl> |
59 |
58 |
60 <dt><i>reportError</i> (func)</dt> |
59 <dt><i>reportError</i> (func)</dt> |
61 <dd> |
60 <dd> |
62 function to be used to report errors |
61 function to be used to report errors |
94 <hr /> |
93 <hr /> |
95 <hr /> |
94 <hr /> |
96 <a NAME="_weakCryptoKeySizeCryptography" ID="_weakCryptoKeySizeCryptography"></a> |
95 <a NAME="_weakCryptoKeySizeCryptography" ID="_weakCryptoKeySizeCryptography"></a> |
97 <h2>_weakCryptoKeySizeCryptography</h2> |
96 <h2>_weakCryptoKeySizeCryptography</h2> |
98 <b>_weakCryptoKeySizeCryptography</b>(<i>reportError, context, config</i>) |
97 <b>_weakCryptoKeySizeCryptography</b>(<i>reportError, context, config</i>) |
99 |
|
100 <p> |
98 <p> |
101 Function to check 'cryptography.hazmat' for weak key use. |
99 Function to check 'cryptography.hazmat' for weak key use. |
102 </p> |
100 </p> |
|
101 |
103 <dl> |
102 <dl> |
104 |
103 |
105 <dt><i>reportError</i> (func)</dt> |
104 <dt><i>reportError</i> (func)</dt> |
106 <dd> |
105 <dd> |
107 function to be used to report errors |
106 function to be used to report errors |
131 <hr /> |
130 <hr /> |
132 <hr /> |
131 <hr /> |
133 <a NAME="_weakCryptoKeySizePycrypto" ID="_weakCryptoKeySizePycrypto"></a> |
132 <a NAME="_weakCryptoKeySizePycrypto" ID="_weakCryptoKeySizePycrypto"></a> |
134 <h2>_weakCryptoKeySizePycrypto</h2> |
133 <h2>_weakCryptoKeySizePycrypto</h2> |
135 <b>_weakCryptoKeySizePycrypto</b>(<i>reportError, context, config</i>) |
134 <b>_weakCryptoKeySizePycrypto</b>(<i>reportError, context, config</i>) |
136 |
|
137 <p> |
135 <p> |
138 Function to check 'pycrypto' for weak key use. |
136 Function to check 'pycrypto' for weak key use. |
139 </p> |
137 </p> |
|
138 |
140 <dl> |
139 <dl> |
141 |
140 |
142 <dt><i>reportError</i> (func)</dt> |
141 <dt><i>reportError</i> (func)</dt> |
143 <dd> |
142 <dd> |
144 function to be used to report errors |
143 function to be used to report errors |
168 <hr /> |
167 <hr /> |
169 <hr /> |
168 <hr /> |
170 <a NAME="checkWeakCryptographicKey" ID="checkWeakCryptographicKey"></a> |
169 <a NAME="checkWeakCryptographicKey" ID="checkWeakCryptographicKey"></a> |
171 <h2>checkWeakCryptographicKey</h2> |
170 <h2>checkWeakCryptographicKey</h2> |
172 <b>checkWeakCryptographicKey</b>(<i>reportError, context, config</i>) |
171 <b>checkWeakCryptographicKey</b>(<i>reportError, context, config</i>) |
173 |
|
174 <p> |
172 <p> |
175 Function to check for weak cryptographic key use. |
173 Function to check for weak cryptographic key use. |
176 </p> |
174 </p> |
|
175 |
177 <dl> |
176 <dl> |
178 |
177 |
179 <dt><i>reportError</i> (func)</dt> |
178 <dt><i>reportError</i> (func)</dt> |
180 <dd> |
179 <dd> |
181 function to be used to report errors |
180 function to be used to report errors |