diff options
author | Bryan Cantrill <bryan@joyent.com> | 2019-06-29 18:17:08 +0000 |
---|---|---|
committer | Joshua M. Clulow <jmc@joyent.com> | 2019-06-29 21:53:45 +0000 |
commit | d2cb459496a9ba43c051f163b6233046ccb5bcdf (patch) | |
tree | 5551d1e4587b4b047866d5b0f925f00decfa01ac /usr/src/lib/libc | |
parent | e9686f2048541f02e63b97976f385b6efa0f4831 (diff) | |
download | illumos-joyent-d2cb459496a9ba43c051f163b6233046ccb5bcdf.tar.gz |
OS-7828 add support for kernel crash dump encryption
Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com>
Approved by: Joshua M. Clulow <jmc@joyent.com>
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r-- | usr/src/lib/libc/port/gen/arc4random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libc/port/gen/arc4random.c b/usr/src/lib/libc/port/gen/arc4random.c index d82f12bd2a..f60ed09afc 100644 --- a/usr/src/lib/libc/port/gen/arc4random.c +++ b/usr/src/lib/libc/port/gen/arc4random.c @@ -2,7 +2,7 @@ * Copyright (c) 1996, David Mazieres <dm@uun.org> * Copyright (c) 2008, Damien Miller <djm@openbsd.org> * Copyright (c) 2013, Markus Friedl <markus@openbsd.org> - * Copyright (c) 2015 Joyent, Inc. + * Copyright 2019 Joyent, Inc. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -60,7 +60,7 @@ arc4_init(uint8_t *buf, size_t n) abort(); chacha_keysetup(&arc4->arc4_chacha, buf, ARC4_KEYSZ * 8, 0); - chacha_ivsetup(&arc4->arc4_chacha, buf + ARC4_KEYSZ); + chacha_ivsetup(&arc4->arc4_chacha, buf + ARC4_KEYSZ, NULL); } static void |