@@ -1553,11 +1553,11 @@ public void AES_CTR_128_Length35_NoPad()
15531553 0x17 , 0xf1 , 0x16 ,
15541554 } ;
15551555
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 ) ;
15571557
15581558 CollectionAssert . AreEqual ( expected , actual ) ;
15591559
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 ) ;
15611561
15621562 CollectionAssert . AreEqual ( input , decrypted ) ;
15631563 }
@@ -1622,11 +1622,11 @@ public void AES_CTR_192_Length16_NoPad()
16221622 0x27 , 0x94 , 0x39 , 0x4c , 0xab , 0x94 , 0xd5 , 0xfe , 0x0a , 0xc4 , 0xf6 , 0x33 , 0x4c , 0x8c , 0xa5 , 0xe1 ,
16231623 } ;
16241624
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 ) ;
16261626
16271627 CollectionAssert . AreEqual ( expected , actual ) ;
16281628
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 ) ;
16301630
16311631 CollectionAssert . AreEqual ( input , decrypted ) ;
16321632 }
@@ -1728,11 +1728,11 @@ public void AES_CTR_256_Length16_NoPad()
17281728 0xc8 , 0x8a , 0x9b , 0xd7 , 0x03 , 0xfa , 0x95 , 0x61 , 0x95 , 0x69 , 0x81 , 0xa8 , 0x2d , 0x0d , 0xfe , 0x4a ,
17291729 } ;
17301730
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 ) ;
17321732
17331733 CollectionAssert . AreEqual ( expected , actual ) ;
17341734
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 ) ;
17361736
17371737 CollectionAssert . AreEqual ( input , decrypted ) ;
17381738 }
@@ -1833,11 +1833,11 @@ public void AES_OFB_128_Length16_NoPad()
18331833 0xf4 , 0x71 , 0xef , 0x7a , 0xa2 , 0xef , 0x90 , 0x25 , 0x18 , 0x3e , 0x24 , 0xc1 , 0x40 , 0xe4 , 0xff , 0xb6 ,
18341834 } ;
18351835
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 ) ;
18371837
18381838 CollectionAssert . AreEqual ( expected , actual ) ;
18391839
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 ) ;
18411841
18421842 CollectionAssert . AreEqual ( input , decrypted ) ;
18431843 }
@@ -1937,11 +1937,11 @@ public void AES_OFB_192_Length16_NoPad()
19371937 0x49 , 0xc5 , 0x2c , 0x55 , 0x4c , 0x74 , 0xb0 , 0x3e , 0xba , 0xd0 , 0xcf , 0xdc , 0xd2 , 0x44 , 0xcb , 0x04 ,
19381938 } ;
19391939
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 ) ;
19411941
19421942 CollectionAssert . AreEqual ( expected , actual ) ;
19431943
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 ) ;
19451945
19461946 CollectionAssert . AreEqual ( input , decrypted ) ;
19471947 }
@@ -2043,11 +2043,11 @@ public void AES_OFB_256_Length16_NoPad()
20432043 0xd4 , 0xef , 0xb1 , 0x5d , 0x7c , 0x7e , 0x36 , 0x89 , 0xd2 , 0x18 , 0xbb , 0x8c , 0x1f , 0x07 , 0x1d , 0x49 ,
20442044 } ;
20452045
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 ) ;
20472047
20482048 CollectionAssert . AreEqual ( expected , actual ) ;
20492049
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 ) ;
20512051
20522052 CollectionAssert . AreEqual ( input , decrypted ) ;
20532053 }
0 commit comments