Re: [ADVANCED-DOTNET] Decryption weirdness....->Workaround

2002-09-12 Thread Atul Khare
On Wed, 11 Sep 2002 10:00:39 -0700, Tarik Soulami <[EMAIL PROTECTED]> wrote: >I am sorry I missed the first part of the discussion. When the decryption fails, what do you get? just garbage bytes or an exception. > >Thanks, >--Tarik > Hi Tarik, I have seen both behaviours -- with RC2 encryption I

Re: [ADVANCED-DOTNET] Decryption weirdness....->Workaround

2002-09-12 Thread Tarik Soulami
This most likely means the IV used during decryption is not the same as the one used during encryption. If you are keeping the IV at the class level as a member; then there is a known bug where we operate on the actual array instead of a copy (this will be fixed in the next release). A work-aro

Re: [ADVANCED-DOTNET] Decryption weirdness....->Workaround

2002-09-11 Thread Tarik Soulami
: Re: [ADVANCED-DOTNET] Decryption weirdness->Workaround After playing around with this a little more, I finally figured out a way to get it to work. Basically, setting the Encrytor.Mode to CipherMode.ECB does the trick. So, do any of you encryption wizards out there know why the ot

Re: [ADVANCED-DOTNET] Decryption weirdness....->Workaround

2002-09-11 Thread Atul Khare
After playing around with this a little more, I finally figured out a way to get it to work. Basically, setting the Encrytor.Mode to CipherMode.ECB does the trick. So, do any of you encryption wizards out there know why the other encryption modes don't work on certain machines? It appears that th