--- a/jdk/src/java.base/share/classes/sun/security/provider/AbstractHashDrbg.java Thu May 12 09:49:42 2016 +0800
+++ b/jdk/src/java.base/share/classes/sun/security/provider/AbstractHashDrbg.java Thu May 12 13:06:03 2016 +0800
@@ -39,8 +39,6 @@
private static int alg2strength(String algorithm) {
switch (algorithm.toUpperCase(Locale.ROOT)) {
- case "SHA-1":
- return 128;
case "SHA-224":
case "SHA-512/224":
return 192;
@@ -82,10 +80,6 @@
this.securityStrength = tryStrength;
}
switch (algorithm.toUpperCase(Locale.ROOT)) {
- case "SHA-1":
- this.seedLen = 440 / 8;
- this.outLen = 160 / 8;
- break;
case "SHA-224":
case "SHA-512/224":
this.seedLen = 440 / 8;