diff options
Diffstat (limited to 'libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/params/DSAValidationParameters.java')
-rw-r--r-- | libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/params/DSAValidationParameters.java | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/params/DSAValidationParameters.java b/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/params/DSAValidationParameters.java deleted file mode 100644 index ca7c6cf67..000000000 --- a/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/params/DSAValidationParameters.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.spongycastle.crypto.params; - -import org.spongycastle.util.Arrays; - -public class DSAValidationParameters -{ - private int usageIndex; - private byte[] seed; - private int counter; - - public DSAValidationParameters( - byte[] seed, - int counter) - { - this(seed, counter, -1); - } - - public DSAValidationParameters( - byte[] seed, - int counter, - int usageIndex) - { - this.seed = seed; - this.counter = counter; - this.usageIndex = usageIndex; - } - - public int getCounter() - { - return counter; - } - - public byte[] getSeed() - { - return seed; - } - - public int getUsageIndex() - { - return usageIndex; - } - - public int hashCode() - { - return counter ^ Arrays.hashCode(seed); - } - - public boolean equals( - Object o) - { - if (!(o instanceof DSAValidationParameters)) - { - return false; - } - - DSAValidationParameters other = (DSAValidationParameters)o; - - if (other.counter != this.counter) - { - return false; - } - - return Arrays.areEqual(this.seed, other.seed); - } -} |