Esempio n. 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);
        }
Esempio n. 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);
        }