[Mono-bugs] [Bug 672488] New: ICryptoTransform created by DESCryptoServiceProvider.CreateEncryptor not reusable.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 16 06:42:05 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=672488

https://bugzilla.novell.com/show_bug.cgi?id=672488#c0


           Summary: ICryptoTransform created by
                    DESCryptoServiceProvider.CreateEncryptor not reusable.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: vlad.dimitrov at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=414397)
 --> (http://bugzilla.novell.com/attachment.cgi?id=414397)
Test case

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13

When DESCryptoServiceProvider.CreateEncryptor is used to create an encryptor
object in .NET it is reusable and we can use it to successfully encrypt
multiple values.

In Mono we have to create a new instance of the encryptor for every piece of
information that we need to encrypt in order for the values generated to be
valid.

I am attaching a test case. In the test case all the encrypted values are same
when the code is run on .NET. When the code is run on Mono the last value is
different.

Reproducible: Always

Steps to Reproduce:
1. Create a DESCryptoServiceProvider.
2. Create an Encryptor from it.
3. Encrypt a test block using the encryptor to a variable A.
4. Encrypt the same test block using the same encryptor to a variable B.
5. Compare A and B. They should match but they don't.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list