Re: Rijndael class, Padding bug?, Ivan Medvedev
From: Greg Fee (gregfee@microsoft.com)
Date: 01/14/03
- Next message: Greg Fee: "Re: Failure to run from network mapped Drives?"
- Previous message: Eli Allen: "Re: Encrypt/decrypt sample for yall (code inside)"
- In reply to: AJoshi: "Rijndael class, Padding bug?, Ivan Medvedev"
- Next in thread: AJoshi: "Re: Rijndael class, Padding bug?, Ivan Medvedev"
- Reply: AJoshi: "Re: Rijndael class, Padding bug?, Ivan Medvedev"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Greg Fee" <gregfee@microsoft.com> Date: Mon, 13 Jan 2003 15:39:44 -0800
You'll need to call TransformFinalBlock for the final block of the
encryption. The streams are nice as they handle of this for you.
"AJoshi" <ajoshi@approva.net> wrote in message
news:#didOsvuCHA.2372@TK2MSFTNGP12...
> I used code similar to the one posted by Ivan on 1/4/2003, except that I
> used byte[] for raw, encrypted and decrypted data. I did not use any
> streams. Something very strange. I used the CreateEncryptor and
> CreateDecryptor methods on the Rijndael class and used the TransformBlock
> methods of the returned ICryptoTransform. Encryption works fine.
Decryption
> works only if you set the Padding property of the Rijndael class to
> Padding.None. Strange.
> Thanks
> A Joshi
>
>
- Next message: Greg Fee: "Re: Failure to run from network mapped Drives?"
- Previous message: Eli Allen: "Re: Encrypt/decrypt sample for yall (code inside)"
- In reply to: AJoshi: "Rijndael class, Padding bug?, Ivan Medvedev"
- Next in thread: AJoshi: "Re: Rijndael class, Padding bug?, Ivan Medvedev"
- Reply: AJoshi: "Re: Rijndael class, Padding bug?, Ivan Medvedev"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|