Parcourir la source

2006-09-07 Atsushi Enomoto <[email protected]>

	* EncryptedXml.cs : DecryptData() should not pass block size to
	  Transform() as the index.


svn path=/trunk/mcs/; revision=65071
Atsushi Eno il y a 19 ans
Parent
commit
bab5d554e1

+ 5 - 0
mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog

@@ -1,3 +1,8 @@
+2006-09-07  Atsushi Enomoto  <[email protected]>
+
+	* EncryptedXml.cs : DecryptData() should not pass block size to
+	  Transform() as the index.
+
 2006-09-06  Atsushi Enomoto  <[email protected]>
 
 	* CipherReference.cs, EncryptedReference.cs : unify duplicate code.

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Xml/EncryptedXml.cs

@@ -141,7 +141,7 @@ namespace System.Security.Cryptography.Xml {
 
 		public byte[] DecryptData (EncryptedData encryptedData, SymmetricAlgorithm symAlg)
 		{
-			return Transform (encryptedData.CipherData.CipherValue, symAlg.CreateDecryptor (), symAlg.BlockSize / 8);
+			return Transform (encryptedData.CipherData.CipherValue, symAlg.CreateDecryptor (), 0);
 		}
 
 		public void DecryptDocument ()