You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
8 months ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
|
||
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||
|
{
|
||
|
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 C { get { return c; } }
|
||
|
public int X0 { get { return x0; } }
|
||
|
public long CL { get { return cL; } }
|
||
|
public long X0L { get { return x0L; } }
|
||
|
|
||
|
public override bool Equals(
|
||
|
object obj)
|
||
|
{
|
||
|
Gost3410ValidationParameters other = obj as Gost3410ValidationParameters;
|
||
|
|
||
|
return other != null
|
||
|
&& other.c == this.c
|
||
|
&& other.x0 == this.x0
|
||
|
&& other.cL == this.cL
|
||
|
&& other.x0L == this.x0L;
|
||
|
}
|
||
|
|
||
|
public override int GetHashCode()
|
||
|
{
|
||
|
return c.GetHashCode() ^ x0.GetHashCode() ^ cL.GetHashCode() ^ x0L.GetHashCode();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|