From: Sam Hartman Date: Mon, 14 Jan 2002 19:06:37 +0000 (+0000) Subject: Don't right shift by 32 X-Git-Tag: krb5-1.3-alpha1~888 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=65715c0659862b8bb286ba65954da4e3941a3d47;p=krb5.git Don't right shift by 32 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14108 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/yarrow/ChangeLog b/src/lib/crypto/yarrow/ChangeLog index 441e00466..041b9da6f 100644 --- a/src/lib/crypto/yarrow/ChangeLog +++ b/src/lib/crypto/yarrow/ChangeLog @@ -1,3 +1,9 @@ +2002-01-14 Sam Hartman + + * yarrow.c (krb5int_yarrow_reseed): The MS word of the integer + counter going into v_i will always be zero; don't try + right-shifting by 32. + 2001-12-05 Ezra Peisach * yarrow.c (krb5int_yarrow_stretch): Delare local variable unsigned. diff --git a/src/lib/crypto/yarrow/yarrow.c b/src/lib/crypto/yarrow/yarrow.c index aee91ab68..9f0dd24ce 100644 --- a/src/lib/crypto/yarrow/yarrow.c +++ b/src/lib/crypto/yarrow/yarrow.c @@ -668,7 +668,7 @@ int krb5int_yarrow_reseed(Yarrow_CTX* y, int pool) HASH_Init(&hash); HASH_Update(&hash, v_i, sizeof(v_i)); HASH_Update(&hash, v_0, sizeof(v_0)); - big_endian_int32 = make_big_endian32(i >> 32); /* MS word */ + big_endian_int32 = make_big_endian32(0); /* MS word */ HASH_Update(&hash, &big_endian_int32, sizeof(krb5_ui_4)); big_endian_int32 = make_big_endian32(i & 0xFFFFFFFF); /* LS word */ HASH_Update(&hash, &big_endian_int32, sizeof(krb5_ui_4));