mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
add draft code to find algo type to replace tainttracking configs
This commit is contained in:
@@ -106,7 +106,7 @@ public class InsufficientKeySizeTest {
|
||||
test(keysize);
|
||||
}
|
||||
|
||||
public void test(int keySize) throws java.security.NoSuchAlgorithmException, java.security.InvalidAlgorithmParameterException {
|
||||
public static void test(int keySize) throws java.security.NoSuchAlgorithmException, java.security.InvalidAlgorithmParameterException {
|
||||
KeyPairGenerator keyPairGen19 = KeyPairGenerator.getInstance("RSA");
|
||||
// BAD: Key size is less than 128
|
||||
keyPairGen19.initialize(keySize); // $ hasInsufficientKeySize
|
||||
|
||||
Reference in New Issue
Block a user