equal
deleted
inserted
replaced
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(); |