Author: spouliot
Date: 2007-03-28 12:51:09 -0500 (Wed, 28 Mar 2007)
New Revision: 75092
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
trunk/mcs/class/corlib/System.Security.Cryptography/RIPEMD160Managed.cs
Log:
2007-03-28 Sebastien Pouliot <[EMAIL PROTECTED]>
* RIPEMD160Managed.cs: Fix endian issue (take good code path).
Modified: trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
2007-03-28 17:49:18 UTC (rev 75091)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
2007-03-28 17:51:09 UTC (rev 75092)
@@ -1,3 +1,7 @@
+2007-03-28 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * RIPEMD160Managed.cs: Fix endian issue (take good code path).
+
2007-03-22 Sebastien Pouliot <[EMAIL PROTECTED]>
* CryptoConfig.cs: Names are case-insensitive only since fx 2.0.
Modified:
trunk/mcs/class/corlib/System.Security.Cryptography/RIPEMD160Managed.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/RIPEMD160Managed.cs
2007-03-28 17:49:18 UTC (rev 75091)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/RIPEMD160Managed.cs
2007-03-28 17:51:09 UTC (rev 75092)
@@ -109,7 +109,7 @@
protected override byte[] HashFinal() {
CompressFinal(_Length);
byte[] hash = new byte[20];
- if (BitConverter.IsLittleEndian) {
+ if (!BitConverter.IsLittleEndian) {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 4; j++) {
hash [i*4+j] =
(byte)(_HashValue [i] >> j*8);
@@ -134,7 +134,7 @@
/// <param name="offset">The offset in the buffer.</param>
private void ProcessBlock (byte[] buffer, int offset)
{
- if (BitConverter.IsLittleEndian) {
+ if (!BitConverter.IsLittleEndian) {
for (int i=0; i < _X.Length; i++) {
_X [i] = (uint)(buffer [offset])
| (((uint)(buffer [offset+1]))
<< 8)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches