summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkjell <>2005-06-06 04:54:28 +0000
committerkjell <>2005-06-06 04:54:28 +0000
commit516b96d165d2931f862a17d19a86fb40ea0aea50 (patch)
treef8f431c90d0f943c77ca0feac122d316c85094b8
parent4f1801b11c882f7fe58c55a86e070fbdb99db74e (diff)
downloadopenbsd-516b96d165d2931f862a17d19a86fb40ea0aea50.tar.gz
openbsd-516b96d165d2931f862a17d19a86fb40ea0aea50.tar.bz2
openbsd-516b96d165d2931f862a17d19a86fb40ea0aea50.zip
Change license to standard OpenBSD boilerplate, with permission
from original author (David Mazieres)
-rw-r--r--src/lib/libc/crypt/arc4random.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c
index 1bfaca8cf1..42a1a456e5 100644
--- a/src/lib/libc/crypt/arc4random.c
+++ b/src/lib/libc/crypt/arc4random.c
@@ -1,15 +1,24 @@
1/* $OpenBSD: arc4random.c,v 1.12 2005/06/04 05:13:13 tedu Exp $ */ 1/* $OpenBSD: arc4random.c,v 1.13 2005/06/06 04:54:28 kjell Exp $ */
2 2
3/* 3/*
4 * Arc4 random number generator for OpenBSD. 4 * Copyright (c) 1996, David Mazieres <dm@lcs.mit.edu>
5 * Copyright 1996 David Mazieres <dm@lcs.mit.edu>. 5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
6 * 9 *
7 * Modification and redistribution in source and binary forms is 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * permitted provided that due credit is given to the author and the 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * OpenBSD project by leaving this copyright notice intact. 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
10 */ 17 */
11 18
12/* 19/*
20 * Arc4 random number generator for OpenBSD.
21 *
13 * This code is derived from section 17.1 of Applied Cryptography, 22 * This code is derived from section 17.1 of Applied Cryptography,
14 * second edition, which describes a stream cipher allegedly 23 * second edition, which describes a stream cipher allegedly
15 * compatible with RSA Labs "RC4" cipher (the actual description of 24 * compatible with RSA Labs "RC4" cipher (the actual description of