[Mono-devel-list] reading stream bug..

Subba Rao Thirumoorthy subbarao at network2.cs.usm.my
Fri Dec 19 08:03:20 EST 2003


> > 
> > this is a problem i encountered
> > my system spec is as follows
> > redhat 7.3 mono 0.29 -->installed from source
> > 
> > i created a program that can encrypt or decrypt a file
> > the file must be in the same directory as the program.
> > the problem is when i decrypt i get the following error
> > 
> > System.Byte[] FinalDecrypt(System.Byte[], Int32, Int32)
> > mscorlib
> > Array index is out of range

problem is that, when reading from the crypt stream to the buffer it reads
> as 1023-1008 while in windows its consistatnt 1023
this is in relative to the IV, it gets padded..
can you please tell me how to solve this problem by reading correctly from
the buffer..??
 

> > in windows using framework 1.4 it works fine..
> > 
> > i attach the source code for my program..
> > btw, just comment/or uncomment accordingly in the main for encrypt or
> > decrypt
> > make sure the file is in the same directory..
> > hope u can give me some pointers..
> > appreciate ur help
> > 
> > regards,
> > Subba Rao Thirumoorthy
> > Network Research Group
> > University of Malaysia
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Falls.jpg
Type: application/octet-stream
Size: 218490 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031219/a2fdcab1/attachment.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Form1.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031219/a2fdcab1/attachment.pl 


More information about the Mono-devel-list mailing list