Re: C# Rijndael encryption. When decrypting I get junk data in the first block
- From: Fritjolf <Morten.Jacobsen@xxxxxxx>
- Date: Tue, 11 Dec 2007 03:39:39 -0800 (PST)
Marc and Rossum, thank you!
Now it all works like a charm. IV is configured and used - the IV is
made public in a bin file.
And I also tried with another Mode. It then worked without IV.
Also thanx for the explanation about the first corrupted block.
Thanx,
Fritjolf.
On Dec 11, 11:22 am, Fritjolf <Morten.Jacob...@xxxxxxx> wrote:
Hi and thank you very much for your quick response.
No, I didn't set the IV.
Why? I see that the IC must (can) be generated in the encryption
procedure and then that IV must be passed to the decryption procedure.
Then another problem is raised. In addition to sending the encryption
key to a customer, must I also send the IV ???
Another input is that if I have a file smaller than the blocksize
(lets say the file is 6 bytes), I get an error message trying to
decrypt the message telling me that "Padding is invalid and cannot be
removed". I can't understand why...
I will try and set the IV and see what happens...
Thanx,
Fritjolf
On Dec 11, 10:54 am, Marc Gravell <marc.grav...@xxxxxxxxx> wrote:
Are you setting the IV?
Perhaps look at the MSDN example:http://msdn2.microsoft.com/en-us/library/system.security.cryptography...
Marc- Hide quoted text -
- Show quoted text -
.
- References:
- Prev by Date: array of arrays
- Next by Date: Re: array of arrays
- Previous by thread: Re: C# Rijndael encryption. When decrypting I get junk data in the first block
- Next by thread: Re: C# Rijndael encryption. When decrypting I get junk data in the first block
- Index(es):
Relevant Pages
|