From 69282ceac5e556903609ef31ecf5fbe5816f5216 Mon Sep 17 00:00:00 2001 From: miod <> Date: Tue, 15 Apr 2014 16:52:50 +0000 Subject: [PATCH] Replace the old OpenSSL PRNG by direct use of arc4random_buf(), keeping the existing RAND interfaces unchanged. All interfaces allowing external feed or seed of the RNG (either from a file or a local entropy gathering daemon) are kept for ABI compatibility, but are no longer do anything. While the OpenSSL PRNG was required 15+ years ago when many systems lacked proper entropy collection, things have evolved and one can reasonably assume it is better to use the kernel (system global) entropy pool rather than trying to build one's own and having to compensate for thread scheduling... Whoever thought that RAND_screen(), feeding the PRNG with the contents of the local workstation's display, under Win32, was a smart idea, ought to be banned from security programming. ok beck@ deraadt@ tedu@ --- src/lib/libcrypto/crypto/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libcrypto/crypto/Makefile b/src/lib/libcrypto/crypto/Makefile index 116a3d4f..26fe1632 100644 --- a/src/lib/libcrypto/crypto/Makefile +++ b/src/lib/libcrypto/crypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2014/04/14 04:27:50 miod Exp $ +# $OpenBSD: Makefile,v 1.6 2014/04/15 16:52:50 miod Exp $ LIB= crypto @@ -220,7 +220,7 @@ SRCS+= pk7_mime.c bio_pk7.c SRCS+= pqueue.c # rand/ -SRCS+= md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c +SRCS+= rc4_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c SRCS+= rand_unix.c # rc2/