예제 #1
0
 public void SetParityBitsTest()
 {
     byte[] shortKey = { 0x0E, 0x66, 0x49, 0x9E, 0xAD, 0x83, 0x39 };
     byte[] fullKey  = { 0x0E, 0x32, 0x92, 0x32, 0xEA, 0x6D, 0x0D, 0x73 };
     Assert.IsTrue(fullKey.SequenceEqual(des.SetParityBits(shortKey)));
 }