1 1.1 jhigh Argon2 reference source code package - reference C implementations 2 1.1 jhigh 3 1.1 jhigh Copyright 2015 4 1.1 jhigh Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, and Samuel Neves 5 1.1 jhigh 6 1.1 jhigh You may use this work under the terms of a Creative Commons CC0 1.0 7 1.1 jhigh License/Waiver or the Apache Public License 2.0, at your option. The terms of 8 1.1 jhigh these licenses can be found at: 9 1.1 jhigh 10 1.1 jhigh - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0 11 1.1 jhigh - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0 12 1.1 jhigh 13 1.1 jhigh The terms of the licenses are reproduced below. 14 1.1 jhigh 15 1.1 jhigh -------------------------------------------------------------------------------- 16 1.1 jhigh 17 1.1 jhigh Creative Commons Legal Code 18 1.1 jhigh 19 1.1 jhigh CC0 1.0 Universal 20 1.1 jhigh 21 1.1 jhigh CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 22 1.1 jhigh LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 23 1.1 jhigh ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 24 1.1 jhigh INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 25 1.1 jhigh REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 26 1.1 jhigh PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 27 1.1 jhigh THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 28 1.1 jhigh HEREUNDER. 29 1.1 jhigh 30 1.1 jhigh Statement of Purpose 31 1.1 jhigh 32 1.1 jhigh The laws of most jurisdictions throughout the world automatically confer 33 1.1 jhigh exclusive Copyright and Related Rights (defined below) upon the creator 34 1.1 jhigh and subsequent owner(s) (each and all, an "owner") of an original work of 35 1.1 jhigh authorship and/or a database (each, a "Work"). 36 1.1 jhigh 37 1.1 jhigh Certain owners wish to permanently relinquish those rights to a Work for 38 1.1 jhigh the purpose of contributing to a commons of creative, cultural and 39 1.1 jhigh scientific works ("Commons") that the public can reliably and without fear 40 1.1 jhigh of later claims of infringement build upon, modify, incorporate in other 41 1.1 jhigh works, reuse and redistribute as freely as possible in any form whatsoever 42 1.1 jhigh and for any purposes, including without limitation commercial purposes. 43 1.1 jhigh These owners may contribute to the Commons to promote the ideal of a free 44 1.1 jhigh culture and the further production of creative, cultural and scientific 45 1.1 jhigh works, or to gain reputation or greater distribution for their Work in 46 1.1 jhigh part through the use and efforts of others. 47 1.1 jhigh 48 1.1 jhigh For these and/or other purposes and motivations, and without any 49 1.1 jhigh expectation of additional consideration or compensation, the person 50 1.1 jhigh associating CC0 with a Work (the "Affirmer"), to the extent that he or she 51 1.1 jhigh is an owner of Copyright and Related Rights in the Work, voluntarily 52 1.1 jhigh elects to apply CC0 to the Work and publicly distribute the Work under its 53 1.1 jhigh terms, with knowledge of his or her Copyright and Related Rights in the 54 1.1 jhigh Work and the meaning and intended legal effect of CC0 on those rights. 55 1.1 jhigh 56 1.1 jhigh 1. Copyright and Related Rights. A Work made available under CC0 may be 57 1.1 jhigh protected by copyright and related or neighboring rights ("Copyright and 58 1.1 jhigh Related Rights"). Copyright and Related Rights include, but are not 59 1.1 jhigh limited to, the following: 60 1.1 jhigh 61 1.1 jhigh i. the right to reproduce, adapt, distribute, perform, display, 62 1.1 jhigh communicate, and translate a Work; 63 1.1 jhigh ii. moral rights retained by the original author(s) and/or performer(s); 64 1.1 jhigh iii. publicity and privacy rights pertaining to a person's image or 65 1.1 jhigh likeness depicted in a Work; 66 1.1 jhigh iv. rights protecting against unfair competition in regards to a Work, 67 1.1 jhigh subject to the limitations in paragraph 4(a), below; 68 1.1 jhigh v. rights protecting the extraction, dissemination, use and reuse of data 69 1.1 jhigh in a Work; 70 1.1 jhigh vi. database rights (such as those arising under Directive 96/9/EC of the 71 1.1 jhigh European Parliament and of the Council of 11 March 1996 on the legal 72 1.1 jhigh protection of databases, and under any national implementation 73 1.1 jhigh thereof, including any amended or successor version of such 74 1.1 jhigh directive); and 75 1.1 jhigh vii. other similar, equivalent or corresponding rights throughout the 76 1.1 jhigh world based on applicable law or treaty, and any national 77 1.1 jhigh implementations thereof. 78 1.1 jhigh 79 1.1 jhigh 2. Waiver. To the greatest extent permitted by, but not in contravention 80 1.1 jhigh of, applicable law, Affirmer hereby overtly, fully, permanently, 81 1.1 jhigh irrevocably and unconditionally waives, abandons, and surrenders all of 82 1.1 jhigh Affirmer's Copyright and Related Rights and associated claims and causes 83 1.1 jhigh of action, whether now known or unknown (including existing as well as 84 1.1 jhigh future claims and causes of action), in the Work (i) in all territories 85 1.1 jhigh worldwide, (ii) for the maximum duration provided by applicable law or 86 1.1 jhigh treaty (including future time extensions), (iii) in any current or future 87 1.1 jhigh medium and for any number of copies, and (iv) for any purpose whatsoever, 88 1.1 jhigh including without limitation commercial, advertising or promotional 89 1.1 jhigh purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 90 1.1 jhigh member of the public at large and to the detriment of Affirmer's heirs and 91 1.1 jhigh successors, fully intending that such Waiver shall not be subject to 92 1.1 jhigh revocation, rescission, cancellation, termination, or any other legal or 93 1.1 jhigh equitable action to disrupt the quiet enjoyment of the Work by the public 94 1.1 jhigh as contemplated by Affirmer's express Statement of Purpose. 95 1.1 jhigh 96 1.1 jhigh 3. Public License Fallback. Should any part of the Waiver for any reason 97 1.1 jhigh be judged legally invalid or ineffective under applicable law, then the 98 1.1 jhigh Waiver shall be preserved to the maximum extent permitted taking into 99 1.1 jhigh account Affirmer's express Statement of Purpose. In addition, to the 100 1.1 jhigh extent the Waiver is so judged Affirmer hereby grants to each affected 101 1.1 jhigh person a royalty-free, non transferable, non sublicensable, non exclusive, 102 1.1 jhigh irrevocable and unconditional license to exercise Affirmer's Copyright and 103 1.1 jhigh Related Rights in the Work (i) in all territories worldwide, (ii) for the 104 1.1 jhigh maximum duration provided by applicable law or treaty (including future 105 1.1 jhigh time extensions), (iii) in any current or future medium and for any number 106 1.1 jhigh of copies, and (iv) for any purpose whatsoever, including without 107 1.1 jhigh limitation commercial, advertising or promotional purposes (the 108 1.1 jhigh "License"). The License shall be deemed effective as of the date CC0 was 109 1.1 jhigh applied by Affirmer to the Work. Should any part of the License for any 110 1.1 jhigh reason be judged legally invalid or ineffective under applicable law, such 111 1.1 jhigh partial invalidity or ineffectiveness shall not invalidate the remainder 112 1.1 jhigh of the License, and in such case Affirmer hereby affirms that he or she 113 1.1 jhigh will not (i) exercise any of his or her remaining Copyright and Related 114 1.1 jhigh Rights in the Work or (ii) assert any associated claims and causes of 115 1.1 jhigh action with respect to the Work, in either case contrary to Affirmer's 116 1.1 jhigh express Statement of Purpose. 117 1.1 jhigh 118 1.1 jhigh 4. Limitations and Disclaimers. 119 1.1 jhigh 120 1.1 jhigh a. No trademark or patent rights held by Affirmer are waived, abandoned, 121 1.1 jhigh surrendered, licensed or otherwise affected by this document. 122 1.1 jhigh b. Affirmer offers the Work as-is and makes no representations or 123 1.1 jhigh warranties of any kind concerning the Work, express, implied, 124 1.1 jhigh statutory or otherwise, including without limitation warranties of 125 1.1 jhigh title, merchantability, fitness for a particular purpose, non 126 1.1 jhigh infringement, or the absence of latent or other defects, accuracy, or 127 1.1 jhigh the present or absence of errors, whether or not discoverable, all to 128 1.1 jhigh the greatest extent permissible under applicable law. 129 1.1 jhigh c. Affirmer disclaims responsibility for clearing rights of other persons 130 1.1 jhigh that may apply to the Work or any use thereof, including without 131 1.1 jhigh limitation any person's Copyright and Related Rights in the Work. 132 1.1 jhigh Further, Affirmer disclaims responsibility for obtaining any necessary 133 1.1 jhigh consents, permissions or other rights required for any use of the 134 1.1 jhigh Work. 135 1.1 jhigh d. Affirmer understands and acknowledges that Creative Commons is not a 136 1.1 jhigh party to this document and has no duty or obligation with respect to 137 1.1 jhigh this CC0 or use of the Work. 138 1.1 jhigh 139 1.1 jhigh -------------------------------------------------------------------------------- 140 1.1 jhigh 141 1.1 jhigh Apache License 142 1.1 jhigh Version 2.0, January 2004 143 1.1 jhigh http://www.apache.org/licenses/ 144 1.1 jhigh 145 1.1 jhigh TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 146 1.1 jhigh 147 1.1 jhigh 1. Definitions. 148 1.1 jhigh 149 1.1 jhigh "License" shall mean the terms and conditions for use, reproduction, 150 1.1 jhigh and distribution as defined by Sections 1 through 9 of this document. 151 1.1 jhigh 152 1.1 jhigh "Licensor" shall mean the copyright owner or entity authorized by 153 1.1 jhigh the copyright owner that is granting the License. 154 1.1 jhigh 155 1.1 jhigh "Legal Entity" shall mean the union of the acting entity and all 156 1.1 jhigh other entities that control, are controlled by, or are under common 157 1.1 jhigh control with that entity. For the purposes of this definition, 158 1.1 jhigh "control" means (i) the power, direct or indirect, to cause the 159 1.1 jhigh direction or management of such entity, whether by contract or 160 1.1 jhigh otherwise, or (ii) ownership of fifty percent (50%) or more of the 161 1.1 jhigh outstanding shares, or (iii) beneficial ownership of such entity. 162 1.1 jhigh 163 1.1 jhigh "You" (or "Your") shall mean an individual or Legal Entity 164 1.1 jhigh exercising permissions granted by this License. 165 1.1 jhigh 166 1.1 jhigh "Source" form shall mean the preferred form for making modifications, 167 1.1 jhigh including but not limited to software source code, documentation 168 1.1 jhigh source, and configuration files. 169 1.1 jhigh 170 1.1 jhigh "Object" form shall mean any form resulting from mechanical 171 1.1 jhigh transformation or translation of a Source form, including but 172 1.1 jhigh not limited to compiled object code, generated documentation, 173 1.1 jhigh and conversions to other media types. 174 1.1 jhigh 175 1.1 jhigh "Work" shall mean the work of authorship, whether in Source or 176 1.1 jhigh Object form, made available under the License, as indicated by a 177 1.1 jhigh copyright notice that is included in or attached to the work 178 1.1 jhigh (an example is provided in the Appendix below). 179 1.1 jhigh 180 1.1 jhigh "Derivative Works" shall mean any work, whether in Source or Object 181 1.1 jhigh form, that is based on (or derived from) the Work and for which the 182 1.1 jhigh editorial revisions, annotations, elaborations, or other modifications 183 1.1 jhigh represent, as a whole, an original work of authorship. For the purposes 184 1.1 jhigh of this License, Derivative Works shall not include works that remain 185 1.1 jhigh separable from, or merely link (or bind by name) to the interfaces of, 186 1.1 jhigh the Work and Derivative Works thereof. 187 1.1 jhigh 188 1.1 jhigh "Contribution" shall mean any work of authorship, including 189 1.1 jhigh the original version of the Work and any modifications or additions 190 1.1 jhigh to that Work or Derivative Works thereof, that is intentionally 191 1.1 jhigh submitted to Licensor for inclusion in the Work by the copyright owner 192 1.1 jhigh or by an individual or Legal Entity authorized to submit on behalf of 193 1.1 jhigh the copyright owner. For the purposes of this definition, "submitted" 194 1.1 jhigh means any form of electronic, verbal, or written communication sent 195 1.1 jhigh to the Licensor or its representatives, including but not limited to 196 1.1 jhigh communication on electronic mailing lists, source code control systems, 197 1.1 jhigh and issue tracking systems that are managed by, or on behalf of, the 198 1.1 jhigh Licensor for the purpose of discussing and improving the Work, but 199 1.1 jhigh excluding communication that is conspicuously marked or otherwise 200 1.1 jhigh designated in writing by the copyright owner as "Not a Contribution." 201 1.1 jhigh 202 1.1 jhigh "Contributor" shall mean Licensor and any individual or Legal Entity 203 1.1 jhigh on behalf of whom a Contribution has been received by Licensor and 204 1.1 jhigh subsequently incorporated within the Work. 205 1.1 jhigh 206 1.1 jhigh 2. Grant of Copyright License. Subject to the terms and conditions of 207 1.1 jhigh this License, each Contributor hereby grants to You a perpetual, 208 1.1 jhigh worldwide, non-exclusive, no-charge, royalty-free, irrevocable 209 1.1 jhigh copyright license to reproduce, prepare Derivative Works of, 210 1.1 jhigh publicly display, publicly perform, sublicense, and distribute the 211 1.1 jhigh Work and such Derivative Works in Source or Object form. 212 1.1 jhigh 213 1.1 jhigh 3. Grant of Patent License. Subject to the terms and conditions of 214 1.1 jhigh this License, each Contributor hereby grants to You a perpetual, 215 1.1 jhigh worldwide, non-exclusive, no-charge, royalty-free, irrevocable 216 1.1 jhigh (except as stated in this section) patent license to make, have made, 217 1.1 jhigh use, offer to sell, sell, import, and otherwise transfer the Work, 218 1.1 jhigh where such license applies only to those patent claims licensable 219 1.1 jhigh by such Contributor that are necessarily infringed by their 220 1.1 jhigh Contribution(s) alone or by combination of their Contribution(s) 221 1.1 jhigh with the Work to which such Contribution(s) was submitted. If You 222 1.1 jhigh institute patent litigation against any entity (including a 223 1.1 jhigh cross-claim or counterclaim in a lawsuit) alleging that the Work 224 1.1 jhigh or a Contribution incorporated within the Work constitutes direct 225 1.1 jhigh or contributory patent infringement, then any patent licenses 226 1.1 jhigh granted to You under this License for that Work shall terminate 227 1.1 jhigh as of the date such litigation is filed. 228 1.1 jhigh 229 1.1 jhigh 4. Redistribution. You may reproduce and distribute copies of the 230 1.1 jhigh Work or Derivative Works thereof in any medium, with or without 231 1.1 jhigh modifications, and in Source or Object form, provided that You 232 1.1 jhigh meet the following conditions: 233 1.1 jhigh 234 1.1 jhigh (a) You must give any other recipients of the Work or 235 1.1 jhigh Derivative Works a copy of this License; and 236 1.1 jhigh 237 1.1 jhigh (b) You must cause any modified files to carry prominent notices 238 1.1 jhigh stating that You changed the files; and 239 1.1 jhigh 240 1.1 jhigh (c) You must retain, in the Source form of any Derivative Works 241 1.1 jhigh that You distribute, all copyright, patent, trademark, and 242 1.1 jhigh attribution notices from the Source form of the Work, 243 1.1 jhigh excluding those notices that do not pertain to any part of 244 1.1 jhigh the Derivative Works; and 245 1.1 jhigh 246 1.1 jhigh (d) If the Work includes a "NOTICE" text file as part of its 247 1.1 jhigh distribution, then any Derivative Works that You distribute must 248 1.1 jhigh include a readable copy of the attribution notices contained 249 1.1 jhigh within such NOTICE file, excluding those notices that do not 250 1.1 jhigh pertain to any part of the Derivative Works, in at least one 251 1.1 jhigh of the following places: within a NOTICE text file distributed 252 1.1 jhigh as part of the Derivative Works; within the Source form or 253 1.1 jhigh documentation, if provided along with the Derivative Works; or, 254 1.1 jhigh within a display generated by the Derivative Works, if and 255 1.1 jhigh wherever such third-party notices normally appear. The contents 256 1.1 jhigh of the NOTICE file are for informational purposes only and 257 1.1 jhigh do not modify the License. You may add Your own attribution 258 1.1 jhigh notices within Derivative Works that You distribute, alongside 259 1.1 jhigh or as an addendum to the NOTICE text from the Work, provided 260 1.1 jhigh that such additional attribution notices cannot be construed 261 1.1 jhigh as modifying the License. 262 1.1 jhigh 263 1.1 jhigh You may add Your own copyright statement to Your modifications and 264 1.1 jhigh may provide additional or different license terms and conditions 265 1.1 jhigh for use, reproduction, or distribution of Your modifications, or 266 1.1 jhigh for any such Derivative Works as a whole, provided Your use, 267 1.1 jhigh reproduction, and distribution of the Work otherwise complies with 268 1.1 jhigh the conditions stated in this License. 269 1.1 jhigh 270 1.1 jhigh 5. Submission of Contributions. Unless You explicitly state otherwise, 271 1.1 jhigh any Contribution intentionally submitted for inclusion in the Work 272 1.1 jhigh by You to the Licensor shall be under the terms and conditions of 273 1.1 jhigh this License, without any additional terms or conditions. 274 1.1 jhigh Notwithstanding the above, nothing herein shall supersede or modify 275 1.1 jhigh the terms of any separate license agreement you may have executed 276 1.1 jhigh with Licensor regarding such Contributions. 277 1.1 jhigh 278 1.1 jhigh 6. Trademarks. This License does not grant permission to use the trade 279 1.1 jhigh names, trademarks, service marks, or product names of the Licensor, 280 1.1 jhigh except as required for reasonable and customary use in describing the 281 1.1 jhigh origin of the Work and reproducing the content of the NOTICE file. 282 1.1 jhigh 283 1.1 jhigh 7. Disclaimer of Warranty. Unless required by applicable law or 284 1.1 jhigh agreed to in writing, Licensor provides the Work (and each 285 1.1 jhigh Contributor provides its Contributions) on an "AS IS" BASIS, 286 1.1 jhigh WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 287 1.1 jhigh implied, including, without limitation, any warranties or conditions 288 1.1 jhigh of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 289 1.1 jhigh PARTICULAR PURPOSE. You are solely responsible for determining the 290 1.1 jhigh appropriateness of using or redistributing the Work and assume any 291 1.1 jhigh risks associated with Your exercise of permissions under this License. 292 1.1 jhigh 293 1.1 jhigh 8. Limitation of Liability. In no event and under no legal theory, 294 1.1 jhigh whether in tort (including negligence), contract, or otherwise, 295 1.1 jhigh unless required by applicable law (such as deliberate and grossly 296 1.1 jhigh negligent acts) or agreed to in writing, shall any Contributor be 297 1.1 jhigh liable to You for damages, including any direct, indirect, special, 298 1.1 jhigh incidental, or consequential damages of any character arising as a 299 1.1 jhigh result of this License or out of the use or inability to use the 300 1.1 jhigh Work (including but not limited to damages for loss of goodwill, 301 1.1 jhigh work stoppage, computer failure or malfunction, or any and all 302 1.1 jhigh other commercial damages or losses), even if such Contributor 303 1.1 jhigh has been advised of the possibility of such damages. 304 1.1 jhigh 305 1.1 jhigh 9. Accepting Warranty or Additional Liability. While redistributing 306 1.1 jhigh the Work or Derivative Works thereof, You may choose to offer, 307 1.1 jhigh and charge a fee for, acceptance of support, warranty, indemnity, 308 1.1 jhigh or other liability obligations and/or rights consistent with this 309 1.1 jhigh License. However, in accepting such obligations, You may act only 310 1.1 jhigh on Your own behalf and on Your sole responsibility, not on behalf 311 1.1 jhigh of any other Contributor, and only if You agree to indemnify, 312 1.1 jhigh defend, and hold each Contributor harmless for any liability 313 1.1 jhigh incurred by, or claims asserted against, such Contributor by reason 314 1.1 jhigh of your accepting any such warranty or additional liability. 315