[Midnightbsd-cvs] src: yarrow.c: Fix replay attack in random/urandom

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Nov 29 12:33:00 EST 2007


Log Message:
-----------
Fix replay attack in random/urandom

Tags:
----
RELENG_0_1

Modified Files:
--------------
    src/sys/dev/random:
        yarrow.c (r1.1.1.2 -> r1.1.1.2.2.1)

-------------- next part --------------
Index: yarrow.c
===================================================================
RCS file: /home/cvs/src/sys/dev/random/yarrow.c,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.2.1
diff -L sys/dev/random/yarrow.c -L sys/dev/random/yarrow.c -u -r1.1.1.2 -r1.1.1.2.2.1
--- sys/dev/random/yarrow.c
+++ sys/dev/random/yarrow.c
@@ -298,6 +298,7 @@
 				random_state.outputblocks = 0;
 			}
 			retval += (int)tomove;
+			cur = 0;
 		}
 	}
 	else {


More information about the Midnightbsd-cvs mailing list