Use CryptoAlgoSpec rather than hadcoding Cipher.getInstance

This commit is contained in:
Joe Farebrother
2022-08-05 17:53:55 +01:00
parent 08b77493d2
commit c77b17574a
3 changed files with 12 additions and 11 deletions

View File

@@ -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."