[Mono-list] AES/CFB Stream Cipher Problem

Rodrigo Kumpera kumpera at gmail.com
Thu Jan 3 21:55:48 UTC 2013


Please file a bug in bugzilla.xamarin.com with a test case.




On Tue, Jan 1, 2013 at 11:00 PM, Drew DeVault <sircmpwn at gmail.com> wrote:

> I'm having an issue with Mono that does not appear on Microsoft.NET,
> related to AES/CFB encryption with no padding. Firstly, here's my Mono
> version:
>
> Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2)
> Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.
> www.mono-project.com
>         TLS:           __thread
>         SIGSEGV:       altstack
>         Notifications: epoll
>         Architecture:  amd64
>         Disabled:      none
>         Misc:          softdebug
>         LLVM:          supported, not enabled.
>         GC:            Included Boehm (with typed GC and Parallel Mark)
>
> Secondly, I would like to find a solution that does indeed work on this
> version of Mono, because most of my users are on the same version. The
> problem comes
> from using a CryptoStream with a RijndaelManaged cipher. I have attached a
> proof of concept to the email, along with the results of running it on
> Windows with
> Microsoft.NET and on Linux Mint 12 with Mono.
>
> The AesStream in the example comes from this project:
> https://github.com/SirCmpwn/**Craft.Net/blob/master/Craft.**
> Net/AesStream.cs<https://github.com/SirCmpwn/Craft.Net/blob/master/Craft.Net/AesStream.cs>
>
> In short, on Microsoft.NET, writing to the CryptoStream does indeed
> encrypt the data properly, where on Mono, no data is written, and an
> IndexOutOfBoundsException is thrown when trying to read the encrypted data.
>
> Drew DeVault
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130103/7fa63c7b/attachment.html>


More information about the Mono-list mailing list