mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Use CryptoAlgoSpec rather than hadcoding Cipher.getInstance
This commit is contained in:
@@ -11,8 +11,9 @@
|
||||
*/
|
||||
|
||||
import java
|
||||
import semmle.code.java.security.Encryption
|
||||
import semmle.code.java.security.RsaWithoutOaepQuery
|
||||
|
||||
from MethodAccess ma
|
||||
where rsaWithoutOaepCall(ma)
|
||||
select ma, "This instance of RSA does not use OAEP padding."
|
||||
from CryptoAlgoSpec c
|
||||
where rsaWithoutOaepCall(c)
|
||||
select c, "This instance of RSA does not use OAEP padding."
|
||||
|
||||
Reference in New Issue
Block a user