[1981] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

SHA bug in krb 5

daemon@ATHENA.MIT.EDU (Tomi Salo)
Tue Jun 11 10:02:47 1996

Date: Tue, 11 Jun 1996 17:02:24 +0300 (EET DST)
From: Tomi Salo <ttsalo@ssh.fi>
To: krb5-bugs@MIT.EDU

	While installing krb5-beta6, I found a bug in SHS algorithm, 
	file krb5-beta6/src/lib/crypto/sha/shs.c. It does not handle
	little-endianness correctly (it produces always incorrect
	results).

------------- >8 ------- cut here -------- >8 ------------
--- shs.c.old	Tue Jun 11 16:50:52 1996
+++ shs.c	Tue Jun 11 16:50:59 1996
@@ -219,12 +219,12 @@
 
     switch (init) {
     case 0:
+	init=1;
 	cp = (char *) &init;
 	if (*cp == 1) {
 	    init=2;
 	    break;
 	}
-	init=1;
 	/* fall through - MSB */
     case 1:
 	return;
------------- >8 ------- cut here -------- >8 ------------

---
Tomi T. Salo, SSH Communications Security Oy

home help back first fref pref prev next nref lref last post