enzoic 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +5 -0
  7. data/README.md +90 -0
  8. data/Rakefile +28 -0
  9. data/enzoic.gemspec +36 -0
  10. data/ext/.DS_Store +0 -0
  11. data/ext/argon2-wrapper/Makefile +74 -0
  12. data/ext/argon2-wrapper/argon2-wrapper.c +165 -0
  13. data/ext/argon2-wrapper/extconf.rb +1 -0
  14. data/ext/argon2_import/.DS_Store +0 -0
  15. data/ext/digest/whirlpool/extconf.rb +10 -0
  16. data/ext/digest/whirlpool/whirlpool-algorithm.c +476 -0
  17. data/ext/digest/whirlpool/whirlpool-algorithm.h +86 -0
  18. data/ext/digest/whirlpool/whirlpool-constants.h +1116 -0
  19. data/ext/digest/whirlpool/whirlpool-portability.h +142 -0
  20. data/ext/digest/whirlpool/whirlpool.c +51 -0
  21. data/ext/phc-winner-argon2/.gitattributes +10 -0
  22. data/ext/phc-winner-argon2/.gitignore +21 -0
  23. data/ext/phc-winner-argon2/.travis.yml +14 -0
  24. data/ext/phc-winner-argon2/Argon2.sln +160 -0
  25. data/ext/phc-winner-argon2/CHANGELOG.md +25 -0
  26. data/ext/phc-winner-argon2/LICENSE +314 -0
  27. data/ext/phc-winner-argon2/Makefile +187 -0
  28. data/ext/phc-winner-argon2/README.md +290 -0
  29. data/ext/phc-winner-argon2/appveyor.yml +25 -0
  30. data/ext/phc-winner-argon2/argon2-specs.pdf +0 -0
  31. data/ext/phc-winner-argon2/export.sh +7 -0
  32. data/ext/phc-winner-argon2/include/argon2.h +435 -0
  33. data/ext/phc-winner-argon2/kats/argon2d +12304 -0
  34. data/ext/phc-winner-argon2/kats/argon2d.shasum +1 -0
  35. data/ext/phc-winner-argon2/kats/argon2d_v16 +12304 -0
  36. data/ext/phc-winner-argon2/kats/argon2d_v16.shasum +1 -0
  37. data/ext/phc-winner-argon2/kats/argon2i +12304 -0
  38. data/ext/phc-winner-argon2/kats/argon2i.shasum +1 -0
  39. data/ext/phc-winner-argon2/kats/argon2i_v16 +12304 -0
  40. data/ext/phc-winner-argon2/kats/argon2i_v16.shasum +1 -0
  41. data/ext/phc-winner-argon2/kats/argon2id +12304 -0
  42. data/ext/phc-winner-argon2/kats/argon2id.shasum +1 -0
  43. data/ext/phc-winner-argon2/kats/argon2id_v16 +12304 -0
  44. data/ext/phc-winner-argon2/kats/argon2id_v16.shasum +1 -0
  45. data/ext/phc-winner-argon2/kats/check-sums.ps1 +42 -0
  46. data/ext/phc-winner-argon2/kats/check-sums.sh +13 -0
  47. data/ext/phc-winner-argon2/kats/test.ps1 +50 -0
  48. data/ext/phc-winner-argon2/kats/test.sh +49 -0
  49. data/ext/phc-winner-argon2/latex/IEEEtran.cls +6347 -0
  50. data/ext/phc-winner-argon2/latex/Makefile +18 -0
  51. data/ext/phc-winner-argon2/latex/argon2-specs.tex +920 -0
  52. data/ext/phc-winner-argon2/latex/pics/argon2-par.pdf +0 -0
  53. data/ext/phc-winner-argon2/latex/pics/compression.pdf +0 -0
  54. data/ext/phc-winner-argon2/latex/pics/generic.pdf +0 -0
  55. data/ext/phc-winner-argon2/latex/pics/power-distribution.jpg +0 -0
  56. data/ext/phc-winner-argon2/latex/tradeoff.bib +822 -0
  57. data/ext/phc-winner-argon2/libargon2.pc +16 -0
  58. data/ext/phc-winner-argon2/man/argon2.1 +57 -0
  59. data/ext/phc-winner-argon2/src/argon2.c +452 -0
  60. data/ext/phc-winner-argon2/src/bench.c +111 -0
  61. data/ext/phc-winner-argon2/src/blake2/blake2-impl.h +156 -0
  62. data/ext/phc-winner-argon2/src/blake2/blake2.h +91 -0
  63. data/ext/phc-winner-argon2/src/blake2/blake2b.c +390 -0
  64. data/ext/phc-winner-argon2/src/blake2/blamka-round-opt.h +328 -0
  65. data/ext/phc-winner-argon2/src/blake2/blamka-round-ref.h +56 -0
  66. data/ext/phc-winner-argon2/src/core.c +635 -0
  67. data/ext/phc-winner-argon2/src/core.h +227 -0
  68. data/ext/phc-winner-argon2/src/encoding.c +463 -0
  69. data/ext/phc-winner-argon2/src/encoding.h +57 -0
  70. data/ext/phc-winner-argon2/src/genkat.c +208 -0
  71. data/ext/phc-winner-argon2/src/genkat.h +49 -0
  72. data/ext/phc-winner-argon2/src/opt.c +241 -0
  73. data/ext/phc-winner-argon2/src/ref.c +194 -0
  74. data/ext/phc-winner-argon2/src/run.c +317 -0
  75. data/ext/phc-winner-argon2/src/test.c +254 -0
  76. data/ext/phc-winner-argon2/src/thread.c +57 -0
  77. data/ext/phc-winner-argon2/src/thread.h +67 -0
  78. data/ext/phc-winner-argon2/vs2015/Argon2Opt/Argon2Opt.vcxproj +226 -0
  79. data/ext/phc-winner-argon2/vs2015/Argon2Opt/Argon2Opt.vcxproj.filters +69 -0
  80. data/ext/phc-winner-argon2/vs2015/Argon2OptBench/Argon2OptBench.vcxproj +226 -0
  81. data/ext/phc-winner-argon2/vs2015/Argon2OptBench/Argon2OptBench.vcxproj.filters +69 -0
  82. data/ext/phc-winner-argon2/vs2015/Argon2OptDll/Argon2OptDll.vcxproj +225 -0
  83. data/ext/phc-winner-argon2/vs2015/Argon2OptDll/Argon2OptDll.vcxproj.filters +66 -0
  84. data/ext/phc-winner-argon2/vs2015/Argon2OptGenKAT/Argon2OptGenKAT.vcxproj +239 -0
  85. data/ext/phc-winner-argon2/vs2015/Argon2OptGenKAT/Argon2OptGenKAT.vcxproj.filters +72 -0
  86. data/ext/phc-winner-argon2/vs2015/Argon2OptTestCI/Argon2OptTestCI.vcxproj +227 -0
  87. data/ext/phc-winner-argon2/vs2015/Argon2OptTestCI/Argon2OptTestCI.vcxproj.filters +69 -0
  88. data/ext/phc-winner-argon2/vs2015/Argon2Ref/Argon2Ref.vcxproj +226 -0
  89. data/ext/phc-winner-argon2/vs2015/Argon2Ref/Argon2Ref.vcxproj.filters +69 -0
  90. data/ext/phc-winner-argon2/vs2015/Argon2RefBench/Argon2RefBench.vcxproj +226 -0
  91. data/ext/phc-winner-argon2/vs2015/Argon2RefBench/Argon2RefBench.vcxproj.filters +69 -0
  92. data/ext/phc-winner-argon2/vs2015/Argon2RefDll/Argon2RefDll.vcxproj +225 -0
  93. data/ext/phc-winner-argon2/vs2015/Argon2RefDll/Argon2RefDll.vcxproj.filters +66 -0
  94. data/ext/phc-winner-argon2/vs2015/Argon2RefGenKAT/Argon2RefGenKAT.vcxproj +227 -0
  95. data/ext/phc-winner-argon2/vs2015/Argon2RefGenKAT/Argon2RefGenKAT.vcxproj.filters +72 -0
  96. data/ext/phc-winner-argon2/vs2015/Argon2RefTestCI/Argon2RefTestCI.vcxproj +226 -0
  97. data/ext/phc-winner-argon2/vs2015/Argon2RefTestCI/Argon2RefTestCI.vcxproj.filters +69 -0
  98. data/lib/enzoic.rb +189 -0
  99. data/lib/enzoic/argon2_errors.rb +39 -0
  100. data/lib/enzoic/argon2_wrapper_ffi.rb +89 -0
  101. data/lib/enzoic/constants.rb +10 -0
  102. data/lib/enzoic/errors.rb +3 -0
  103. data/lib/enzoic/hashing.rb +258 -0
  104. data/lib/enzoic/password_type.rb +25 -0
  105. data/lib/enzoic/version.rb +5 -0
  106. metadata +354 -0
