Exemplo n.º 1
0
        public bool Matches(RSAParameters p2)
        {
            var p1 = parameters;

            return(CompareHelpers.ByteArraysEqual(p1.Modulus, p2.Modulus) &&
                   CompareHelpers.ByteArraysEqual(p1.Exponent, p2.Exponent));
        }
Exemplo n.º 2
0
        public bool Matches(DSAParameters p2)
        {
            var p1 = parameters;

            return(p1.Counter == p2.Counter &&
                   CompareHelpers.ByteArraysEqual(p1.G, p2.G) &&
                   CompareHelpers.ByteArraysEqual(p1.J, p2.J) &&
                   CompareHelpers.ByteArraysEqual(p1.P, p2.P) &&
                   CompareHelpers.ByteArraysEqual(p1.Q, p2.Q) &&
                   CompareHelpers.ByteArraysEqual(p1.X, p2.X) &&
                   CompareHelpers.ByteArraysEqual(p1.Y, p2.Y) &&
                   CompareHelpers.ByteArraysEqual(p1.Seed, p2.Seed));
        }
 public static bool ByteArraysEqual(byte[] a, byte[] b) =>
 CompareHelpers.ByteArraysEqual(a, b);