<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.0" />

Gost3410ValidationParameters

namespace Org.BouncyCastle.Crypto.Parameters { public class Gost3410ValidationParameters { private int x0; private int c; private long x0L; private long cL; public int C => c; public int X0 => x0; public long CL => cL; public long X0L => x0L; 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 override bool Equals(object obj) { Gost3410ValidationParameters gost3410ValidationParameters = obj as Gost3410ValidationParameters; if (gost3410ValidationParameters != null && gost3410ValidationParameters.c == c && gost3410ValidationParameters.x0 == x0 && gost3410ValidationParameters.cL == cL) return gost3410ValidationParameters.x0L == x0L; return false; } public override int GetHashCode() { return c.GetHashCode() ^ x0.GetHashCode() ^ cL.GetHashCode() ^ x0L.GetHashCode(); } } }