01: package org.bouncycastle.crypto.params;
02:
03: public class GOST3410ValidationParameters {
04: private int x0;
05: private int c;
06: private long x0L;
07: private long cL;
08:
09: public GOST3410ValidationParameters(int x0, int c) {
10: this .x0 = x0;
11: this .c = c;
12: }
13:
14: public GOST3410ValidationParameters(long x0L, long cL) {
15: this .x0L = x0L;
16: this .cL = cL;
17: }
18:
19: public int getC() {
20: return c;
21: }
22:
23: public int getX0() {
24: return x0;
25: }
26:
27: public long getCL() {
28: return cL;
29: }
30:
31: public long getX0L() {
32: return x0L;
33: }
34:
35: public boolean equals(Object o) {
36: if (!(o instanceof GOST3410ValidationParameters)) {
37: return false;
38: }
39:
40: GOST3410ValidationParameters other = (GOST3410ValidationParameters) o;
41:
42: if (other.c != this .c) {
43: return false;
44: }
45:
46: if (other.x0 != this .x0) {
47: return false;
48: }
49:
50: if (other.cL != this .cL) {
51: return false;
52: }
53:
54: if (other.x0L != this .x0L) {
55: return false;
56: }
57:
58: return true;
59: }
60:
61: public int hashCode() {
62: return x0 ^ c ^ (int) x0L ^ (int) (x0L >> 32) ^ (int) cL
63: ^ (int) (cL >> 32);
64: }
65: }
|