Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/params/CramerShoupParameters.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/params/CramerShoupParameters.java53
1 files changed, 0 insertions, 53 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/params/CramerShoupParameters.java b/core/src/main/java/org/bouncycastle/crypto/params/CramerShoupParameters.java
deleted file mode 100644
index 24264b6c..00000000
--- a/core/src/main/java/org/bouncycastle/crypto/params/CramerShoupParameters.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package org.bouncycastle.crypto.params;
-
-import java.math.BigInteger;
-
-import org.bouncycastle.crypto.CipherParameters;
-import org.bouncycastle.crypto.Digest;
-
-public class CramerShoupParameters implements CipherParameters {
-
- private BigInteger p; // prime order of G
- private BigInteger g1, g2; // generate G
-
- private Digest H; // hash function
-
- public CramerShoupParameters(BigInteger p, BigInteger g1, BigInteger g2, Digest H) {
- this.p = p;
- this.g1 = g1;
- this.g2 = g2;
- this.H = H;
- }
-
- public boolean equals(Object obj) {
- if (!(obj instanceof DSAParameters)) {
- return false;
- }
-
- CramerShoupParameters pm = (CramerShoupParameters) obj;
-
- return (pm.getP().equals(p) && pm.getG1().equals(g1) && pm.getG2().equals(g2));
- }
-
- public int hashCode() {
- return getP().hashCode() ^ getG1().hashCode() ^ getG2().hashCode();
- }
-
- public BigInteger getG1() {
- return g1;
- }
-
- public BigInteger getG2() {
- return g2;
- }
-
- public BigInteger getP() {
- return p;
- }
-
- public Digest getH() {
- H.reset();
- return H;
- }
-
-}