Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Fix one last dangling use of arc4randbytes().
details: https://anonhg.NetBSD.org/src/rev/35a2c72a1702
branches: trunk
changeset: 771684:35a2c72a1702
user: tls <tls%NetBSD.org@localhost>
date: Mon Nov 28 15:22:41 2011 +0000
description:
Fix one last dangling use of arc4randbytes().
diffstat:
sys/arch/x86/x86/via_padlock.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r fa89d1e57f9d -r 35a2c72a1702 sys/arch/x86/x86/via_padlock.c
--- a/sys/arch/x86/x86/via_padlock.c Mon Nov 28 14:06:59 2011 +0000
+++ b/sys/arch/x86/x86/via_padlock.c Mon Nov 28 15:22:41 2011 +0000
@@ -1,5 +1,5 @@
/* $OpenBSD: via.c,v 1.8 2006/11/17 07:47:56 tom Exp $ */
-/* $NetBSD: via_padlock.c,v 1.16 2011/11/19 22:51:21 tls Exp $ */
+/* $NetBSD: via_padlock.c,v 1.17 2011/11/28 15:22:41 tls Exp $ */
/*-
* Copyright (c) 2003 Jason Wright
@@ -20,7 +20,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: via_padlock.c,v 1.16 2011/11/19 22:51:21 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: via_padlock.c,v 1.17 2011/11/28 15:22:41 tls Exp $");
#ifdef _KERNEL_OPT
# include "rnd.h"
@@ -40,6 +40,7 @@
#include <sys/mbuf.h>
#include <sys/cpu.h>
#include <sys/rnd.h>
+#include <sys/cprng.h>
#include <x86/specialreg.h>
@@ -258,7 +259,7 @@
C3_CRYPT_CWLO_KEYGEN_SW |
C3_CRYPT_CWLO_NORMAL;
- arc4randbytes(ses->ses_iv, sizeof(ses->ses_iv));
+ cprng_fast(ses->ses_iv, sizeof(ses->ses_iv));
ses->ses_klen = c->cri_klen;
ses->ses_cw0 = cw0;
Home |
Main Index |
Thread Index |
Old Index