@@ -1553,11 +1553,11 @@ public void AES_CTR_128_Length35_NoPad()
1553
1553
0x17 , 0xf1 , 0x16 ,
1554
1554
} ;
1555
1555
1556
- var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . CTR , pkcs7Padding : false ) . Encrypt ( input ) ;
1556
+ var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . CTR , pkcs7Padding : false ) . Encrypt ( input ) ;
1557
1557
1558
1558
CollectionAssert . AreEqual ( expected , actual ) ;
1559
1559
1560
- var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . CTR , pkcs7Padding : false ) . Decrypt ( actual ) ;
1560
+ var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . CTR , pkcs7Padding : false ) . Decrypt ( actual ) ;
1561
1561
1562
1562
CollectionAssert . AreEqual ( input , decrypted ) ;
1563
1563
}
@@ -1622,11 +1622,11 @@ public void AES_CTR_192_Length16_NoPad()
1622
1622
0x27 , 0x94 , 0x39 , 0x4c , 0xab , 0x94 , 0xd5 , 0xfe , 0x0a , 0xc4 , 0xf6 , 0x33 , 0x4c , 0x8c , 0xa5 , 0xe1 ,
1623
1623
} ;
1624
1624
1625
- var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . CTR , pkcs7Padding : false ) . Encrypt ( input ) ;
1625
+ var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . CTR , pkcs7Padding : false ) . Encrypt ( input ) ;
1626
1626
1627
1627
CollectionAssert . AreEqual ( expected , actual ) ;
1628
1628
1629
- var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . CTR , pkcs7Padding : false ) . Decrypt ( actual ) ;
1629
+ var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . CTR , pkcs7Padding : false ) . Decrypt ( actual ) ;
1630
1630
1631
1631
CollectionAssert . AreEqual ( input , decrypted ) ;
1632
1632
}
@@ -1728,11 +1728,11 @@ public void AES_CTR_256_Length16_NoPad()
1728
1728
0xc8 , 0x8a , 0x9b , 0xd7 , 0x03 , 0xfa , 0x95 , 0x61 , 0x95 , 0x69 , 0x81 , 0xa8 , 0x2d , 0x0d , 0xfe , 0x4a ,
1729
1729
} ;
1730
1730
1731
- var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . CTR , pkcs7Padding : false ) . Encrypt ( input ) ;
1731
+ var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . CTR , pkcs7Padding : false ) . Encrypt ( input ) ;
1732
1732
1733
1733
CollectionAssert . AreEqual ( expected , actual ) ;
1734
1734
1735
- var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . CTR , pkcs7Padding : false ) . Decrypt ( actual ) ;
1735
+ var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . CTR , pkcs7Padding : false ) . Decrypt ( actual ) ;
1736
1736
1737
1737
CollectionAssert . AreEqual ( input , decrypted ) ;
1738
1738
}
@@ -1833,11 +1833,11 @@ public void AES_OFB_128_Length16_NoPad()
1833
1833
0xf4 , 0x71 , 0xef , 0x7a , 0xa2 , 0xef , 0x90 , 0x25 , 0x18 , 0x3e , 0x24 , 0xc1 , 0x40 , 0xe4 , 0xff , 0xb6 ,
1834
1834
} ;
1835
1835
1836
- var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . OFB , pkcs7Padding : false ) . Encrypt ( input ) ;
1836
+ var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . OFB , pkcs7Padding : false ) . Encrypt ( input ) ;
1837
1837
1838
1838
CollectionAssert . AreEqual ( expected , actual ) ;
1839
1839
1840
- var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . OFB , pkcs7Padding : false ) . Decrypt ( actual ) ;
1840
+ var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . OFB , pkcs7Padding : false ) . Decrypt ( actual ) ;
1841
1841
1842
1842
CollectionAssert . AreEqual ( input , decrypted ) ;
1843
1843
}
@@ -1937,11 +1937,11 @@ public void AES_OFB_192_Length16_NoPad()
1937
1937
0x49 , 0xc5 , 0x2c , 0x55 , 0x4c , 0x74 , 0xb0 , 0x3e , 0xba , 0xd0 , 0xcf , 0xdc , 0xd2 , 0x44 , 0xcb , 0x04 ,
1938
1938
} ;
1939
1939
1940
- var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . OFB , pkcs7Padding : false ) . Encrypt ( input ) ;
1940
+ var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . OFB , pkcs7Padding : false ) . Encrypt ( input ) ;
1941
1941
1942
1942
CollectionAssert . AreEqual ( expected , actual ) ;
1943
1943
1944
- var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . OFB , pkcs7Padding : false ) . Decrypt ( actual ) ;
1944
+ var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . OFB , pkcs7Padding : false ) . Decrypt ( actual ) ;
1945
1945
1946
1946
CollectionAssert . AreEqual ( input , decrypted ) ;
1947
1947
}
@@ -2043,11 +2043,11 @@ public void AES_OFB_256_Length16_NoPad()
2043
2043
0xd4 , 0xef , 0xb1 , 0x5d , 0x7c , 0x7e , 0x36 , 0x89 , 0xd2 , 0x18 , 0xbb , 0x8c , 0x1f , 0x07 , 0x1d , 0x49 ,
2044
2044
} ;
2045
2045
2046
- var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . OFB , pkcs7Padding : false ) . Encrypt ( input ) ;
2046
+ var actual = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . OFB , pkcs7Padding : false ) . Encrypt ( input ) ;
2047
2047
2048
2048
CollectionAssert . AreEqual ( expected , actual ) ;
2049
2049
2050
- var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , AesCipherMode . OFB , pkcs7Padding : false ) . Decrypt ( actual ) ;
2050
+ var decrypted = new AesCipher ( key , ( byte [ ] ) iv . Clone ( ) , BlockCipherMode . OFB , pkcs7Padding : false ) . Decrypt ( actual ) ;
2051
2051
2052
2052
CollectionAssert . AreEqual ( input , decrypted ) ;
2053
2053
}
0 commit comments