add draft code to find algo type to replace tainttracking configs

This commit is contained in:
Jami Cogswell
2022-10-04 23:21:15 -04:00
parent d3b1a04c13
commit 8ffd2522e7
4 changed files with 26 additions and 2 deletions

View File

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