[Mono-list] AES/CFB Stream Cipher Problem

edward.harvey.mono edward.harvey.mono at clevertrove.com
Sun Jan 6 16:27:16 UTC 2013

> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Drew DeVault
> The
> problem comes
> from using a CryptoStream with a RijndaelManaged cipher. 

This might be unrelated, but your subject says AES, and your message body says RijndaelManaged.  AES is based on Rijndael, but AES is not Rijndael.

Most likely you should use AesCryptoServiceProvider or AesManaged instead.  The main difference is that AesCryptoServiceProvider takes more time to startup, but it's faster once it's started.  So you use AesManaged for small blocks of data (a few AES blocks worth) and use AesCryptoServiceProvider for everything else.  Also, supposedly AesCryptoServiceProvider isn't necessarily cross-platform compatible, but I have yet to find the platform that doesn't support it.

The Rijndael classes are mostly provided for historic, legacy, and academic purposes nowadays.

More information about the Mono-list mailing list