2004-02-26 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Thu, 26 Feb 2004 13:46:42 +0000 (13:46 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Thu, 26 Feb 2004 13:46:42 +0000 (13:46 -0000)
commit870ea74981bbe3409514732708d0bcc7cd591448
treec9804cd6821d6f890b09f0917a5a9f6a72cb784e
parent1d99d20dda0338c477ff6c5b4923c6496626428f
2004-02-26  Sebastien Pouliot  <sebastien@ximian.com>

* DES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Also ensured that no weak keys
would be generated.
* SymmetricAlgorithm.cs: Return a copy of the key (and IV) so it
doesn't get destroyed when dispose is called (in this case the key
zeroization is the caller's responsability). Match MS implementation.
* TripleDES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Fix bugzilla #54868.

svn path=/trunk/mcs/; revision=23484
mcs/class/corlib/System.Security.Cryptography/ChangeLog
mcs/class/corlib/System.Security.Cryptography/DES.cs
mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs
mcs/class/corlib/System.Security.Cryptography/TripleDES.cs