[Mono-bugs] [Bug 50826][Nor] New - SymmetricTransform.TransformFinalBlock fails on large blocks

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 11 Nov 2003 13:45:14 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by joergr@voelcker.com.

http://bugzilla.ximian.com/show_bug.cgi?id=50826

--- shadow/50826	2003-11-11 13:45:14.000000000 -0500
+++ shadow/50826.tmp.13457	2003-11-11 13:45:14.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 50826
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SymmetricTransform.TransformFinalBlock fails on large blocks
+
+Description of Problem:
+If you use the ICryptoTransform object returned by
+RijndaelManaged.CreateDecryptor to decrypt a large block of data you get an
+exception.
+
+Steps to reproduce the problem:
+1. Get the sample app from http://pages.infinit.net/ctech/crypt.cs (created
+by Sébastien Pouliot http://pages.infinit.net/ctech/)
+2. mcs crypt.cs
+3. mono crypt.exe /k mykey
+4. mono crypt.exe /e crypt.exe mykey
+5. mono crypt.exe /d crypt.exe.enc mykey
+
+Actual Results:
+Unhandled Exception: System.Security.Cryptography.CryptographicException:
+Insufficient output buffer size.
+in <0x00093> System.Security.Cryptography.SymmetricTransform:TransformBlock
+(byte[],int,int,byte[],int)
+in <0x000a1> System.Security.Cryptography.SymmetricTransform:FinalDecrypt
+(byte[],int,int)
+in <0x00074>
+System.Security.Cryptography.SymmetricTransform:TransformFinalBlock
+(byte[],int,int)
+in <0x00153> Motus.Samples.Crypt:Decrypt
+(System.Security.Cryptography.RSA,byte[])
+in <0x0005a> Motus.Samples.Crypt:DecryptFile (string,string)
+in <0x0017d> Motus.Samples.Crypt:Main (string[])
+
+
+Expected Results:
+No error (runs on MS.NET without problems)
+
+How often does this happen? 
+Always.
+
+Additional Information: