1 Monocypher as a whole is dual-licensed. Choose whichever licence you
2 want from the two licences listed below.
4 The first licence is a regular 2-clause BSD licence. The second licence
5 is the CC-0 from Creative Commons. It is intended to release Monocypher
6 to the public domain. The BSD licence serves as a fallback option.
8 See the individual files for specific information about who contributed
9 to what file during which years. See below for special notes.
11 Licence 1 (2-clause BSD)
12 ------------------------
14 Copyright (c) 2017-2023, Loup Vaillant
15 Copyright (c) 2017-2019, Michael Savage
16 Copyright (c) 2017-2023, Fabio Scotoni
19 Redistribution and use in source and binary forms, with or without
20 modification, are permitted provided that the following conditions are
23 1. Redistributions of source code must retain the above copyright
24 notice, this list of conditions and the following disclaimer.
26 2. Redistributions in binary form must reproduce the above copyright
27 notice, this list of conditions and the following disclaimer in the
28 documentation and/or other materials provided with the
31 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
38 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
39 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47 > CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
48 > LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
49 > ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
50 > INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
51 > REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
52 > PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
53 > THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
56 ### Statement of Purpose
58 The laws of most jurisdictions throughout the world automatically confer
59 exclusive Copyright and Related Rights (defined below) upon the creator
60 and subsequent owner(s) (each and all, an "owner") of an original work
61 of authorship and/or a database (each, a "Work").
63 Certain owners wish to permanently relinquish those rights to a Work for
64 the purpose of contributing to a commons of creative, cultural and
65 scientific works ("Commons") that the public can reliably and without
66 fear of later claims of infringement build upon, modify, incorporate in
67 other works, reuse and redistribute as freely as possible in any form
68 whatsoever and for any purposes, including without limitation commercial
69 purposes. These owners may contribute to the Commons to promote the
70 ideal of a free culture and the further production of creative, cultural
71 and scientific works, or to gain reputation or greater distribution for
72 their Work in part through the use and efforts of others.
74 For these and/or other purposes and motivations, and without any
75 expectation of additional consideration or compensation, the person
76 associating CC0 with a Work (the "Affirmer"), to the extent that he or
77 she is an owner of Copyright and Related Rights in the Work, voluntarily
78 elects to apply CC0 to the Work and publicly distribute the Work under
79 its terms, with knowledge of his or her Copyright and Related Rights in
80 the Work and the meaning and intended legal effect of CC0 on those
83 1. **Copyright and Related Rights.** A Work made available under CC0 may
84 be protected by copyright and related or neighboring rights
85 ("Copyright and Related Rights"). Copyright and Related Rights
86 include, but are not limited to, the following:
88 - the right to reproduce, adapt, distribute, perform, display,
89 communicate, and translate a Work;
90 - moral rights retained by the original author(s) and/or
91 performer(s); publicity and privacy rights pertaining to a person's
92 image or likeness depicted in a Work;
93 - rights protecting against unfair competition in regards to a Work,
94 subject to the limitations in paragraph 4(a), below;
95 - rights protecting the extraction, dissemination, use and reuse of
97 - database rights (such as those arising under Directive 96/9/EC of
98 the European Parliament and of the Council of 11 March 1996 on the
99 legal protection of databases, and under any national
100 implementation thereof, including any amended or successor version
101 of such directive); and
102 - other similar, equivalent or corresponding rights throughout the
103 world based on applicable law or treaty, and any national
104 implementations thereof.
106 2. **Waiver.** To the greatest extent permitted by, but not in
107 contravention of, applicable law, Affirmer hereby overtly, fully,
108 permanently, irrevocably and unconditionally waives, abandons, and
109 surrenders all of Affirmer's Copyright and Related Rights and
110 associated claims and causes of action, whether now known or unknown
111 (including existing as well as future claims and causes of action),
112 in the Work (i) in all territories worldwide, (ii) for the maximum
113 duration provided by applicable law or treaty (including future time
114 extensions), (iii) in any current or future medium and for any number
115 of copies, and (iv) for any purpose whatsoever, including without
116 limitation commercial, advertising or promotional purposes (the
117 "Waiver"). Affirmer makes the Waiver for the benefit of each member
118 of the public at large and to the detriment of Affirmer's heirs and
119 successors, fully intending that such Waiver shall not be subject to
120 revocation, rescission, cancellation, termination, or any other legal
121 or equitable action to disrupt the quiet enjoyment of the Work by the
122 public as contemplated by Affirmer's express Statement of Purpose.
124 3. **Public License Fallback.** Should any part of the Waiver for any
125 reason be judged legally invalid or ineffective under applicable law,
126 then the Waiver shall be preserved to the maximum extent permitted
127 taking into account Affirmer's express Statement of Purpose. In
128 addition, to the extent the Waiver is so judged Affirmer hereby
129 grants to each affected person a royalty-free, non transferable, non
130 sublicensable, non exclusive, irrevocable and unconditional license
131 to exercise Affirmer's Copyright and Related Rights in the Work (i)
132 in all territories worldwide, (ii) for the maximum duration provided
133 by applicable law or treaty (including future time extensions), (iii)
134 in any current or future medium and for any number of copies, and
135 (iv) for any purpose whatsoever, including without limitation
136 commercial, advertising or promotional purposes (the "License"). The
137 License shall be deemed effective as of the date CC0 was applied by
138 Affirmer to the Work. Should any part of the License for any reason
139 be judged legally invalid or ineffective under applicable law, such
140 partial invalidity or ineffectiveness shall not invalidate the
141 remainder of the License, and in such case Affirmer hereby affirms
142 that he or she will not (i) exercise any of his or her remaining
143 Copyright and Related Rights in the Work or (ii) assert any
144 associated claims and causes of action with respect to the Work, in
145 either case contrary to Affirmer's express Statement of Purpose.
147 4. **Limitations and Disclaimers.**
149 - No trademark or patent rights held by Affirmer are waived,
150 abandoned, surrendered, licensed or otherwise affected by this
152 - Affirmer offers the Work as-is and makes no representations or
153 warranties of any kind concerning the Work, express, implied,
154 statutory or otherwise, including without limitation warranties of
155 title, merchantability, fitness for a particular purpose, non
156 infringement, or the absence of latent or other defects, accuracy,
157 or the present or absence of errors, whether or not discoverable,
158 all to the greatest extent permissible under applicable law.
159 - Affirmer disclaims responsibility for clearing rights of other
160 persons that may apply to the Work or any use thereof, including
161 without limitation any person's Copyright and Related Rights in the
162 Work. Further, Affirmer disclaims responsibility for obtaining any
163 necessary consents, permissions or other rights required for any
165 - Affirmer understands and acknowledges that Creative Commons is not
166 a party to this document and has no duty or obligation with respect
167 to this CC0 or use of the Work.