예제 #1
0
        public void TestIntEncryptionMinPlusTwo()
        {
            int initial        = int.MinValue + 2;
            var encryptedValue = FPEWrapper.EncryptInt(key, tweak, initial);
            var decryptedValue = FPEWrapper.DecryptInt(key, tweak, encryptedValue);

            Assert.AreEqual(initial, decryptedValue);
        }
예제 #2
0
        public void TestIntEncryptionMinusOne()
        {
            int initial        = -1;
            var encryptedValue = FPEWrapper.EncryptInt(key, tweak, initial);
            var decryptedValue = FPEWrapper.DecryptInt(key, tweak, encryptedValue);

            Assert.AreEqual(initial, decryptedValue);
        }
예제 #3
0
 public void TestIntEncryptionMin()
 {
     FPEWrapper.EncryptInt(key, tweak, int.MinValue);
 }
예제 #4
0
 public void TestIntEncryptionMinPlusOne()
 {
     FPEWrapper.EncryptInt(key, tweak, int.MinValue + 1);
 }
예제 #5
0
 public void TestIntEncryptionMaxMinusOne()
 {
     FPEWrapper.EncryptInt(key, tweak, int.MaxValue - 1);
 }