Don't right shift by 32
authorSam Hartman <hartmans@mit.edu>
Mon, 14 Jan 2002 19:06:37 +0000 (19:06 +0000)
committerSam Hartman <hartmans@mit.edu>
Mon, 14 Jan 2002 19:06:37 +0000 (19:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14108 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/yarrow/ChangeLog
src/lib/crypto/yarrow/yarrow.c

index 441e0046677f24f3b1ff7ec55f391d46873b5cbd..041b9da6f1f32a52b5b2c005252d0063da4a3d0e 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-14  Sam Hartman  <hartmans@mit.edu>
+
+       * 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  <epeisach@mit.edu>
 
        * yarrow.c (krb5int_yarrow_stretch): Delare local variable unsigned. 
index aee91ab68a9ab464d16ee3dceaacbde4fb56e437..9f0dd24ce1fbe5cdf9389b86e8ce58e89756411f 100644 (file)
@@ -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));