We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37f0d5a commit a658334Copy full SHA for a658334
1 file changed
python/ql/test/query-tests/Security/CWE-326/weak_crypto.py
@@ -75,3 +75,16 @@
75
76
DSA.generate(DSA_WEAK)
77
RSA.generate(RSA_WEAK)
78
+
79
+# ------------------------------------------------------------------------------
80
81
+# Through function calls
82
83
+def make_new_rsa_key_weak(bits):
84
+ return RSA.generate(bits) # NOT OK
85
+make_new_rsa_key_weak(RSA_WEAK)
86
87
88
+def make_new_rsa_key_strong(bits):
89
+ return RSA.generate(bits) # OK
90
+make_new_rsa_key_strong(RSA_STRONG)
0 commit comments