diff options
| author | 2008-06-09 07:07:15 +0000 | |
|---|---|---|
| committer | 2008-06-09 07:07:15 +0000 | |
| commit | 780f39a56d559ff298e05915f7eec6982812543f (patch) | |
| tree | 053cbc4b09bacddfbc7995b9f28b900707c72486 /sys/crypto/cryptosoft.c | |
| parent | - sort the hardware list (diff) | |
| download | wireguard-openbsd-780f39a56d559ff298e05915f7eec6982812543f.tar.xz wireguard-openbsd-780f39a56d559ff298e05915f7eec6982812543f.zip | |
rename arc4random_bytes => arc4random_buf to match libc's nicer name;
ok deraadt@
Diffstat (limited to 'sys/crypto/cryptosoft.c')
| -rw-r--r-- | sys/crypto/cryptosoft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index 7510096cd2e..9d084bd6f66 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptosoft.c,v 1.49 2007/09/15 11:00:51 hshoexer Exp $ */ +/* $OpenBSD: cryptosoft.c,v 1.50 2008/06/09 07:07:15 djm Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -105,7 +105,7 @@ swcr_encdec(struct cryptodesc *crd, struct swcr_data *sw, caddr_t buf, if (crd->crd_flags & CRD_F_IV_EXPLICIT) bcopy(crd->crd_iv, iv, ivlen); else - arc4random_bytes(iv, ivlen); + arc4random_buf(iv, ivlen); /* Do we need to write the IV */ if (!(crd->crd_flags & CRD_F_IV_PRESENT)) { |