@@ -0,0 +1,142 @@
1
+ /**
2
+ * The Whirlpool hashing function.
3
+ *
4
+ * The Whirlpool algorithm was developed by
5
+ * Paulo S. L. M. Barreto and Vincent Rijmen.
6
+ *
7
+ * See
8
+ * P.S.L.M. Barreto, V. Rijmen,
9
+ * ``The Whirlpool hashing function,''
10
+ * NESSIE submission, 2000 (tweaked version, 2001),
11
+ * <https://www.cosic.esat.kuleuven.ac.be/nessie/workshop/submissions/whirlpool.zip>
12
+ *
13
+ * @version 3.0 (2003.03.12)
14
+ *
15
+ * Modified for use in this software package.
16
+ */
17
+
18
+ #ifndef _WHIRLPOOL_PORTABILITY_H_
19
+ #define _WHIRLPOOL_PORTABILITY_H_
20
+
21
+ /* Definition of minimum-width integer types
22
+ *
23
+ * u8 -> unsigned integer type, at least 8 bits, equivalent to unsigned char
24
+ * u16 -> unsigned integer type, at least 16 bits
25
+ * u32 -> unsigned integer type, at least 32 bits
26
+ *
27
+ * s8, s16, s32 -> signed counterparts of u8, u16, u32
28
+ *
29
+ * Always use macro's T8(), T16() or T32() to obtain exact-width results,
30
+ * i.e., to specify the size of the result of each expression.
31
+ */
32
+
33
+ typedef signed char s8;
34
+ typedef unsigned char u8;
35
+
36
+ #if UINT_MAX >= 4294967295UL
37
+
38
+ typedef signed short s16;
39
+ typedef signed int s32;
40
+ typedef unsigned short u16;
41
+ typedef unsigned int u32;
42
+
43
+ #define ONE32 0xffffffffU
44
+
45
+ #else
46
+
47
+ typedef signed int s16;
48
+ typedef signed long s32;
49
+ typedef unsigned int u16;
50
+ typedef unsigned long u32;
51
+
52
+ #define ONE32 0xffffffffUL
53
+
54
+ #endif
55
+
56
+ #define ONE8 0xffU
57
+ #define ONE16 0xffffU
58
+
59
+ #define T8(x) ((x) & ONE8)
60
+ #define T16(x) ((x) & ONE16)
61
+ #define T32(x) ((x) & ONE32)
62
+
63
+ #ifdef _MSC_VER
64
+ typedef unsigned __int64 u64;
65
+ typedef signed __int64 s64;
66
+ #define LL(v) (v##i64)
67
+ #define ONE64 LL(0xffffffffffffffff)
68
+ #else /* !_MSC_VER */
69
+ typedef unsigned long long u64;
70
+ typedef signed long long s64;
71
+ #define LL(v) (v##ULL)
72
+ #define ONE64 LL(0xffffffffffffffff)
73
+ #endif /* ?_MSC_VER */
74
+ #define T64(x) ((x) & ONE64)
75
+ #define ROTR64(v, n) (((v) >> (n)) | T64((v) << (64 - (n))))
76
+ /*
77
+ * Note: the test is used to detect native 64-bit architectures;
78
+ * if the unsigned long is strictly greater than 32-bit, it is
79
+ * assumed to be at least 64-bit. This will not work correctly
80
+ * on (old) 36-bit architectures (PDP-11 for instance).
81
+ *
82
+ * On non-64-bit architectures, "long long" is used.
83
+ */
84
+
85
+ /*
86
+ * U8TO32_BIG(c) returns the 32-bit value stored in big-endian convention
87
+ * in the unsigned char array pointed to by c.
88
+ */
89
+ #define U8TO32_BIG(c) (((u32)T8(*(c)) << 24) | ((u32)T8(*((c) + 1)) << 16) | ((u32)T8(*((c) + 2)) << 8) | ((u32)T8(*((c) + 3))))
90
+
91
+ /*
92
+ * U8TO32_LITTLE(c) returns the 32-bit value stored in little-endian convention
93
+ * in the unsigned char array pointed to by c.
94
+ */
95
+ #define U8TO32_LITTLE(c) (((u32)T8(*(c))) | ((u32)T8(*((c) + 1)) << 8) | (u32)T8(*((c) + 2)) << 16) | ((u32)T8(*((c) + 3)) << 24))
96
+
97
+ /*
98
+ * U8TO32_BIG(c, v) stores the 32-bit-value v in big-endian convention
99
+ * into the unsigned char array pointed to by c.
100
+ */
101
+ #define U32TO8_BIG(c, v) do { u32 x = (v); u8 *d = (c); d[0] = T8(x >> 24); d[1] = T8(x >> 16); d[2] = T8(x >> 8); d[3] = T8(x); } while (0)
102
+
103
+ /*
104
+ * U8TO32_LITTLE(c, v) stores the 32-bit-value v in little-endian convention
105
+ * into the unsigned char array pointed to by c.
106
+ */
107
+ #define U32TO8_LITTLE(c, v) do { u32 x = (v); u8 *d = (c); d[0] = T8(x); d[1] = T8(x >> 8); d[2] = T8(x >> 16); d[3] = T8(x >> 24); } while (0)
108
+
109
+ /*
110
+ * ROTL32(v, n) returns the value of the 32-bit unsigned value v after
111
+ * a rotation of n bits to the left. It might be replaced by the appropriate
112
+ * architecture-specific macro.
113
+ *
114
+ * It evaluates v and n twice.
115
+ *
116
+ * The compiler might emit a warning if n is the constant 0. The result
117
+ * is undefined if n is greater than 31.
118
+ */
119
+ #define ROTL32(v, n) (T32((v) << (n)) | ((v) >> (32 - (n))))
120
+
121
+ /*
122
+ * Whirlpool-specific definitions.
123
+ */
124
+
125
+ #define DIGESTBYTES WP_DIGEST_SIZE
126
+ #define DIGESTBITS (8*DIGESTBYTES) /* 512 */
127
+
128
+ #define WBLOCKBYTES 64
129
+ #define WBLOCKBITS (8*WBLOCKBYTES) /* 512 */
130
+
131
+ #define LENGTHBYTES 32
132
+ #define LENGTHBITS (8*LENGTHBYTES) /* 256 */
133
+
134
+ struct WP_Struct {
135
+ u8 bitLength[LENGTHBYTES]; /* global number of hashed bits (256-bit counter) */
136
+ u8 buffer[WBLOCKBYTES]; /* buffer of data to hash */
137
+ int bufferBits; /* current number of bits on the buffer */
138
+ int bufferPos; /* current (possibly incomplete) byte slot on the buffer */
139
+ u64 hash[DIGESTBYTES/8]; /* the hashing state */
140
+ };
141
+
142
+ #endif
@@ -0,0 +1,51 @@
1
+ /************************************************
2
+
3
+ whirlpool.c - provides Digest::Whirlpool class
4
+
5
+ Copyright (C) 2006-2013 Akinori MUSHA
6
+
7
+ ************************************************/
8
+
9
+ #ifdef HAVE_RUBY_DIGEST_H
10
+ #include "ruby/digest.h"
11
+ #else
12
+ #include "digest.h"
13
+ #endif
14
+ #include "whirlpool-algorithm.h"
15
+ #include "whirlpool-portability.h"
16
+
17
+ static void WP_Update(WP_Struct * const, const unsigned char * const, size_t);
18
+
19
+ static rb_digest_metadata_t whirlpool = {
20
+ RUBY_DIGEST_API_VERSION,
21
+ WP_DIGEST_SIZE,
22
+ WBLOCKBYTES,
23
+ sizeof(WP_Struct),
24
+ (rb_digest_hash_init_func_t)WP_Init,
25
+ (rb_digest_hash_update_func_t)WP_Update,
26
+ (rb_digest_hash_finish_func_t)WP_Finalize,
27
+ };
28
+
29
+ static void
30
+ WP_Update(WP_Struct * const wp, const unsigned char * const data, size_t len)
31
+ {
32
+ WP_Add(data, len * 8, wp);
33
+ }
34
+
35
+ void
36
+ Init_whirlpool()
37
+ {
38
+ VALUE mDigest, cDigest_Base, cDigest_Whirlpool;
39
+
40
+ rb_require("digest");
41
+
42
+ mDigest = rb_path2class("Digest");
43
+ cDigest_Base = rb_path2class("Digest::Base");
44
+
45
+ cDigest_Whirlpool = rb_define_class_under(mDigest, "Whirlpool", cDigest_Base);
46
+
47
+ // rb_ivar_set(cDigest_Whirlpool, rb_intern("metadata"),
48
+ // Data_Wrap_Struct(rb_cObject, 0, 0, &whirlpool));
49
+ rb_ivar_set(cDigest_Whirlpool, rb_intern("metadata"),
50
+ Data_Wrap_Struct(0, 0, 0, (void *)&whirlpool));
51
+ }
@@ -0,0 +1,10 @@
1
+ # Export ignore
2
+ .gitattributes export-ignore
3
+ .gitignore export-ignore
4
+ .travis.yml export-ignore
5
+ appveyor.yml export-ignore
6
+ export.sh export-ignore
7
+ latex/* export-ignore
8
+
9
+ # Linguist documentation
10
+ latex/* linguist-documentation
@@ -0,0 +1,21 @@
1
+ argon2
2
+ libargon2.a
3
+ libargon2.so
4
+ libargon2.dylib
5
+ .DS_Store
6
+ src/*.o
7
+ src/blake2/*.o
8
+ genkat
9
+ .idea
10
+ *.pyc
11
+ testcase
12
+ *.gcda
13
+ *.gcno
14
+ *.gcov
15
+ bench
16
+ vs2015/build
17
+ Argon2.sdf
18
+ Argon2.VC.opendb
19
+ *.zip
20
+ *.tar.gz
21
+ tags
@@ -0,0 +1,14 @@
1
+ language: c
2
+
3
+ compiler:
4
+ - clang
5
+ - gcc
6
+
7
+ os:
8
+ - linux
9
+ - osx
10
+
11
+ script: make && make testci
12
+
13
+ after_success:
14
+ - bash <(curl -s https://codecov.io/bash)
@@ -0,0 +1,160 @@
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio 14
4
+ VisualStudioVersion = 14.0.25420.1
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2OptTestCI", "vs2015\Argon2OptTestCI\Argon2OptTestCI.vcxproj", "{12956597-5E42-433A-93F3-D4EFF50AA207}"
7
+ EndProject
8
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2RefTestCI", "vs2015\Argon2RefTestCI\Argon2RefTestCI.vcxproj", "{8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}"
9
+ EndProject
10
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2OptGenKAT", "vs2015\Argon2OptGenKAT\Argon2OptGenKAT.vcxproj", "{DBBAAAE6-4560-4D11-8280-30A6650A82EF}"
11
+ EndProject
12
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2RefGenKAT", "vs2015\Argon2RefGenKAT\Argon2RefGenKAT.vcxproj", "{71921B4C-A795-4A37-95A3-99D600E01211}"
13
+ EndProject
14
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2Opt", "vs2015\Argon2Opt\Argon2Opt.vcxproj", "{CAA75C57-998C-494E-B8A5-5894EF0FC528}"
15
+ EndProject
16
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2Ref", "vs2015\Argon2Ref\Argon2Ref.vcxproj", "{B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}"
17
+ EndProject
18
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2OptBench", "vs2015\Argon2OptBench\Argon2OptBench.vcxproj", "{B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}"
19
+ EndProject
20
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2RefBench", "vs2015\Argon2RefBench\Argon2RefBench.vcxproj", "{99203F6A-6E8C-42FC-8C7C-C07E8913D539}"
21
+ EndProject
22
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2OptDll", "vs2015\Argon2OptDll\Argon2OptDll.vcxproj", "{3A898DD8-ACAE-4269-ADFE-EB7260D71583}"
23
+ EndProject
24
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2RefDll", "vs2015\Argon2RefDll\Argon2RefDll.vcxproj", "{19D911A1-533C-4475-B313-F372481A35D4}"
25
+ EndProject
26
+ Global
27
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
28
+ Debug|x64 = Debug|x64
29
+ Debug|x86 = Debug|x86
30
+ Release|x64 = Release|x64
31
+ Release|x86 = Release|x86
32
+ ReleaseStatic|x64 = ReleaseStatic|x64
33
+ ReleaseStatic|x86 = ReleaseStatic|x86
34
+ EndGlobalSection
35
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
36
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Debug|x64.ActiveCfg = Debug|x64
37
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Debug|x64.Build.0 = Debug|x64
38
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Debug|x86.ActiveCfg = Debug|Win32
39
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Debug|x86.Build.0 = Debug|Win32
40
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Release|x64.ActiveCfg = Release|x64
41
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Release|x64.Build.0 = Release|x64
42
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Release|x86.ActiveCfg = Release|Win32
43
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.Release|x86.Build.0 = Release|Win32
44
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
45
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
46
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
47
+ {12956597-5E42-433A-93F3-D4EFF50AA207}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
48
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Debug|x64.ActiveCfg = Debug|x64
49
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Debug|x64.Build.0 = Debug|x64
50
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Debug|x86.ActiveCfg = Debug|Win32
51
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Debug|x86.Build.0 = Debug|Win32
52
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Release|x64.ActiveCfg = Release|x64
53
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Release|x64.Build.0 = Release|x64
54
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Release|x86.ActiveCfg = Release|Win32
55
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.Release|x86.Build.0 = Release|Win32
56
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
57
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
58
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
59
+ {8A1F7F84-34AF-4DB2-9D58-D4823DFE79E9}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
60
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Debug|x64.ActiveCfg = Debug|x64
61
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Debug|x64.Build.0 = Debug|x64
62
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Debug|x86.ActiveCfg = Debug|Win32
63
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Debug|x86.Build.0 = Debug|Win32
64
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Release|x64.ActiveCfg = Release|x64
65
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Release|x64.Build.0 = Release|x64
66
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Release|x86.ActiveCfg = Release|Win32
67
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.Release|x86.Build.0 = Release|Win32
68
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
69
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
70
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
71
+ {DBBAAAE6-4560-4D11-8280-30A6650A82EF}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
72
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Debug|x64.ActiveCfg = Debug|x64
73
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Debug|x64.Build.0 = Debug|x64
74
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Debug|x86.ActiveCfg = Debug|Win32
75
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Debug|x86.Build.0 = Debug|Win32
76
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Release|x64.ActiveCfg = Release|x64
77
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Release|x64.Build.0 = Release|x64
78
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Release|x86.ActiveCfg = Release|Win32
79
+ {71921B4C-A795-4A37-95A3-99D600E01211}.Release|x86.Build.0 = Release|Win32
80
+ {71921B4C-A795-4A37-95A3-99D600E01211}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
81
+ {71921B4C-A795-4A37-95A3-99D600E01211}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
82
+ {71921B4C-A795-4A37-95A3-99D600E01211}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
83
+ {71921B4C-A795-4A37-95A3-99D600E01211}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
84
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Debug|x64.ActiveCfg = Debug|x64
85
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Debug|x64.Build.0 = Debug|x64
86
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Debug|x86.ActiveCfg = Debug|Win32
87
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Debug|x86.Build.0 = Debug|Win32
88
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Release|x64.ActiveCfg = Release|x64
89
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Release|x64.Build.0 = Release|x64
90
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Release|x86.ActiveCfg = Release|Win32
91
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.Release|x86.Build.0 = Release|Win32
92
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
93
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
94
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
95
+ {CAA75C57-998C-494E-B8A5-5894EF0FC528}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
96
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x64.ActiveCfg = Debug|x64
97
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x64.Build.0 = Debug|x64
98
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x86.ActiveCfg = Debug|Win32
99
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x86.Build.0 = Debug|Win32
100
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x64.ActiveCfg = Release|x64
101
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x64.Build.0 = Release|x64
102
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x86.ActiveCfg = Release|Win32
103
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x86.Build.0 = Release|Win32
104
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
105
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
106
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
107
+ {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
108
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Debug|x64.ActiveCfg = Debug|x64
109
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Debug|x64.Build.0 = Debug|x64
110
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Debug|x86.ActiveCfg = Debug|Win32
111
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Debug|x86.Build.0 = Debug|Win32
112
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Release|x64.ActiveCfg = Release|x64
113
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Release|x64.Build.0 = Release|x64
114
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Release|x86.ActiveCfg = Release|Win32
115
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.Release|x86.Build.0 = Release|Win32
116
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
117
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
118
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
119
+ {B3A0FB44-0C1C-4EC3-B155-8B39371F8EE4}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
120
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Debug|x64.ActiveCfg = Debug|x64
121
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Debug|x64.Build.0 = Debug|x64
122
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Debug|x86.ActiveCfg = Debug|Win32
123
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Debug|x86.Build.0 = Debug|Win32
124
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Release|x64.ActiveCfg = Release|x64
125
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Release|x64.Build.0 = Release|x64
126
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Release|x86.ActiveCfg = Release|Win32
127
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.Release|x86.Build.0 = Release|Win32
128
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
129
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
130
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
131
+ {99203F6A-6E8C-42FC-8C7C-C07E8913D539}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
132
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Debug|x64.ActiveCfg = Debug|x64
133
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Debug|x64.Build.0 = Debug|x64
134
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Debug|x86.ActiveCfg = Debug|Win32
135
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Debug|x86.Build.0 = Debug|Win32
136
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Release|x64.ActiveCfg = Release|x64
137
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Release|x64.Build.0 = Release|x64
138
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Release|x86.ActiveCfg = Release|Win32
139
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.Release|x86.Build.0 = Release|Win32
140
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
141
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
142
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
143
+ {3A898DD8-ACAE-4269-ADFE-EB7260D71583}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
144
+ {19D911A1-533C-4475-B313-F372481A35D4}.Debug|x64.ActiveCfg = Debug|x64
145
+ {19D911A1-533C-4475-B313-F372481A35D4}.Debug|x64.Build.0 = Debug|x64
146
+ {19D911A1-533C-4475-B313-F372481A35D4}.Debug|x86.ActiveCfg = Debug|Win32
147
+ {19D911A1-533C-4475-B313-F372481A35D4}.Debug|x86.Build.0 = Debug|Win32
148
+ {19D911A1-533C-4475-B313-F372481A35D4}.Release|x64.ActiveCfg = Release|x64
149
+ {19D911A1-533C-4475-B313-F372481A35D4}.Release|x64.Build.0 = Release|x64
150
+ {19D911A1-533C-4475-B313-F372481A35D4}.Release|x86.ActiveCfg = Release|Win32
151
+ {19D911A1-533C-4475-B313-F372481A35D4}.Release|x86.Build.0 = Release|Win32
152
+ {19D911A1-533C-4475-B313-F372481A35D4}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64
153
+ {19D911A1-533C-4475-B313-F372481A35D4}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64
154
+ {19D911A1-533C-4475-B313-F372481A35D4}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32
155
+ {19D911A1-533C-4475-B313-F372481A35D4}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32
156
+ EndGlobalSection
157
+ GlobalSection(SolutionProperties) = preSolution
158
+ HideSolutionNode = FALSE
159
+ EndGlobalSection
160
+ EndGlobal
@@ -0,0 +1,25 @@
1
+ # 20161029
2
+
3
+ * Argon2id added
4
+ * Better documentation
5
+ * Dual licensing CC0 / Apache 2.0
6
+ * Minor bug fixes (no security issue)
7
+
8
+ # 20160406
9
+
10
+ * Version 1.3 of Argon2
11
+ * Version number in encoded hash
12
+ * Refactored low-level API
13
+ * Visibility control for library symbols
14
+ * Microsoft Visual Studio solution
15
+ * New bindings
16
+ * Minor bug and warning fixes (no security issue)
17
+
18
+
19
+ # 20151206
20
+
21
+ * Python bindings
22
+ * Password read from stdin, instead of being an argument
23
+ * Compatibility FreeBSD, NetBSD, OpenBSD
24
+ * Constant-time verification
25
+ * Minor bug and warning fixes (no security issue)
@@ -0,0 +1,314 @@
1
+ Argon2 reference source code package - reference C implementations
2
+
3
+ Copyright 2015
4
+ Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, and Samuel Neves
5
+
6
+ You may use this work under the terms of a Creative Commons CC0 1.0
7
+ License/Waiver or the Apache Public License 2.0, at your option. The terms of
8
+ these licenses can be found at:
9
+
10
+ - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
11
+ - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ The terms of the licenses are reproduced below.
14
+
15
+ --------------------------------------------------------------------------------
16
+
17
+ Creative Commons Legal Code
18
+
19
+ CC0 1.0 Universal
20
+
21
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
22
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
23
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
24
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
25
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
26
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
27
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
28
+ HEREUNDER.
29
+
30
+ Statement of Purpose
31
+
32
+ The laws of most jurisdictions throughout the world automatically confer
33
+ exclusive Copyright and Related Rights (defined below) upon the creator
34
+ and subsequent owner(s) (each and all, an "owner") of an original work of
35
+ authorship and/or a database (each, a "Work").
36
+
37
+ Certain owners wish to permanently relinquish those rights to a Work for
38
+ the purpose of contributing to a commons of creative, cultural and
39
+ scientific works ("Commons") that the public can reliably and without fear
40
+ of later claims of infringement build upon, modify, incorporate in other
41
+ works, reuse and redistribute as freely as possible in any form whatsoever
42
+ and for any purposes, including without limitation commercial purposes.
43
+ These owners may contribute to the Commons to promote the ideal of a free
44
+ culture and the further production of creative, cultural and scientific
45
+ works, or to gain reputation or greater distribution for their Work in
46
+ part through the use and efforts of others.
47
+
48
+ For these and/or other purposes and motivations, and without any
49
+ expectation of additional consideration or compensation, the person
50
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
51
+ is an owner of Copyright and Related Rights in the Work, voluntarily
52
+ elects to apply CC0 to the Work and publicly distribute the Work under its
53
+ terms, with knowledge of his or her Copyright and Related Rights in the
54
+ Work and the meaning and intended legal effect of CC0 on those rights.
55
+
56
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
57
+ protected by copyright and related or neighboring rights ("Copyright and
58
+ Related Rights"). Copyright and Related Rights include, but are not
59
+ limited to, the following:
60
+
61
+ i. the right to reproduce, adapt, distribute, perform, display,
62
+ communicate, and translate a Work;
63
+ ii. moral rights retained by the original author(s) and/or performer(s);
64
+ iii. publicity and privacy rights pertaining to a person's image or
65
+ likeness depicted in a Work;
66
+ iv. rights protecting against unfair competition in regards to a Work,
67
+ subject to the limitations in paragraph 4(a), below;
68
+ v. rights protecting the extraction, dissemination, use and reuse of data
69
+ in a Work;
70
+ vi. database rights (such as those arising under Directive 96/9/EC of the
71
+ European Parliament and of the Council of 11 March 1996 on the legal
72
+ protection of databases, and under any national implementation
73
+ thereof, including any amended or successor version of such
74
+ directive); and
75
+ vii. other similar, equivalent or corresponding rights throughout the
76
+ world based on applicable law or treaty, and any national
77
+ implementations thereof.
78
+
79
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
80
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
81
+ irrevocably and unconditionally waives, abandons, and surrenders all of
82
+ Affirmer's Copyright and Related Rights and associated claims and causes
83
+ of action, whether now known or unknown (including existing as well as
84
+ future claims and causes of action), in the Work (i) in all territories
85
+ worldwide, (ii) for the maximum duration provided by applicable law or
86
+ treaty (including future time extensions), (iii) in any current or future
87
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
88
+ including without limitation commercial, advertising or promotional
89
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
90
+ member of the public at large and to the detriment of Affirmer's heirs and
91
+ successors, fully intending that such Waiver shall not be subject to
92
+ revocation, rescission, cancellation, termination, or any other legal or
93
+ equitable action to disrupt the quiet enjoyment of the Work by the public
94
+ as contemplated by Affirmer's express Statement of Purpose.
95
+
96
+ 3. Public License Fallback. Should any part of the Waiver for any reason
97
+ be judged legally invalid or ineffective under applicable law, then the
98
+ Waiver shall be preserved to the maximum extent permitted taking into
99
+ account Affirmer's express Statement of Purpose. In addition, to the
100
+ extent the Waiver is so judged Affirmer hereby grants to each affected
101
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
102
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
103
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
104
+ maximum duration provided by applicable law or treaty (including future
105
+ time extensions), (iii) in any current or future medium and for any number
106
+ of copies, and (iv) for any purpose whatsoever, including without
107
+ limitation commercial, advertising or promotional purposes (the
108
+ "License"). The License shall be deemed effective as of the date CC0 was
109
+ applied by Affirmer to the Work. Should any part of the License for any
110
+ reason be judged legally invalid or ineffective under applicable law, such
111
+ partial invalidity or ineffectiveness shall not invalidate the remainder
112
+ of the License, and in such case Affirmer hereby affirms that he or she
113
+ will not (i) exercise any of his or her remaining Copyright and Related
114
+ Rights in the Work or (ii) assert any associated claims and causes of
115
+ action with respect to the Work, in either case contrary to Affirmer's
116
+ express Statement of Purpose.
117
+
118
+ 4. Limitations and Disclaimers.
119
+
120
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
121
+ surrendered, licensed or otherwise affected by this document.
122
+ b. Affirmer offers the Work as-is and makes no representations or
123
+ warranties of any kind concerning the Work, express, implied,
124
+ statutory or otherwise, including without limitation warranties of
125
+ title, merchantability, fitness for a particular purpose, non
126
+ infringement, or the absence of latent or other defects, accuracy, or
127
+ the present or absence of errors, whether or not discoverable, all to
128
+ the greatest extent permissible under applicable law.
129
+ c. Affirmer disclaims responsibility for clearing rights of other persons
130
+ that may apply to the Work or any use thereof, including without
131
+ limitation any person's Copyright and Related Rights in the Work.
132
+ Further, Affirmer disclaims responsibility for obtaining any necessary
133
+ consents, permissions or other rights required for any use of the
134
+ Work.
135
+ d. Affirmer understands and acknowledges that Creative Commons is not a
136
+ party to this document and has no duty or obligation with respect to
137
+ this CC0 or use of the Work.
138
+
139
+ --------------------------------------------------------------------------------
140
+
141
+ Apache License
142
+ Version 2.0, January 2004
143
+ http://www.apache.org/licenses/
144
+
145
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
146
+
147
+ 1. Definitions.
148
+
149
+ "License" shall mean the terms and conditions for use, reproduction,
150
+ and distribution as defined by Sections 1 through 9 of this document.
151
+
152
+ "Licensor" shall mean the copyright owner or entity authorized by
153
+ the copyright owner that is granting the License.
154
+
155
+ "Legal Entity" shall mean the union of the acting entity and all
156
+ other entities that control, are controlled by, or are under common
157
+ control with that entity. For the purposes of this definition,
158
+ "control" means (i) the power, direct or indirect, to cause the
159
+ direction or management of such entity, whether by contract or
160
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
161
+ outstanding shares, or (iii) beneficial ownership of such entity.
162
+
163
+ "You" (or "Your") shall mean an individual or Legal Entity
164
+ exercising permissions granted by this License.
165
+
166
+ "Source" form shall mean the preferred form for making modifications,
167
+ including but not limited to software source code, documentation
168
+ source, and configuration files.
169
+
170
+ "Object" form shall mean any form resulting from mechanical
171
+ transformation or translation of a Source form, including but
172
+ not limited to compiled object code, generated documentation,
173
+ and conversions to other media types.
174
+
175
+ "Work" shall mean the work of authorship, whether in Source or
176
+ Object form, made available under the License, as indicated by a
177
+ copyright notice that is included in or attached to the work
178
+ (an example is provided in the Appendix below).
179
+
180
+ "Derivative Works" shall mean any work, whether in Source or Object
181
+ form, that is based on (or derived from) the Work and for which the
182
+ editorial revisions, annotations, elaborations, or other modifications
183
+ represent, as a whole, an original work of authorship. For the purposes
184
+ of this License, Derivative Works shall not include works that remain
185
+ separable from, or merely link (or bind by name) to the interfaces of,
186
+ the Work and Derivative Works thereof.
187
+
188
+ "Contribution" shall mean any work of authorship, including
189
+ the original version of the Work and any modifications or additions
190
+ to that Work or Derivative Works thereof, that is intentionally
191
+ submitted to Licensor for inclusion in the Work by the copyright owner
192
+ or by an individual or Legal Entity authorized to submit on behalf of
193
+ the copyright owner. For the purposes of this definition, "submitted"
194
+ means any form of electronic, verbal, or written communication sent
195
+ to the Licensor or its representatives, including but not limited to
196
+ communication on electronic mailing lists, source code control systems,
197
+ and issue tracking systems that are managed by, or on behalf of, the
198
+ Licensor for the purpose of discussing and improving the Work, but
199
+ excluding communication that is conspicuously marked or otherwise
200
+ designated in writing by the copyright owner as "Not a Contribution."
201
+
202
+ "Contributor" shall mean Licensor and any individual or Legal Entity
203
+ on behalf of whom a Contribution has been received by Licensor and
204
+ subsequently incorporated within the Work.
205
+
206
+ 2. Grant of Copyright License. Subject to the terms and conditions of
207
+ this License, each Contributor hereby grants to You a perpetual,
208
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
209
+ copyright license to reproduce, prepare Derivative Works of,
210
+ publicly display, publicly perform, sublicense, and distribute the
211
+ Work and such Derivative Works in Source or Object form.
212
+
213
+ 3. Grant of Patent License. Subject to the terms and conditions of
214
+ this License, each Contributor hereby grants to You a perpetual,
215
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
216
+ (except as stated in this section) patent license to make, have made,
217
+ use, offer to sell, sell, import, and otherwise transfer the Work,
218
+ where such license applies only to those patent claims licensable
219
+ by such Contributor that are necessarily infringed by their
220
+ Contribution(s) alone or by combination of their Contribution(s)
221
+ with the Work to which such Contribution(s) was submitted. If You
222
+ institute patent litigation against any entity (including a
223
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
224
+ or a Contribution incorporated within the Work constitutes direct
225
+ or contributory patent infringement, then any patent licenses
226
+ granted to You under this License for that Work shall terminate
227
+ as of the date such litigation is filed.
228
+
229
+ 4. Redistribution. You may reproduce and distribute copies of the
230
+ Work or Derivative Works thereof in any medium, with or without
231
+ modifications, and in Source or Object form, provided that You
232
+ meet the following conditions:
233
+
234
+ (a) You must give any other recipients of the Work or
235
+ Derivative Works a copy of this License; and
236
+
237
+ (b) You must cause any modified files to carry prominent notices
238
+ stating that You changed the files; and
239
+
240
+ (c) You must retain, in the Source form of any Derivative Works
241
+ that You distribute, all copyright, patent, trademark, and
242
+ attribution notices from the Source form of the Work,
243
+ excluding those notices that do not pertain to any part of
244
+ the Derivative Works; and
245
+
246
+ (d) If the Work includes a "NOTICE" text file as part of its
247
+ distribution, then any Derivative Works that You distribute must
248
+ include a readable copy of the attribution notices contained
249
+ within such NOTICE file, excluding those notices that do not
250
+ pertain to any part of the Derivative Works, in at least one
251
+ of the following places: within a NOTICE text file distributed
252
+ as part of the Derivative Works; within the Source form or
253
+ documentation, if provided along with the Derivative Works; or,
254
+ within a display generated by the Derivative Works, if and
255
+ wherever such third-party notices normally appear. The contents
256
+ of the NOTICE file are for informational purposes only and
257
+ do not modify the License. You may add Your own attribution
258
+ notices within Derivative Works that You distribute, alongside
259
+ or as an addendum to the NOTICE text from the Work, provided
260
+ that such additional attribution notices cannot be construed
261
+ as modifying the License.
262
+
263
+ You may add Your own copyright statement to Your modifications and
264
+ may provide additional or different license terms and conditions
265
+ for use, reproduction, or distribution of Your modifications, or
266
+ for any such Derivative Works as a whole, provided Your use,
267
+ reproduction, and distribution of the Work otherwise complies with
268
+ the conditions stated in this License.
269
+
270
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
271
+ any Contribution intentionally submitted for inclusion in the Work
272
+ by You to the Licensor shall be under the terms and conditions of
273
+ this License, without any additional terms or conditions.
274
+ Notwithstanding the above, nothing herein shall supersede or modify
275
+ the terms of any separate license agreement you may have executed
276
+ with Licensor regarding such Contributions.
277
+
278
+ 6. Trademarks. This License does not grant permission to use the trade
279
+ names, trademarks, service marks, or product names of the Licensor,
280
+ except as required for reasonable and customary use in describing the
281
+ origin of the Work and reproducing the content of the NOTICE file.
282
+
283
+ 7. Disclaimer of Warranty. Unless required by applicable law or
284
+ agreed to in writing, Licensor provides the Work (and each
285
+ Contributor provides its Contributions) on an "AS IS" BASIS,
286
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
287
+ implied, including, without limitation, any warranties or conditions
288
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
289
+ PARTICULAR PURPOSE. You are solely responsible for determining the
290
+ appropriateness of using or redistributing the Work and assume any
291
+ risks associated with Your exercise of permissions under this License.
292
+
293
+ 8. Limitation of Liability. In no event and under no legal theory,
294
+ whether in tort (including negligence), contract, or otherwise,
295
+ unless required by applicable law (such as deliberate and grossly
296
+ negligent acts) or agreed to in writing, shall any Contributor be
297
+ liable to You for damages, including any direct, indirect, special,
298
+ incidental, or consequential damages of any character arising as a
299
+ result of this License or out of the use or inability to use the
300
+ Work (including but not limited to damages for loss of goodwill,
301
+ work stoppage, computer failure or malfunction, or any and all
302
+ other commercial damages or losses), even if such Contributor
303
+ has been advised of the possibility of such damages.
304
+
305
+ 9. Accepting Warranty or Additional Liability. While redistributing
306
+ the Work or Derivative Works thereof, You may choose to offer,
307
+ and charge a fee for, acceptance of support, warranty, indemnity,
308
+ or other liability obligations and/or rights consistent with this
309
+ License. However, in accepting such obligations, You may act only
310
+ on Your own behalf and on Your sole responsibility, not on behalf
311
+ of any other Contributor, and only if You agree to indemnify,
312
+ defend, and hold each Contributor harmless for any liability
313
+ incurred by, or claims asserted against, such Contributor by reason
314
+ of your accepting any such warranty or additional liability.