public void CryptoScalarmult_Should_Success() { //Arrange Byte[] n = new Byte[TweetNaCl.ScalarmultBytes]; Byte[] p = new Byte[TweetNaCl.ScalarBytes]; Byte[] q = new Byte[TweetNaCl.ScalarmultBytes]; TweetNaCl.RandomBytes(n); TweetNaCl.RandomBytes(p); //Act q = TweetNaCl.CryptoScalarmult(n, p); //Assert Assert.AreEqual(Encoding.ASCII.GetString(q).Length, 32, "wrong size for resulting group element q."); }