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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
