Limit cache to known algorithms
@@ -439,11 +439,16 @@ public boolean hasEncryptionAlgorithm(int encryptionAlgorithm)
case EncryptionAlgorithm.RC2_CBC_40:
case EncryptionAlgorithm.RC4_128:
case EncryptionAlgorithm.RC4_40:
- default:
{
result = false;
break;
}
+
+ default:
+ {
+ // Limit the cache to known algorithms
+ return false;
+ }
}
}
catch (GeneralSecurityException e)
