http://bugzilla.novell.com/show_bug.cgi?id=617909
http://bugzilla.novell.com/show_bug.cgi?id=617909#c0 Summary: Mono.Security.Cryptography.MD4Managed.HashCore doesn't deal parameter 'ibStart' properly Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Mono.Security AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4 MD4Managed.cs#108 The call MD4Transform (state, array, i) ignores param 'ibStart'! if (cbSize >= partLen) { //MD4_memcpy((POINTER)&context->buffer[index], (POINTER)input, partLen); Buffer.BlockCopy (array, ibStart, buffer, index, partLen); MD4Transform (state, buffer, 0); for (i = partLen; i + 63 < cbSize; i += 64) { // MD4Transform (context->state, &input[i]); MD4Transform (state, array, i); } index = 0; } Reproducible: Always Steps to Reproduce: 1. 2. 3. Well, HashAlgorithm.HashCore is a protected method. But in an async scenario, I need to write a class that inherits from MD4Managed, and expose methods HashCore and HashFinal. When I try to call HashCore with param ibStart != 0, the issue occurred. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
