We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9360ae9 commit 1c9a526Copy full SHA for 1c9a526
1 file changed
cpp/ql/lib/semmle/code/cpp/security/Encryption.qll
@@ -64,7 +64,7 @@ predicate isInsecureEncryption(string name) { name.regexpMatch(getInsecureAlgori
64
*/
65
bindingset[name]
66
predicate isEncryptionAdditionalEvidence(string name) {
67
- name.toUpperCase().matches("%" + ["CRYPT", "CODE", "CODING", "CBC", "KEY", "CIPHER", "MAC"] + "%")
+ name.regexpMatch("(?i).*" + ["crypt", "code", "coding", "cbc", "key", "cipher", "mac"] + ".*")
68
}
69
70
/**
0 commit comments