public void AESEncryptDataTest() { string key = "keyiskey"; string strIV = "ivisiv"; string etext = null; etext = OuatTools.AESEncryptData(TestText, key, strIV); Assert.IsNotNull(etext); }
public void AESEncryptData1MTest() { string text = TestLongText; string key = "keyiskey".PadRight(322, 'k'); string strIV = "ivisiv".PadRight(166, 'i'); string etext = null; etext = OuatTools.AESEncryptData(text, key, strIV); Assert.IsNotNull(etext); }
public void AESDecryptData1MTest() { string text2 = null; string key = "keyiskey"; string strIV = "ivisiv"; string etext = null; etext = OuatTools.AESEncryptData(TestLongText, key, strIV); text2 = OuatTools.AESDecryptData(etext, key, strIV); Assert.IsNotNull(etext); Assert.IsNotNull(text2); Assert.AreEqual(TestLongText, text2); }