diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2007-09-18 22:02:19 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2007-09-18 22:02:19 +0000 |
commit | 60a50c17457081b214d0e67ae4d197348e65b44b (patch) | |
tree | 6147ed9a892b427eadc4c9a9a1f55dece2c774a0 /sys/dev/pci/ubsec.c | |
parent | 3f52b824168b8743c53ff47ac2278be7ed638c5e (diff) |
arc4random_bytes() is the preferred interface for generating nonces;
"looks ok" markus@
Diffstat (limited to 'sys/dev/pci/ubsec.c')
-rw-r--r-- | sys/dev/pci/ubsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c index 404a1cdff7e..f2103655045 100644 --- a/sys/dev/pci/ubsec.c +++ b/sys/dev/pci/ubsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsec.c,v 1.138 2006/12/29 13:04:37 pedro Exp $ */ +/* $OpenBSD: ubsec.c,v 1.139 2007/09/18 22:02:18 djm Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -620,7 +620,7 @@ ubsec_newsession(u_int32_t *sidp, struct cryptoini *cri) ses->ses_used = 1; if (encini) { /* get an IV, network byte order */ - get_random_bytes(ses->ses_iv, sizeof(ses->ses_iv)); + arc4random_bytes(ses->ses_iv, sizeof(ses->ses_iv)); /* Go ahead and compute key in ubsec's byte order */ if (encini->cri_alg == CRYPTO_DES_CBC) { |