[Mono-bugs] [Bug 80439][Nor] New - symmetric decryption fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 3 09:44:17 EST 2007


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 lauren.bedoule at gmail.com.

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

--- shadow/80439	2007-01-03 09:44:17.000000000 -0500
+++ shadow/80439.tmp.29123	2007-01-03 09:44:17.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 80439
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: lauren.bedoule at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: symmetric decryption fails
+
+Description of Problem:
+when decrypting in anything than ECB mode, with padding on (KeepLastBlock
+returns true):
+size of output CAN be equals to size of input minus one block without
+raising an OVERFLOW exception
+
+Steps to reproduce the problem:
+1. CBC mode, default padding
+2. get a DES decryptor and call TransformBlock with output array of length
+56 bytes (instead of 64 bytes)
+
+Actual Results:
+Overflow exception
+
+Expected Results:
+TransformBlock fills whole output array with 56 bytes
+
+Additional Information:
+Replace following lines in method CheckInput of file SymmetricTransform.cs:
+
+if (outputOffset > outputBuffer.Length - inputCount) 
+throw new ArgumentException ("outputBuffer", Locale.GetText ("Overflow"));
+
+by:
+
+if (outputOffset > outputBuffer.Length - inputCount + (KeepLastBlock ?
+BlockSizeByte : 0)) 
+throw new ArgumentException ("outputBuffer", Locale.GetText ("Overflow"));
+
+Hope this help.


More information about the mono-bugs mailing list