src/java.base/share/classes/sun/security/provider/DSA.java
changeset 51508 f99640a44d75
parent 51216 e429a304c97d
child 51986 c1db377f6300
equal deleted inserted replaced
51507:3e3764f8fe36 51508:f99640a44d75
   150             throw new InvalidKeyException("DSA private key lacks parameters");
   150             throw new InvalidKeyException("DSA private key lacks parameters");
   151         }
   151         }
   152 
   152 
   153         // check key size against hash output size for signing
   153         // check key size against hash output size for signing
   154         // skip this check for verification to minimize impact on existing apps
   154         // skip this check for verification to minimize impact on existing apps
   155         if (md.getAlgorithm() != "NullDigest20") {
   155         if (!"NullDigest20".equals(md.getAlgorithm())) {
   156             checkKey(params, md.getDigestLength()*8, md.getAlgorithm());
   156             checkKey(params, md.getDigestLength()*8, md.getAlgorithm());
   157         }
   157         }
   158 
   158 
   159         this.params = params;
   159         this.params = params;
   160         this.presetX = priv.getX();
   160         this.presetX = priv.getX();