예제 #1
0
        public void DefaultSizes()
        {
            ARC4Managed rc4 = new ARC4Managed();

            rc4.GenerateKey();
            rc4.GenerateIV();
            AssertEquals("Key.Length", 16, rc4.Key.Length);
            AssertEquals("KeySize", 128, rc4.KeySize);
            AssertEquals("IV.Length", 0, rc4.IV.Length);
        }
예제 #2
0
        public void DefaultSizes()
        {
            ARC4Managed rc4 = new ARC4Managed();

            rc4.GenerateKey();
            rc4.GenerateIV();
            Assert.AreEqual(16, rc4.Key.Length, "Key.Length");
            Assert.AreEqual(128, rc4.KeySize, "KeySize");
            Assert.AreEqual(0, rc4.IV.Length, "IV.Length");
        }