1 The following 4-clause BSD licenses are only for man pages, specifically
2 for man/arc4random.3, man/tree.3 and man/getprogname.3.
5 Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions
11 1. Redistributions of source code must retain the above copyright
12 notice, this list of conditions and the following disclaimer.
13 2. Redistributions in binary form must reproduce the above copyright
14 notice, this list of conditions and the following disclaimer in the
15 documentation and/or other materials provided with the distribution.
16 3. All advertising materials mentioning features or use of this software
17 must display the following acknowledgement:
18 This product includes software developed by Niels Provos.
19 4. The name of the author may not be used to endorse or promote products
20 derived from this software without specific prior written permission.
22 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 Copyright © 2001 Christopher G. Demetriou
38 Redistribution and use in source and binary forms, with or without
39 modification, are permitted provided that the following conditions
41 1. Redistributions of source code must retain the above copyright
42 notice, this list of conditions and the following disclaimer.
43 2. Redistributions in binary form must reproduce the above copyright
44 notice, this list of conditions and the following disclaimer in the
45 documentation and/or other materials provided with the distribution.
46 3. All advertising materials mentioning features or use of this software
47 must display the following acknowledgement:
48 This product includes software developed for the
49 NetBSD Project. See http://www.netbsd.org/ for
50 information about NetBSD.
51 4. The name of the author may not be used to endorse or promote products
52 derived from this software without specific prior written permission.
54 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
55 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
56 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
57 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
58 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
59 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
60 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
61 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
62 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
63 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
66 The rest of the licenses apply to code and/or man pages.
69 Copyright © 2004-2006, 2008-2013 Guillem Jover <guillem@hadrons.org>
70 Copyright © 2005 Hector Garcia Alvarez
71 Copyright © 2005 Aurelien Jarno
72 Copyright © 2006 Robert Millan
74 Redistribution and use in source and binary forms, with or without
75 modification, are permitted provided that the following conditions
77 1. Redistributions of source code must retain the above copyright
78 notice, this list of conditions and the following disclaimer.
79 2. Redistributions in binary form must reproduce the above copyright
80 notice, this list of conditions and the following disclaimer in the
81 documentation and/or other materials provided with the distribution.
82 3. The name of the author may not be used to endorse or promote products
83 derived from this software without specific prior written permission.
85 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
86 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
87 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
88 THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
89 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
90 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
91 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
92 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
93 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
94 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
98 Copyright © 1980, 1982, 1986, 1989-1994
99 The Regents of the University of California. All rights reserved.
100 Copyright © 2001 Mike Barcroft <mike@FreeBSD.org>
102 Some code is derived from software contributed to Berkeley by
103 the American National Standards Committee X3, on Information
106 Some code is derived from software contributed to Berkeley by
109 Some code is derived from software contributed to Berkeley by
110 Ronnie Kon at Mindcraft Inc., Kevin Lew and Elmer Yglesias.
112 Some code is derived from software contributed to Berkeley by
113 Dave Borman at Cray Research, Inc.
115 Some code is derived from software contributed to Berkeley by
118 Some code is derived from software contributed to Berkeley by
121 © UNIX System Laboratories, Inc.
122 All or some portions of this file are derived from material licensed
123 to the University of California by American Telephone and Telegraph
124 Co. or Unix System Laboratories, Inc. and are reproduced herein with
125 the permission of UNIX System Laboratories, Inc.
127 Redistribution and use in source and binary forms, with or without
128 modification, are permitted provided that the following conditions
130 1. Redistributions of source code must retain the above copyright
131 notice, this list of conditions and the following disclaimer.
132 2. Redistributions in binary form must reproduce the above copyright
133 notice, this list of conditions and the following disclaimer in the
134 documentation and/or other materials provided with the distribution.
135 3. Neither the name of the University nor the names of its contributors
136 may be used to endorse or promote products derived from this software
137 without specific prior written permission.
139 THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
140 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
141 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
142 ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
143 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
144 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
145 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
146 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
147 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
148 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
153 Copyright © 1996 Peter Wemm <peter@FreeBSD.org>.
155 Copyright © 2002 Networks Associates Technology, Inc.
158 Portions of this software were developed for the FreeBSD Project by
159 ThinkSec AS and NAI Labs, the Security Research Division of Network
160 Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
161 ("CBOSS"), as part of the DARPA CHATS research program.
163 Redistribution and use in source and binary forms, with or without
164 modification, is permitted provided that the following conditions
166 1. Redistributions of source code must retain the above copyright
167 notice, this list of conditions and the following disclaimer.
168 2. Redistributions in binary form must reproduce the above copyright
169 notice, this list of conditions and the following disclaimer in the
170 documentation and/or other materials provided with the distribution.
171 3. The name of the author may not be used to endorse or promote
172 products derived from this software without specific prior written
175 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
176 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
177 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
178 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
179 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
180 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
181 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
182 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
183 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
184 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
189 Copyright © 1995 Peter Wemm <peter@FreeBSD.org>
192 Redistribution and use in source and binary forms, with or without
193 modification, is permitted provided that the following conditions
195 1. Redistributions of source code must retain the above copyright
196 notice immediately at the beginning of the file, without modification,
197 this list of conditions, and the following disclaimer.
198 2. Redistributions in binary form must reproduce the above copyright
199 notice, this list of conditions and the following disclaimer in the
200 documentation and/or other materials provided with the distribution.
201 3. This work was done expressly for inclusion into FreeBSD. Other use
202 is permitted provided this notation is included.
203 4. Absolutely no warranty of function or purpose is made by the author
205 5. Modifications may be freely made to this file providing the above
210 Copyright © 1994, 1997-2000, 2002, 2008 The NetBSD Foundation, Inc.
213 Some code was contributed to The NetBSD Foundation by Allen Briggs.
215 Some code was contributed to The NetBSD Foundation by Luke Mewburn.
217 Some code is derived from software contributed to The NetBSD Foundation
218 by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
219 NASA Ames Research Center, by Luke Mewburn and by Tomas Svensson.
221 Some code is derived from software contributed to The NetBSD Foundation
222 by Julio M. Merino Vidal, developed as part of Google's Summer of Code
225 Some code is derived from software contributed to The NetBSD Foundation
228 Redistribution and use in source and binary forms, with or without
229 modification, are permitted provided that the following conditions
231 1. Redistributions of source code must retain the above copyright
232 notice, this list of conditions and the following disclaimer.
233 2. Redistributions in binary form must reproduce the above copyright
234 notice, this list of conditions and the following disclaimer in the
235 documentation and/or other materials provided with the distribution.
237 THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
238 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
239 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
240 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
241 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
242 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
243 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
244 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
245 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
246 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
247 POSSIBILITY OF SUCH DAMAGE.
251 Copyright © 1998, M. Warner Losh <imp@freebsd.org>
254 Copyright © 2001 Dima Dorfman.
257 Copyright © 2001 FreeBSD Inc.
260 Copyright © 2002 Thomas Moestl <tmm@FreeBSD.org>
263 Copyright © 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
266 Copyright © 2007 Eric Anderson <anderson@FreeBSD.org>
267 Copyright © 2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>
270 Copyright © 2007 Dag-Erling Coïdan Smørgrav
273 Copyright © 2009 Advanced Computing Technologies LLC
274 Written by: John H. Baldwin <jhb@FreeBSD.org>
277 Redistribution and use in source and binary forms, with or without
278 modification, are permitted provided that the following conditions
280 1. Redistributions of source code must retain the above copyright
281 notice, this list of conditions and the following disclaimer.
282 2. Redistributions in binary form must reproduce the above copyright
283 notice, this list of conditions and the following disclaimer in the
284 documentation and/or other materials provided with the distribution.
286 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
287 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
288 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
289 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
290 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
291 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
292 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
293 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
294 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
295 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
300 Copyright © 1997 Christos Zoulas.
303 Copyright © 2002 Niels Provos <provos@citi.umich.edu>
306 Redistribution and use in source and binary forms, with or without
307 modification, are permitted provided that the following conditions
309 1. Redistributions of source code must retain the above copyright
310 notice, this list of conditions and the following disclaimer.
311 2. Redistributions in binary form must reproduce the above copyright
312 notice, this list of conditions and the following disclaimer in the
313 documentation and/or other materials provided with the distribution.
315 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
316 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
317 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
318 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
319 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
320 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
321 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
322 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
323 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
324 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
328 Copyright © 2007 Dag-Erling Coïdan Smørgrav
331 Redistribution and use in source and binary forms, with or without
332 modification, are permitted provided that the following conditions
334 1. Redistributions of source code must retain the above copyright
335 notice, this list of conditions and the following disclaimer
336 in this position and unchanged.
337 2. Redistributions in binary form must reproduce the above copyright
338 notice, this list of conditions and the following disclaimer in the
339 documentation and/or other materials provided with the distribution.
341 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
342 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
343 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
344 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
345 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
346 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
347 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
348 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
349 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
350 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
355 Copyright © 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com>
356 Copyright © 2004 Ted Unangst
358 Copyright © 2004 Ted Unangst and Todd Miller
361 Copyright © 2008 Otto Moerbeek <otto@drijf.net>
363 Permission to use, copy, modify, and distribute this software for any
364 purpose with or without fee is hereby granted, provided that the above
365 copyright notice and this permission notice appear in all copies.
367 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
368 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
369 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
370 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
371 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
372 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
373 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
377 Copyright © 2000-2002, 2004-2005, 2007, 2010
378 Todd C. Miller <Todd.Miller@courtesan.com>
380 Permission to use, copy, modify, and distribute this software for any
381 purpose with or without fee is hereby granted, provided that the above
382 copyright notice and this permission notice appear in all copies.
384 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
385 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
386 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
387 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
388 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
389 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
390 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
392 Sponsored in part by the Defense Advanced Research Projects
393 Agency (DARPA) and Air Force Research Laboratory, Air Force
394 Materiel Command, USAF, under agreement number F39502-99-1-0512
398 Copyright © 1996 by Internet Software Consortium.
400 Permission to use, copy, modify, and distribute this software for any
401 purpose with or without fee is hereby granted, provided that the above
402 copyright notice and this permission notice appear in all copies.
404 THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
405 ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
406 OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
407 CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
408 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
409 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
410 ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
415 Copyright © 1996, David Mazieres <dm@uun.org>
416 Copyright © 2008, Damien Miller <djm@openbsd.org>
418 Permission to use, copy, modify, and distribute this software for any
419 purpose with or without fee is hereby granted, provided that the above
420 copyright notice and this permission notice appear in all copies.
422 Modification and redistribution in source and binary forms is
423 permitted provided that due credit is given to the author and the
424 OpenBSD project (for instance by leaving this copyright notice
427 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
428 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
429 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
430 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
431 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
432 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
433 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
435 This code is derived from section 17.1 of Applied Cryptography,
436 second edition, which describes a stream cipher allegedly
437 compatible with RSA Labs "RC4" cipher (the actual description of
438 which is a trade secret). The same algorithm is used as a stream
439 cipher called "arcfour" in Tatu Ylonen's ssh package.
441 Here the stream cipher has been modified always to include the time
442 when initializing the state. That makes it impossible to
443 regenerate the same random sequence twice, so this can't be used
444 for encryption, but will generate good random numbers.
446 RC4 is a registered trademark of RSA Laboratories.
450 Copyright © 2010 William Ahern
451 Copyright © 2012 Guillem Jover <guillem@hadrons.org>
453 Permission is hereby granted, free of charge, to any person obtaining a
454 copy of this software and associated documentation files (the
455 "Software"), to deal in the Software without restriction, including
456 without limitation the rights to use, copy, modify, merge, publish,
457 distribute, sublicense, and/or sell copies of the Software, and to permit
458 persons to whom the Software is furnished to do so, subject to the
459 following conditions:
461 The above copyright notice and this permission notice shall be included
462 in all copies or substantial portions of the Software.
464 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
465 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
466 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
467 NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
468 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
469 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
470 USE OR OTHER DEALINGS IN THE SOFTWARE.
474 This code implements the MD5 message-digest algorithm.
475 The algorithm is due to Ron Rivest. This code was
476 written by Colin Plumb in 1993, no copyright is claimed.
477 This code is in the public domain; do with it what you wish.
479 Equivalent code is available from RSA Data Security, Inc.
480 This code has been tested against that, and is equivalent,
481 except that you don't need to include two pages of legalese
484 To compute the message digest of a chunk of bytes, declare an
485 MD5Context structure, pass it to MD5Init, call MD5Update as
486 needed on buffers full of bytes, and then call MD5Final, which
487 will fill a supplied 16-byte array with the digest.
491 "THE BEER-WARE LICENSE" (Revision 42):
492 <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you
493 can do whatever you want with this stuff. If we meet some day, and you think
494 this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp