diff options
author | Adam Young <ayoung@redhat.com> | 2011-12-07 11:02:06 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-12-20 20:39:09 -0500 |
commit | 1a37d6047e0db50d6809f716fc3035af1cb603fa (patch) | |
tree | 0ba12d3e5ea37d4b63a03e4df29b0fc37855dbff /pki/base/util/src/netscape/security/provider/DSA.java | |
parent | 3425098266c4caebcf7dc58612ae5947e791c930 (diff) | |
download | pki-1a37d6047e0db50d6809f716fc3035af1cb603fa.tar.gz pki-1a37d6047e0db50d6809f716fc3035af1cb603fa.tar.xz pki-1a37d6047e0db50d6809f716fc3035af1cb603fa.zip |
Removal of unused private methods
These methods are uncallable.
There might be some discussion about the private default constructores. The Rules of Java are different from C++: If there is any constructor defined, all the other defaults befome uncallable. Thus, the private default constructors are not needed.
https://bugzilla.redhat.com/show_bug.cgi?id=728303
Conflicts:
pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
Diffstat (limited to 'pki/base/util/src/netscape/security/provider/DSA.java')
-rw-r--r-- | pki/base/util/src/netscape/security/provider/DSA.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/pki/base/util/src/netscape/security/provider/DSA.java b/pki/base/util/src/netscape/security/provider/DSA.java index a40bd0295..9fa5b9f6c 100644 --- a/pki/base/util/src/netscape/security/provider/DSA.java +++ b/pki/base/util/src/netscape/security/provider/DSA.java @@ -20,8 +20,6 @@ package netscape.security.provider; import java.io.IOException; import java.io.PrintStream; import java.math.BigInteger; -import java.security.AlgorithmParameters; -import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException; import java.security.InvalidParameterException; import java.security.MessageDigest; @@ -32,8 +30,6 @@ import java.security.SecureRandom; import java.security.Signature; import java.security.SignatureException; import java.security.interfaces.DSAParams; -import java.security.spec.DSAParameterSpec; -import java.security.spec.InvalidParameterSpecException; import netscape.security.util.BigInt; import netscape.security.util.DerInputStream; @@ -143,20 +139,6 @@ public final class DSA extends Signature { setParams(params); } - private void initialize(AlgorithmParameters params) - throws InvalidAlgorithmParameterException { - try { - DSAParameterSpec dsaParamSpec; - dsaParamSpec = (DSAParameterSpec)params.getParameterSpec - (DSAParameterSpec.class); - dataSHA.reset(); - setParams(dsaParamSpec); - } catch (InvalidParameterSpecException e) { - throw new InvalidAlgorithmParameterException - ("Inappropriate parameter"); - } - } - /** * Sign all the data thus far updated. The signature is formatted * according to the Canonical Encoding Rules, returned as a DER @@ -228,10 +210,6 @@ public final class DSA extends Signature { return v.equals(r); } - private void reset() { - dataSHA.reset(); - } - BigInteger generateR(BigInteger p, BigInteger q, BigInteger g, BigInteger k) { BigInteger temp = g.modPow(k, p); @@ -510,12 +488,6 @@ public final class DSA extends Signature { this.presetG = params.getG(); } - private void setParams(DSAParameterSpec params) { - this.presetP = params.getP(); - this.presetQ = params.getQ(); - this.presetG = params.getG(); - } - /** * Update a byte to be signed or verified. * @@ -670,12 +642,6 @@ public final class DSA extends Signature { /* End test vector values */ - private static void debug(Exception e) { - if (debug) { - e.printStackTrace(); - } - } - private static void debug(String s) { if (debug) { System.err.println(s); |