Re: [Mono-dev] Correction to System.Security.Cryptography.Rfc2898DeriveBytes.cs

2007-03-22 Thread Sebastien Pouliot
On Thu, 2007-03-15 at 13:09 -0400, Sebastien Pouliot wrote: > On Thu, 2007-03-15 at 09:18 -0700, Roei Erez wrote: > > Hello, > > The method 'private byte[] F (byte[] s, int c, int i)' uses > > BitConverter.GetBytes(int num). > > This usage is machine dependant, which depends on if the machine work

Re: [Mono-dev] Correction to System.Security.Cryptography.Rfc2898DeriveBytes.cs

2007-03-15 Thread Sebastien Pouliot
On Thu, 2007-03-15 at 09:18 -0700, Roei Erez wrote: > Hello, > The method 'private byte[] F (byte[] s, int c, int i)' uses > BitConverter.GetBytes(int num). > This usage is machine dependant, which depends on if the machine works > as big endian or little endian.. > I think, althogh not sure, that

[Mono-dev] Correction to System.Security.Cryptography.Rfc2898DeriveBytes.cs

2007-03-15 Thread Roei Erez
Hello, The method 'private byte[] F (byte[] s, int c, int i)' uses BitConverter.GetBytes(int num). This usage is machine dependant, which depends on if the machine works as big endian or little endian.. I think, althogh not sure, that the better way is to use BitConverterLE.GetBytes(int num) or ca