diff options
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/crypto/params/CramerShoupPublicKeyParameters.java')
-rw-r--r-- | bcprov/src/main/java/org/bouncycastle/crypto/params/CramerShoupPublicKeyParameters.java | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/crypto/params/CramerShoupPublicKeyParameters.java b/bcprov/src/main/java/org/bouncycastle/crypto/params/CramerShoupPublicKeyParameters.java deleted file mode 100644 index 341149c..0000000 --- a/bcprov/src/main/java/org/bouncycastle/crypto/params/CramerShoupPublicKeyParameters.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.bouncycastle.crypto.params; - -import java.math.BigInteger; - -public class CramerShoupPublicKeyParameters extends CramerShoupKeyParameters { - - private BigInteger c, d, h; // public key group elements - - public CramerShoupPublicKeyParameters(CramerShoupParameters params, BigInteger c, BigInteger d, BigInteger h) { - super(false, params); - - this.c = c; - this.d = d; - this.h = h; - } - - public BigInteger getC() { - return c; - } - - public BigInteger getD() { - return d; - } - - public BigInteger getH() { - return h; - } - - public int hashCode() { - return c.hashCode() ^ d.hashCode() ^ h.hashCode() ^ super.hashCode(); - } - - public boolean equals(Object obj) { - if (!(obj instanceof CramerShoupPublicKeyParameters)) { - return false; - } - - CramerShoupPublicKeyParameters other = (CramerShoupPublicKeyParameters) obj; - - return other.getC().equals(c) && other.getD().equals(d) && other.getH().equals(h) && super.equals(obj); - } -} |