+2007-03-28 Sebastien Pouliot <sebastien@ximian.com>
+
+ * RIPEMD160Managed.cs: Fix endian issue (take good code path).
+
2007-03-22 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConfig.cs: Names are case-insensitive only since fx 2.0.
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);
/// <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)