Skip to content

Commit 7cfe78a

Browse files
committed
Add dashes to SHA algorithm names in Encryption.qll
1 parent b8372c2 commit 7cfe78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/security/Encryption.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ string getInsecureAlgorithmRegex() {
270270
string getASecureAlgorithmName() {
271271
result =
272272
[
273-
"RSA", "SHA256", "SHA512", "CCM", "GCM", "AES(?![^a-zA-Z](ECB|CBC/PKCS[57]Padding))",
273+
"RSA", "SHA-?256", "SHA-?512", "CCM", "GCM", "AES(?![^a-zA-Z](ECB|CBC/PKCS[57]Padding))",
274274
"Blowfish", "ECIES"
275275
]
276276
}

0 commit comments

Comments
 (0)