summaryrefslogtreecommitdiff
path: root/sys/dev/pci/hifn7751.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2007-09-18 22:02:19 +0000
committerDamien Miller <djm@cvs.openbsd.org>2007-09-18 22:02:19 +0000
commit60a50c17457081b214d0e67ae4d197348e65b44b (patch)
tree6147ed9a892b427eadc4c9a9a1f55dece2c774a0 /sys/dev/pci/hifn7751.c
parent3f52b824168b8743c53ff47ac2278be7ed638c5e (diff)
arc4random_bytes() is the preferred interface for generating nonces;
"looks ok" markus@
Diffstat (limited to 'sys/dev/pci/hifn7751.c')
-rw-r--r--sys/dev/pci/hifn7751.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 7ae75aae001..a2c48ba6997 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.152 2006/06/29 21:34:51 deraadt Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.153 2007/09/18 22:02:18 djm Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -1868,7 +1868,7 @@ hifn_newsession(u_int32_t *sidp, struct cryptoini *cri)
case CRYPTO_DES_CBC:
case CRYPTO_3DES_CBC:
case CRYPTO_AES_CBC:
- get_random_bytes(ses->hs_iv,
+ arc4random_bytes(ses->hs_iv,
(c->cri_alg == CRYPTO_AES_CBC ?
HIFN_AES_IV_LENGTH : HIFN_IV_LENGTH));
/*FALLTHROUGH*/