php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch hash-tiger.patch for hash related Bug #61291

Patch version 2012-03-05 16:29 UTC

Return to Bug #61291 | Download this patch
Patch Revisions:

Developer: remi

diff -up ext/hash/hash_tiger.c.orig ext/hash/hash_tiger.c
--- ext/hash/hash_tiger.c.orig	2012-03-05 17:17:07.409515086 +0100
+++ ext/hash/hash_tiger.c	2012-03-05 17:17:54.672517207 +0100
@@ -174,7 +174,7 @@ static inline void TigerDigest(unsigned
 	unsigned int i;
 
 	for (i = 0; i < digest_len; ++i) {
-		digest_str[i] = (unsigned char) ((context->state[i/8] >> (8 * (i%8))) & 0xff);
+		digest_str[i] = (unsigned char) ((context->state[i/8] >> (8 * (7-i%8))) & 0xff);
 	}
 }
 
diff -up ext/hash/php_hash_tiger.h.orig ext/hash/php_hash_tiger.h
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 19:01:28 2024 UTC