eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/weakCryptographicKey.py

changeset 7628
f904d0eef264
parent 7618
cba5c14bcd5e
child 7923
91e843545d9a
equal deleted inserted replaced
7626:7f643d41464e 7628:f904d0eef264
168 keySize = (context.getCallArgValue('bits') or 168 keySize = (context.getCallArgValue('bits') or
169 context.getCallArgAtPosition(0) or 169 context.getCallArgAtPosition(0) or
170 2048) 170 2048)
171 return _classifyKeySize(reportError, config, keyType, keySize, 171 return _classifyKeySize(reportError, config, keyType, keySize,
172 context.node) 172 context.node)
173 return False
173 174
174 175
175 def checkWeakCryptographicKey(reportError, context, config): 176 def checkWeakCryptographicKey(reportError, context, config):
176 """ 177 """
177 Function to check for weak cryptographic key use. 178 Function to check for weak cryptographic key use.

eric ide

mercurial