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

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

2002-09-11 Thread Atul Khare
Thanks for your suggestions Valery. It turns out that Close() internally calls FlushFinalBlock() and so it wasn't an issue. This means that we are still facing the same problem and trying out a different encryption algorithm (RC2) didn't change anything. The strange part about all this is that it

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

2002-09-05 Thread Valery Pryamikov
using salt from the stream, set decryptor's IV to one that you fetched from the stream and decrypt the rest of the stream. -Valery. -Original Message- From: Atul Khare [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 1:34 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOT

[ADVANCED-DOTNET] Decryption weirdness....

2002-09-04 Thread Atul Khare
Hi folks, I have a rather simple class [1] that does TripleDES encryption / decryption and exposes two helper methods EncryptData() and DecryptData(). If EncryptData() and DecryptData() are called from the same program, every thing is hunky dory. However, if the base64 encoded output from the en