dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Security/Crypto


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Security/Cryptography CryptoTestCase.cs,1.9,1.10
Date: Wed, 23 Apr 2003 01:39:53 -0400

Update of 
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Security/Cryptography
In directory 
subversions:/tmp/cvs-serv9550/tests/runtime/System/Security/Cryptography

Modified Files:
        CryptoTestCase.cs 
Log Message:


Minor tweaks to a lot of classes to make them more signature compatible
with .NET Framework SDK 1.1.


Index: CryptoTestCase.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Security/Cryptography/CryptoTestCase.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** CryptoTestCase.cs   29 Nov 2002 03:42:03 -0000      1.9
--- CryptoTestCase.cs   23 Apr 2003 05:39:50 -0000      1.10
***************
*** 112,119 ****
                                        Fail("did not encrypt to the expected 
output");
                                }
!                               if(encryptor is IDisposable)
!                               {
!                                       ((IDisposable)encryptor).Dispose();
!                               }
  
                                // Create a decryptor and run the test 
backwards.
--- 112,116 ----
                                        Fail("did not encrypt to the expected 
output");
                                }
!                               encryptor.Dispose();
  
                                // Create a decryptor and run the test 
backwards.
***************
*** 133,140 ****
                                        Fail("did not decrypt to the original 
plaintext");
                                }
!                               if(decryptor is IDisposable)
!                               {
!                                       ((IDisposable)decryptor).Dispose();
!                               }
                        }
        protected void RunSymmetric(String name, byte[] key,
--- 130,134 ----
                                        Fail("did not decrypt to the original 
plaintext");
                                }
!                               decryptor.Dispose();
                        }
        protected void RunSymmetric(String name, byte[] key,
***************
*** 357,364 ****
                                encryptor.TransformBlock(buf, index, 
alg.BlockSize / 8,
                                                                                
 buf, index);
!                               if(encryptor is IDisposable)
!                               {
!                                       ((IDisposable)encryptor).Dispose();
!                               }
                        }
  
--- 351,355 ----
                                encryptor.TransformBlock(buf, index, 
alg.BlockSize / 8,
                                                                                
 buf, index);
!                               encryptor.Dispose();
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]