[Mono-bugs] [Bug 617909] New: Mono.Security.Cryptography.MD4Managed.HashCore doesn't deal parameter 'ibStart' properly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 28 09:21:10 EDT 2010



           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: spouliot at novell.com
        ReportedBy: stainboyx at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          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


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:

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.

More information about the mono-bugs mailing list