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); }
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"); }