Beispiel #1
0
        public void TestRandomNonce()
        {
            byte[] randomNonce = CryptTool.RandomNonce();

            //random nonce should be a byte array
            Assert.IsNotNull(randomNonce, "random nonce");

            //with a length of 24
            Assert.AreEqual(randomNonce.Length, ThreemaMessage.NONCEBYTES, "nonce length");
        }