blob: c2a4fb57a3a4316db83645e402aa243bde004b24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
package org.bouncycastle.crypto.params;
public class GOST3410ValidationParameters
{
private int x0;
private int c;
private long x0L;
private long cL;
public GOST3410ValidationParameters(
int x0,
int c)
{
this.x0 = x0;
this.c = c;
}
public GOST3410ValidationParameters(
long x0L,
long cL)
{
this.x0L = x0L;
this.cL = cL;
}
public int getC()
{
return c;
}
public int getX0()
{
return x0;
}
public long getCL()
{
return cL;
}
public long getX0L()
{
return x0L;
}
public boolean equals(
Object o)
{
if (!(o instanceof GOST3410ValidationParameters))
{
return false;
}
GOST3410ValidationParameters other = (GOST3410ValidationParameters)o;
if (other.c != this.c)
{
return false;
}
if (other.x0 != this.x0)
{
return false;
}
if (other.cL != this.cL)
{
return false;
}
if (other.x0L != this.x0L)
{
return false;
}
return true;
}
public int hashCode()
{
return x0 ^ c ^ (int) x0L ^ (int)(x0L >> 32) ^ (int) cL ^ (int)(cL >> 32);
}
}
|