public void Test_ZKProtocol_ComputeProof() { int fieldSize = 1024 / 8; int base1 = 3; int base2 = 5; int secret = 7; int result1 = base1 ^ secret; int result2 = base2 ^ secret; byte[] r = null; byte[] c = null; PrimeGenerator pg = new PrimeGenerator(); var prime = pg.GenerateRandomPrime(fieldSize); NonInteractiveChaumPedersen ncp = new NonInteractiveChaumPedersen(prime); ncp.ComputeProofs(BitConverter.GetBytes(base1), BitConverter.GetBytes(base2), BitConverter.GetBytes(result1) , BitConverter.GetBytes(result2), BitConverter.GetBytes(secret), ref r, ref c); Assert.IsNotNull(r); Assert.IsNotNull(c); }