laag-libsodium 1.0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (550) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +57 -0
  3. data/LICENSE.txt +18 -0
  4. data/README.org +34 -0
  5. data/ext/laag/libsodium/extconf.rb +13 -0
  6. data/laag-libsodium.gemspec +20 -0
  7. data/lib/laag/libsodium.rb +31 -0
  8. data/vendor/github.com/jedisct1/libsodium/.gitignore +157 -0
  9. data/vendor/github.com/jedisct1/libsodium/.travis.yml +33 -0
  10. data/vendor/github.com/jedisct1/libsodium/AUTHORS +135 -0
  11. data/vendor/github.com/jedisct1/libsodium/ChangeLog +505 -0
  12. data/vendor/github.com/jedisct1/libsodium/LICENSE +18 -0
  13. data/vendor/github.com/jedisct1/libsodium/Makefile.am +24 -0
  14. data/vendor/github.com/jedisct1/libsodium/README.markdown +46 -0
  15. data/vendor/github.com/jedisct1/libsodium/THANKS +91 -0
  16. data/vendor/github.com/jedisct1/libsodium/appveyor.yml +25 -0
  17. data/vendor/github.com/jedisct1/libsodium/autogen.sh +36 -0
  18. data/vendor/github.com/jedisct1/libsodium/builds/.gitignore +7 -0
  19. data/vendor/github.com/jedisct1/libsodium/builds/Makefile.am +65 -0
  20. data/vendor/github.com/jedisct1/libsodium/builds/msvc/build/buildall.bat +14 -0
  21. data/vendor/github.com/jedisct1/libsodium/builds/msvc/build/buildbase.bat +70 -0
  22. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/Common.props +21 -0
  23. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/DLL.props +16 -0
  24. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/Debug.props +29 -0
  25. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/DebugDEXE.props +21 -0
  26. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/DebugDLL.props +20 -0
  27. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/DebugLEXE.props +20 -0
  28. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/DebugLIB.props +21 -0
  29. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/DebugLTCG.props +20 -0
  30. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/DebugSEXE.props +21 -0
  31. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/EXE.props +17 -0
  32. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/LIB.props +16 -0
  33. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/LTCG.props +13 -0
  34. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/Link.props +21 -0
  35. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/Messages.props +15 -0
  36. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/Output.props +30 -0
  37. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/Release.props +41 -0
  38. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/ReleaseDEXE.props +20 -0
  39. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/ReleaseDLL.props +19 -0
  40. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/ReleaseLEXE.props +20 -0
  41. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/ReleaseLIB.props +19 -0
  42. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/ReleaseLTCG.props +19 -0
  43. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/ReleaseSEXE.props +20 -0
  44. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/Win32.props +23 -0
  45. data/vendor/github.com/jedisct1/libsodium/builds/msvc/properties/x64.props +26 -0
  46. data/vendor/github.com/jedisct1/libsodium/builds/msvc/resource.h +14 -0
  47. data/vendor/github.com/jedisct1/libsodium/builds/msvc/resource.rc +63 -0
  48. data/vendor/github.com/jedisct1/libsodium/builds/msvc/version.h +32 -0
  49. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2010/libsodium/libsodium.props +48 -0
  50. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +324 -0
  51. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +986 -0
  52. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2010/libsodium/libsodium.xml +15 -0
  53. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2010/libsodium.import.props +52 -0
  54. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2010/libsodium.import.xml +17 -0
  55. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2010/libsodium.sln +50 -0
  56. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2012/libsodium/libsodium.props +48 -0
  57. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +324 -0
  58. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +986 -0
  59. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2012/libsodium/libsodium.xml +15 -0
  60. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2012/libsodium.import.props +52 -0
  61. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2012/libsodium.import.xml +17 -0
  62. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2012/libsodium.sln +50 -0
  63. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2013/libsodium/libsodium.props +48 -0
  64. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +324 -0
  65. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +986 -0
  66. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2013/libsodium/libsodium.xml +15 -0
  67. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2013/libsodium.import.props +52 -0
  68. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2013/libsodium.import.xml +17 -0
  69. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2013/libsodium.sln +52 -0
  70. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2015/libsodium/libsodium.props +48 -0
  71. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +324 -0
  72. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +986 -0
  73. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2015/libsodium/libsodium.xml +15 -0
  74. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2015/libsodium.import.props +52 -0
  75. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2015/libsodium.import.xml +17 -0
  76. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2015/libsodium.sln +52 -0
  77. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2017/libsodium/libsodium.props +48 -0
  78. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj +324 -0
  79. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj.filters +986 -0
  80. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2017/libsodium/libsodium.xml +15 -0
  81. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2017/libsodium.import.props +52 -0
  82. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2017/libsodium.import.xml +17 -0
  83. data/vendor/github.com/jedisct1/libsodium/builds/msvc/vs2017/libsodium.sln +52 -0
  84. data/vendor/github.com/jedisct1/libsodium/configure.ac +824 -0
  85. data/vendor/github.com/jedisct1/libsodium/contrib/Findsodium.cmake +288 -0
  86. data/vendor/github.com/jedisct1/libsodium/contrib/Makefile.am +3 -0
  87. data/vendor/github.com/jedisct1/libsodium/dist-build/Makefile.am +17 -0
  88. data/vendor/github.com/jedisct1/libsodium/dist-build/android-arm.sh +4 -0
  89. data/vendor/github.com/jedisct1/libsodium/dist-build/android-armv7-a.sh +4 -0
  90. data/vendor/github.com/jedisct1/libsodium/dist-build/android-armv8-a.sh +4 -0
  91. data/vendor/github.com/jedisct1/libsodium/dist-build/android-build.sh +82 -0
  92. data/vendor/github.com/jedisct1/libsodium/dist-build/android-mips32.sh +4 -0
  93. data/vendor/github.com/jedisct1/libsodium/dist-build/android-mips64.sh +4 -0
  94. data/vendor/github.com/jedisct1/libsodium/dist-build/android-x86.sh +4 -0
  95. data/vendor/github.com/jedisct1/libsodium/dist-build/android-x86_64.sh +4 -0
  96. data/vendor/github.com/jedisct1/libsodium/dist-build/emscripten-symbols.def +570 -0
  97. data/vendor/github.com/jedisct1/libsodium/dist-build/emscripten.sh +168 -0
  98. data/vendor/github.com/jedisct1/libsodium/dist-build/generate-emscripten-symbols.sh +57 -0
  99. data/vendor/github.com/jedisct1/libsodium/dist-build/ios.sh +125 -0
  100. data/vendor/github.com/jedisct1/libsodium/dist-build/msys2-win32.sh +18 -0
  101. data/vendor/github.com/jedisct1/libsodium/dist-build/msys2-win64.sh +18 -0
  102. data/vendor/github.com/jedisct1/libsodium/dist-build/nativeclient-pnacl.sh +27 -0
  103. data/vendor/github.com/jedisct1/libsodium/dist-build/nativeclient-x86.sh +19 -0
  104. data/vendor/github.com/jedisct1/libsodium/dist-build/nativeclient-x86_64.sh +19 -0
  105. data/vendor/github.com/jedisct1/libsodium/dist-build/osx.sh +20 -0
  106. data/vendor/github.com/jedisct1/libsodium/libsodium-uninstalled.pc.in +6 -0
  107. data/vendor/github.com/jedisct1/libsodium/libsodium.pc.in +11 -0
  108. data/vendor/github.com/jedisct1/libsodium/libsodium.sln +40 -0
  109. data/vendor/github.com/jedisct1/libsodium/libsodium.vcxproj +562 -0
  110. data/vendor/github.com/jedisct1/libsodium/libsodium.vcxproj.filters +720 -0
  111. data/vendor/github.com/jedisct1/libsodium/logo.png +0 -0
  112. data/vendor/github.com/jedisct1/libsodium/m4/ax_check_catchable_abrt.m4 +57 -0
  113. data/vendor/github.com/jedisct1/libsodium/m4/ax_check_catchable_segv.m4 +42 -0
  114. data/vendor/github.com/jedisct1/libsodium/m4/ax_check_compile_flag.m4 +75 -0
  115. data/vendor/github.com/jedisct1/libsodium/m4/ax_check_define.m4 +92 -0
  116. data/vendor/github.com/jedisct1/libsodium/m4/ax_check_gnu_make.m4 +84 -0
  117. data/vendor/github.com/jedisct1/libsodium/m4/ax_check_link_flag.m4 +75 -0
  118. data/vendor/github.com/jedisct1/libsodium/m4/ax_pthread.m4 +485 -0
  119. data/vendor/github.com/jedisct1/libsodium/m4/ax_tls.m4 +74 -0
  120. data/vendor/github.com/jedisct1/libsodium/m4/ax_valgrind_check.m4 +241 -0
  121. data/vendor/github.com/jedisct1/libsodium/m4/ld-output-def.m4 +29 -0
  122. data/vendor/github.com/jedisct1/libsodium/msvc-scripts/Makefile.am +4 -0
  123. data/vendor/github.com/jedisct1/libsodium/msvc-scripts/process.bat +5 -0
  124. data/vendor/github.com/jedisct1/libsodium/msvc-scripts/rep.vbs +12 -0
  125. data/vendor/github.com/jedisct1/libsodium/msvc-scripts/sodium.props +28 -0
  126. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/.gitignore +5 -0
  127. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/README.md +59 -0
  128. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/libsodium.props +36 -0
  129. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/prepare.py +244 -0
  130. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/alpine-x64 +3 -0
  131. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/build +9 -0
  132. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/centos-x64 +3 -0
  133. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/debian-x64 +4 -0
  134. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/fedora-x64 +3 -0
  135. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/linux-x64 +4 -0
  136. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/opensuse-x64 +3 -0
  137. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/pack +5 -0
  138. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/test +27 -0
  139. data/vendor/github.com/jedisct1/libsodium/packaging/dotnet-core/recipes/ubuntu-x64 +4 -0
  140. data/vendor/github.com/jedisct1/libsodium/packaging/nuget/.gitignore +4 -0
  141. data/vendor/github.com/jedisct1/libsodium/packaging/nuget/package.bat +13 -0
  142. data/vendor/github.com/jedisct1/libsodium/packaging/nuget/package.config +4 -0
  143. data/vendor/github.com/jedisct1/libsodium/packaging/nuget/package.gsl +260 -0
  144. data/vendor/github.com/jedisct1/libsodium/regen-msvc/libsodium.vcxproj +326 -0
  145. data/vendor/github.com/jedisct1/libsodium/regen-msvc/libsodium.vcxproj.filters +23 -0
  146. data/vendor/github.com/jedisct1/libsodium/regen-msvc/libsodium.vcxproj.filters.tpl +35 -0
  147. data/vendor/github.com/jedisct1/libsodium/regen-msvc/libsodium.vcxproj.tpl +93 -0
  148. data/vendor/github.com/jedisct1/libsodium/regen-msvc/regen-msvc.py +136 -0
  149. data/vendor/github.com/jedisct1/libsodium/regen-msvc/tl_libsodium.vcxproj.filters.tpl +23 -0
  150. data/vendor/github.com/jedisct1/libsodium/regen-msvc/tl_libsodium.vcxproj.tpl +331 -0
  151. data/vendor/github.com/jedisct1/libsodium/src/Makefile.am +3 -0
  152. data/vendor/github.com/jedisct1/libsodium/src/libsodium/Makefile.am +290 -0
  153. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +1079 -0
  154. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +399 -0
  155. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c +160 -0
  156. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_auth/crypto_auth.c +41 -0
  157. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.c +118 -0
  158. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512.c +118 -0
  159. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.c +93 -0
  160. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_box/crypto_box.c +114 -0
  161. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +115 -0
  162. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_box/crypto_box_seal.c +68 -0
  163. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c +204 -0
  164. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c +79 -0
  165. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c +156 -0
  166. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/core_ed25519.c +79 -0
  167. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c +2031 -0
  168. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/base.h +1344 -0
  169. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/base2.h +40 -0
  170. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/constants.h +20 -0
  171. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/fe.h +220 -0
  172. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/base.h +1344 -0
  173. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/base2.h +40 -0
  174. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/constants.h +21 -0
  175. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/fe.h +116 -0
  176. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.c +93 -0
  177. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/hsalsa20/core_hsalsa20.c +21 -0
  178. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20_ref2.c +95 -0
  179. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_core/salsa/ref/core_salsa_ref.c +195 -0
  180. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/generichash_blake2.c +55 -0
  181. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2.h +109 -0
  182. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-avx2.c +49 -0
  183. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-avx2.h +140 -0
  184. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c +93 -0
  185. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-sse41.c +87 -0
  186. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-sse41.h +103 -0
  187. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ssse3.c +90 -0
  188. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ssse3.h +103 -0
  189. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-load-avx2.h +340 -0
  190. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-load-sse2.h +164 -0
  191. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-load-sse41.h +307 -0
  192. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-ref.c +436 -0
  193. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/blake2b/ref/generichash_blake2b.c +111 -0
  194. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +91 -0
  195. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_hash/crypto_hash.c +20 -0
  196. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c +254 -0
  197. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256.c +13 -0
  198. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512_cp.c +282 -0
  199. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512.c +13 -0
  200. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_kdf/blake2b/kdf_blake2b.c +52 -0
  201. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_kdf/crypto_kdf.c +49 -0
  202. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_kx/crypto_kx.c +143 -0
  203. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.c +71 -0
  204. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c +124 -0
  205. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h +12 -0
  206. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +235 -0
  207. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +220 -0
  208. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c +90 -0
  209. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.h +21 -0
  210. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c +949 -0
  211. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.h +12 -0
  212. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c +549 -0
  213. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.h +297 -0
  214. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.c +305 -0
  215. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.h +33 -0
  216. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx2.c +239 -0
  217. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx512f.c +244 -0
  218. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c +233 -0
  219. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c +238 -0
  220. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.c +277 -0
  221. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.h +305 -0
  222. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.c +79 -0
  223. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.h +8 -0
  224. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-avx2.h +150 -0
  225. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-avx512f.h +145 -0
  226. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ref.h +40 -0
  227. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ssse3.h +120 -0
  228. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2i.c +290 -0
  229. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2id.c +234 -0
  230. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/crypto_pwhash.c +211 -0
  231. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c +263 -0
  232. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +98 -0
  233. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +375 -0
  234. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c +95 -0
  235. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.h +45 -0
  236. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +285 -0
  237. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c +108 -0
  238. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +400 -0
  239. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/crypto_scalarmult.c +33 -0
  240. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c +159 -0
  241. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.h +10 -0
  242. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/consts.S +25 -0
  243. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/consts_namespace.h +20 -0
  244. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.c +114 -0
  245. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.h +9 -0
  246. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h +26 -0
  247. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h +35 -0
  248. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_invert.c +58 -0
  249. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S +197 -0
  250. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_namespace.h +16 -0
  251. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S +172 -0
  252. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S +226 -0
  253. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c +78 -0
  254. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S +1440 -0
  255. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.h +18 -0
  256. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S +1295 -0
  257. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.h +18 -0
  258. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base_namespace.h +8 -0
  259. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_namespace.h +8 -0
  260. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/sandy2x.S +17 -0
  261. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c +59 -0
  262. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.h +11 -0
  263. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/ed25519/ref10/scalarmult_ed25519_ref10.c +86 -0
  264. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c +67 -0
  265. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +144 -0
  266. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_secretbox/xchacha20poly1305/secretbox_xchacha20poly1305.c +177 -0
  267. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c +89 -0
  268. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c +311 -0
  269. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c +34 -0
  270. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c +65 -0
  271. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash_ref.h +24 -0
  272. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphashx24_ref.c +71 -0
  273. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24.c +11 -0
  274. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_shorthash/siphash24/shorthash_siphashx24.c +11 -0
  275. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_sign/crypto_sign.c +115 -0
  276. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +91 -0
  277. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c +116 -0
  278. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +93 -0
  279. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +144 -0
  280. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign_ed25519_ref10.h +18 -0
  281. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519.c +97 -0
  282. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.c +180 -0
  283. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.h +8 -0
  284. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.c +174 -0
  285. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.h +8 -0
  286. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/u0.h +86 -0
  287. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/u1.h +98 -0
  288. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/u4.h +175 -0
  289. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/u8.h +357 -0
  290. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c +315 -0
  291. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/ref/chacha20_ref.h +8 -0
  292. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.c +130 -0
  293. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.h +22 -0
  294. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/crypto_stream.c +49 -0
  295. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/ref/salsa20_ref.c +120 -0
  296. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/ref/salsa20_ref.h +8 -0
  297. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20.c +100 -0
  298. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20.h +16 -0
  299. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6/salsa20_xmm6-asm.S +960 -0
  300. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6/salsa20_xmm6.c +31 -0
  301. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6/salsa20_xmm6.h +8 -0
  302. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-avx2.c +131 -0
  303. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-avx2.h +8 -0
  304. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-sse2.c +122 -0
  305. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-sse2.h +8 -0
  306. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/u0.h +195 -0
  307. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/u1.h +207 -0
  308. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/u4.h +547 -0
  309. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/u8.h +476 -0
  310. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012_ref.c +106 -0
  311. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012.c +26 -0
  312. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208_ref.c +106 -0
  313. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208.c +26 -0
  314. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/xchacha20/stream_xchacha20.c +69 -0
  315. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20.c +66 -0
  316. data/vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_verify/sodium/verify.c +98 -0
  317. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/Makefile.am +75 -0
  318. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/core.h +28 -0
  319. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_aead_aes256gcm.h +171 -0
  320. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h +174 -0
  321. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_aead_xchacha20poly1305.h +97 -0
  322. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_auth.h +44 -0
  323. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h +68 -0
  324. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h +67 -0
  325. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h +62 -0
  326. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_box.h +173 -0
  327. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xchacha20poly1305.h +159 -0
  328. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +109 -0
  329. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_core_ed25519.h +37 -0
  330. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_core_hchacha20.h +35 -0
  331. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_core_hsalsa20.h +35 -0
  332. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_core_salsa20.h +35 -0
  333. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_core_salsa2012.h +35 -0
  334. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_core_salsa208.h +39 -0
  335. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_generichash.h +75 -0
  336. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +117 -0
  337. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_hash.h +40 -0
  338. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +57 -0
  339. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +57 -0
  340. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_kdf.h +51 -0
  341. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_kdf_blake2b.h +42 -0
  342. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_kx.h +64 -0
  343. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +62 -0
  344. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +67 -0
  345. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_pwhash.h +147 -0
  346. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2i.h +122 -0
  347. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2id.h +122 -0
  348. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +120 -0
  349. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_scalarmult.h +45 -0
  350. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h +40 -0
  351. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_scalarmult_ed25519.h +41 -0
  352. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +91 -0
  353. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_secretbox_xchacha20poly1305.h +68 -0
  354. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +67 -0
  355. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h +102 -0
  356. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_shorthash.h +39 -0
  357. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_shorthash_siphash24.h +48 -0
  358. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_sign.h +103 -0
  359. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +114 -0
  360. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +55 -0
  361. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_stream.h +56 -0
  362. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h +98 -0
  363. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h +57 -0
  364. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h +50 -0
  365. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h +56 -0
  366. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_stream_xchacha20.h +57 -0
  367. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +57 -0
  368. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_verify_16.h +23 -0
  369. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_verify_32.h +23 -0
  370. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/crypto_verify_64.h +23 -0
  371. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/export.h +53 -0
  372. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/private/common.h +246 -0
  373. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/private/ed25519_ref10.h +125 -0
  374. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/private/ed25519_ref10_fe_25_5.h +1050 -0
  375. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/private/ed25519_ref10_fe_51.h +518 -0
  376. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/private/implementations.h +11 -0
  377. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/private/mutex.h +7 -0
  378. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/private/sse2_64_32.h +50 -0
  379. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/randombytes.h +68 -0
  380. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/randombytes_nativeclient.h +23 -0
  381. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h +19 -0
  382. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/randombytes_sysrandom.h +19 -0
  383. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/runtime.h +52 -0
  384. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/utils.h +170 -0
  385. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium/version.h.in +33 -0
  386. data/vendor/github.com/jedisct1/libsodium/src/libsodium/include/sodium.h +70 -0
  387. data/vendor/github.com/jedisct1/libsodium/src/libsodium/randombytes/nativeclient/randombytes_nativeclient.c +61 -0
  388. data/vendor/github.com/jedisct1/libsodium/src/libsodium/randombytes/randombytes.c +206 -0
  389. data/vendor/github.com/jedisct1/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +564 -0
  390. data/vendor/github.com/jedisct1/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +382 -0
  391. data/vendor/github.com/jedisct1/libsodium/src/libsodium/sodium/codecs.c +333 -0
  392. data/vendor/github.com/jedisct1/libsodium/src/libsodium/sodium/core.c +231 -0
  393. data/vendor/github.com/jedisct1/libsodium/src/libsodium/sodium/runtime.c +286 -0
  394. data/vendor/github.com/jedisct1/libsodium/src/libsodium/sodium/utils.c +737 -0
  395. data/vendor/github.com/jedisct1/libsodium/src/libsodium/sodium/version.c +30 -0
  396. data/vendor/github.com/jedisct1/libsodium/test/Makefile.am +5 -0
  397. data/vendor/github.com/jedisct1/libsodium/test/constcheck.sh +19 -0
  398. data/vendor/github.com/jedisct1/libsodium/test/default/Makefile.am +624 -0
  399. data/vendor/github.com/jedisct1/libsodium/test/default/aead_aes256gcm.c +3243 -0
  400. data/vendor/github.com/jedisct1/libsodium/test/default/aead_aes256gcm.exp +1 -0
  401. data/vendor/github.com/jedisct1/libsodium/test/default/aead_chacha20poly1305.c +372 -0
  402. data/vendor/github.com/jedisct1/libsodium/test/default/aead_chacha20poly1305.exp +63 -0
  403. data/vendor/github.com/jedisct1/libsodium/test/default/aead_xchacha20poly1305.c +198 -0
  404. data/vendor/github.com/jedisct1/libsodium/test/default/aead_xchacha20poly1305.exp +51 -0
  405. data/vendor/github.com/jedisct1/libsodium/test/default/auth.c +85 -0
  406. data/vendor/github.com/jedisct1/libsodium/test/default/auth.exp +30 -0
  407. data/vendor/github.com/jedisct1/libsodium/test/default/auth2.c +34 -0
  408. data/vendor/github.com/jedisct1/libsodium/test/default/auth2.exp +4 -0
  409. data/vendor/github.com/jedisct1/libsodium/test/default/auth3.c +31 -0
  410. data/vendor/github.com/jedisct1/libsodium/test/default/auth3.exp +1 -0
  411. data/vendor/github.com/jedisct1/libsodium/test/default/auth5.c +36 -0
  412. data/vendor/github.com/jedisct1/libsodium/test/default/auth5.exp +0 -0
  413. data/vendor/github.com/jedisct1/libsodium/test/default/auth6.c +23 -0
  414. data/vendor/github.com/jedisct1/libsodium/test/default/auth6.exp +8 -0
  415. data/vendor/github.com/jedisct1/libsodium/test/default/auth7.c +36 -0
  416. data/vendor/github.com/jedisct1/libsodium/test/default/auth7.exp +0 -0
  417. data/vendor/github.com/jedisct1/libsodium/test/default/box.c +112 -0
  418. data/vendor/github.com/jedisct1/libsodium/test/default/box.exp +38 -0
  419. data/vendor/github.com/jedisct1/libsodium/test/default/box2.c +80 -0
  420. data/vendor/github.com/jedisct1/libsodium/test/default/box2.exp +34 -0
  421. data/vendor/github.com/jedisct1/libsodium/test/default/box7.c +50 -0
  422. data/vendor/github.com/jedisct1/libsodium/test/default/box7.exp +0 -0
  423. data/vendor/github.com/jedisct1/libsodium/test/default/box8.c +58 -0
  424. data/vendor/github.com/jedisct1/libsodium/test/default/box8.exp +0 -0
  425. data/vendor/github.com/jedisct1/libsodium/test/default/box_easy.c +71 -0
  426. data/vendor/github.com/jedisct1/libsodium/test/default/box_easy.exp +3 -0
  427. data/vendor/github.com/jedisct1/libsodium/test/default/box_easy2.c +149 -0
  428. data/vendor/github.com/jedisct1/libsodium/test/default/box_easy2.exp +7 -0
  429. data/vendor/github.com/jedisct1/libsodium/test/default/box_seal.c +44 -0
  430. data/vendor/github.com/jedisct1/libsodium/test/default/box_seal.exp +4 -0
  431. data/vendor/github.com/jedisct1/libsodium/test/default/box_seed.c +30 -0
  432. data/vendor/github.com/jedisct1/libsodium/test/default/box_seed.exp +8 -0
  433. data/vendor/github.com/jedisct1/libsodium/test/default/chacha20.c +186 -0
  434. data/vendor/github.com/jedisct1/libsodium/test/default/chacha20.exp +64 -0
  435. data/vendor/github.com/jedisct1/libsodium/test/default/cmptest.h +138 -0
  436. data/vendor/github.com/jedisct1/libsodium/test/default/codecs.c +226 -0
  437. data/vendor/github.com/jedisct1/libsodium/test/default/codecs.exp +28 -0
  438. data/vendor/github.com/jedisct1/libsodium/test/default/core1.c +41 -0
  439. data/vendor/github.com/jedisct1/libsodium/test/default/core1.exp +4 -0
  440. data/vendor/github.com/jedisct1/libsodium/test/default/core2.c +38 -0
  441. data/vendor/github.com/jedisct1/libsodium/test/default/core2.exp +4 -0
  442. data/vendor/github.com/jedisct1/libsodium/test/default/core3.c +115 -0
  443. data/vendor/github.com/jedisct1/libsodium/test/default/core3.exp +3 -0
  444. data/vendor/github.com/jedisct1/libsodium/test/default/core4.c +36 -0
  445. data/vendor/github.com/jedisct1/libsodium/test/default/core4.exp +8 -0
  446. data/vendor/github.com/jedisct1/libsodium/test/default/core5.c +33 -0
  447. data/vendor/github.com/jedisct1/libsodium/test/default/core5.exp +4 -0
  448. data/vendor/github.com/jedisct1/libsodium/test/default/core6.c +52 -0
  449. data/vendor/github.com/jedisct1/libsodium/test/default/core6.exp +4 -0
  450. data/vendor/github.com/jedisct1/libsodium/test/default/core_ed25519.c +151 -0
  451. data/vendor/github.com/jedisct1/libsodium/test/default/core_ed25519.exp +1 -0
  452. data/vendor/github.com/jedisct1/libsodium/test/default/ed25519_convert.c +76 -0
  453. data/vendor/github.com/jedisct1/libsodium/test/default/ed25519_convert.exp +3 -0
  454. data/vendor/github.com/jedisct1/libsodium/test/default/generichash.c +1406 -0
  455. data/vendor/github.com/jedisct1/libsodium/test/default/generichash.exp +65 -0
  456. data/vendor/github.com/jedisct1/libsodium/test/default/generichash2.c +56 -0
  457. data/vendor/github.com/jedisct1/libsodium/test/default/generichash2.exp +64 -0
  458. data/vendor/github.com/jedisct1/libsodium/test/default/generichash3.c +176 -0
  459. data/vendor/github.com/jedisct1/libsodium/test/default/generichash3.exp +75 -0
  460. data/vendor/github.com/jedisct1/libsodium/test/default/hash.c +47 -0
  461. data/vendor/github.com/jedisct1/libsodium/test/default/hash.exp +4 -0
  462. data/vendor/github.com/jedisct1/libsodium/test/default/hash2.exp +1 -0
  463. data/vendor/github.com/jedisct1/libsodium/test/default/hash3.c +20 -0
  464. data/vendor/github.com/jedisct1/libsodium/test/default/hash3.exp +1 -0
  465. data/vendor/github.com/jedisct1/libsodium/test/default/index.html.tpl +98 -0
  466. data/vendor/github.com/jedisct1/libsodium/test/default/kdf.c +67 -0
  467. data/vendor/github.com/jedisct1/libsodium/test/default/kdf.exp +77 -0
  468. data/vendor/github.com/jedisct1/libsodium/test/default/keygen.c +67 -0
  469. data/vendor/github.com/jedisct1/libsodium/test/default/keygen.exp +1 -0
  470. data/vendor/github.com/jedisct1/libsodium/test/default/kx.c +149 -0
  471. data/vendor/github.com/jedisct1/libsodium/test/default/kx.exp +7 -0
  472. data/vendor/github.com/jedisct1/libsodium/test/default/metamorphic.c +187 -0
  473. data/vendor/github.com/jedisct1/libsodium/test/default/metamorphic.exp +1 -0
  474. data/vendor/github.com/jedisct1/libsodium/test/default/misuse.c +173 -0
  475. data/vendor/github.com/jedisct1/libsodium/test/default/misuse.exp +0 -0
  476. data/vendor/github.com/jedisct1/libsodium/test/default/nacl-test-wrapper.sh +35 -0
  477. data/vendor/github.com/jedisct1/libsodium/test/default/onetimeauth.c +63 -0
  478. data/vendor/github.com/jedisct1/libsodium/test/default/onetimeauth.exp +4 -0
  479. data/vendor/github.com/jedisct1/libsodium/test/default/onetimeauth2.c +33 -0
  480. data/vendor/github.com/jedisct1/libsodium/test/default/onetimeauth2.exp +1 -0
  481. data/vendor/github.com/jedisct1/libsodium/test/default/onetimeauth7.c +36 -0
  482. data/vendor/github.com/jedisct1/libsodium/test/default/onetimeauth7.exp +0 -0
  483. data/vendor/github.com/jedisct1/libsodium/test/default/pre.js.inc +20 -0
  484. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_argon2i.c +452 -0
  485. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_argon2i.exp +11 -0
  486. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_argon2id.c +503 -0
  487. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_argon2id.exp +14 -0
  488. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_scrypt.c +400 -0
  489. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_scrypt.exp +38 -0
  490. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_scrypt_ll.c +59 -0
  491. data/vendor/github.com/jedisct1/libsodium/test/default/pwhash_scrypt_ll.exp +15 -0
  492. data/vendor/github.com/jedisct1/libsodium/test/default/randombytes.c +167 -0
  493. data/vendor/github.com/jedisct1/libsodium/test/default/randombytes.exp +2 -0
  494. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult.c +71 -0
  495. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult.exp +4 -0
  496. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult2.c +32 -0
  497. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult2.exp +4 -0
  498. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult5.c +40 -0
  499. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult5.exp +4 -0
  500. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult6.c +54 -0
  501. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult6.exp +4 -0
  502. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult7.c +34 -0
  503. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult7.exp +1 -0
  504. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult_ed25519.c +90 -0
  505. data/vendor/github.com/jedisct1/libsodium/test/default/scalarmult_ed25519.exp +1 -0
  506. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox.c +84 -0
  507. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox.exp +38 -0
  508. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox2.c +55 -0
  509. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox2.exp +17 -0
  510. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox7.c +36 -0
  511. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox7.exp +0 -0
  512. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox8.c +41 -0
  513. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox8.exp +0 -0
  514. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox_easy.c +124 -0
  515. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox_easy.exp +9 -0
  516. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox_easy2.c +72 -0
  517. data/vendor/github.com/jedisct1/libsodium/test/default/secretbox_easy2.exp +5 -0
  518. data/vendor/github.com/jedisct1/libsodium/test/default/secretstream.c +329 -0
  519. data/vendor/github.com/jedisct1/libsodium/test/default/secretstream.exp +1 -0
  520. data/vendor/github.com/jedisct1/libsodium/test/default/shorthash.c +35 -0
  521. data/vendor/github.com/jedisct1/libsodium/test/default/shorthash.exp +64 -0
  522. data/vendor/github.com/jedisct1/libsodium/test/default/sign.c +1331 -0
  523. data/vendor/github.com/jedisct1/libsodium/test/default/sign.exp +5 -0
  524. data/vendor/github.com/jedisct1/libsodium/test/default/siphashx24.c +33 -0
  525. data/vendor/github.com/jedisct1/libsodium/test/default/siphashx24.exp +64 -0
  526. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_core.c +42 -0
  527. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_core.exp +1 -0
  528. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_utils.c +178 -0
  529. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_utils.exp +16 -0
  530. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_utils2.c +98 -0
  531. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_utils2.exp +3 -0
  532. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_utils3.c +68 -0
  533. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_utils3.exp +2 -0
  534. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_version.c +18 -0
  535. data/vendor/github.com/jedisct1/libsodium/test/default/sodium_version.exp +3 -0
  536. data/vendor/github.com/jedisct1/libsodium/test/default/stream.c +65 -0
  537. data/vendor/github.com/jedisct1/libsodium/test/default/stream.exp +67 -0
  538. data/vendor/github.com/jedisct1/libsodium/test/default/stream2.c +47 -0
  539. data/vendor/github.com/jedisct1/libsodium/test/default/stream2.exp +2 -0
  540. data/vendor/github.com/jedisct1/libsodium/test/default/stream3.c +31 -0
  541. data/vendor/github.com/jedisct1/libsodium/test/default/stream3.exp +4 -0
  542. data/vendor/github.com/jedisct1/libsodium/test/default/stream4.c +50 -0
  543. data/vendor/github.com/jedisct1/libsodium/test/default/stream4.exp +17 -0
  544. data/vendor/github.com/jedisct1/libsodium/test/default/verify1.c +76 -0
  545. data/vendor/github.com/jedisct1/libsodium/test/default/verify1.exp +2 -0
  546. data/vendor/github.com/jedisct1/libsodium/test/default/wintest.bat +56 -0
  547. data/vendor/github.com/jedisct1/libsodium/test/default/xchacha20.c +428 -0
  548. data/vendor/github.com/jedisct1/libsodium/test/default/xchacha20.exp +5 -0
  549. data/vendor/github.com/jedisct1/libsodium/test/quirks/quirks.h +51 -0
  550. metadata +613 -0
@@ -0,0 +1,118 @@
1
+
2
+ #include <stddef.h>
3
+ #include <stdint.h>
4
+ #include <string.h>
5
+
6
+ #include "crypto_auth_hmacsha256.h"
7
+ #include "crypto_hash_sha256.h"
8
+ #include "crypto_verify_32.h"
9
+ #include "randombytes.h"
10
+ #include "utils.h"
11
+
12
+ size_t
13
+ crypto_auth_hmacsha256_bytes(void)
14
+ {
15
+ return crypto_auth_hmacsha256_BYTES;
16
+ }
17
+
18
+ size_t
19
+ crypto_auth_hmacsha256_keybytes(void)
20
+ {
21
+ return crypto_auth_hmacsha256_KEYBYTES;
22
+ }
23
+
24
+ size_t
25
+ crypto_auth_hmacsha256_statebytes(void)
26
+ {
27
+ return sizeof(crypto_auth_hmacsha256_state);
28
+ }
29
+
30
+ void
31
+ crypto_auth_hmacsha256_keygen(unsigned char k[crypto_auth_hmacsha256_KEYBYTES])
32
+ {
33
+ randombytes_buf(k, crypto_auth_hmacsha256_KEYBYTES);
34
+ }
35
+
36
+ int
37
+ crypto_auth_hmacsha256_init(crypto_auth_hmacsha256_state *state,
38
+ const unsigned char *key, size_t keylen)
39
+ {
40
+ unsigned char pad[64];
41
+ unsigned char khash[32];
42
+ size_t i;
43
+
44
+ if (keylen > 64) {
45
+ crypto_hash_sha256_init(&state->ictx);
46
+ crypto_hash_sha256_update(&state->ictx, key, keylen);
47
+ crypto_hash_sha256_final(&state->ictx, khash);
48
+ key = khash;
49
+ keylen = 32;
50
+ }
51
+ crypto_hash_sha256_init(&state->ictx);
52
+ memset(pad, 0x36, 64);
53
+ for (i = 0; i < keylen; i++) {
54
+ pad[i] ^= key[i];
55
+ }
56
+ crypto_hash_sha256_update(&state->ictx, pad, 64);
57
+
58
+ crypto_hash_sha256_init(&state->octx);
59
+ memset(pad, 0x5c, 64);
60
+ for (i = 0; i < keylen; i++) {
61
+ pad[i] ^= key[i];
62
+ }
63
+ crypto_hash_sha256_update(&state->octx, pad, 64);
64
+
65
+ sodium_memzero((void *) pad, sizeof pad);
66
+ sodium_memzero((void *) khash, sizeof khash);
67
+
68
+ return 0;
69
+ }
70
+
71
+ int
72
+ crypto_auth_hmacsha256_update(crypto_auth_hmacsha256_state *state,
73
+ const unsigned char *in, unsigned long long inlen)
74
+ {
75
+ crypto_hash_sha256_update(&state->ictx, in, inlen);
76
+
77
+ return 0;
78
+ }
79
+
80
+ int
81
+ crypto_auth_hmacsha256_final(crypto_auth_hmacsha256_state *state,
82
+ unsigned char *out)
83
+ {
84
+ unsigned char ihash[32];
85
+
86
+ crypto_hash_sha256_final(&state->ictx, ihash);
87
+ crypto_hash_sha256_update(&state->octx, ihash, 32);
88
+ crypto_hash_sha256_final(&state->octx, out);
89
+
90
+ sodium_memzero((void *) ihash, sizeof ihash);
91
+
92
+ return 0;
93
+ }
94
+
95
+ int
96
+ crypto_auth_hmacsha256(unsigned char *out, const unsigned char *in,
97
+ unsigned long long inlen, const unsigned char *k)
98
+ {
99
+ crypto_auth_hmacsha256_state state;
100
+
101
+ crypto_auth_hmacsha256_init(&state, k, crypto_auth_hmacsha256_KEYBYTES);
102
+ crypto_auth_hmacsha256_update(&state, in, inlen);
103
+ crypto_auth_hmacsha256_final(&state, out);
104
+
105
+ return 0;
106
+ }
107
+
108
+ int
109
+ crypto_auth_hmacsha256_verify(const unsigned char *h, const unsigned char *in,
110
+ unsigned long long inlen, const unsigned char *k)
111
+ {
112
+ unsigned char correct[32];
113
+
114
+ crypto_auth_hmacsha256(correct, in, inlen, k);
115
+
116
+ return crypto_verify_32(h, correct) | (-(h == correct)) |
117
+ sodium_memcmp(correct, h, 32);
118
+ }
@@ -0,0 +1,118 @@
1
+
2
+ #include <stddef.h>
3
+ #include <stdint.h>
4
+ #include <string.h>
5
+
6
+ #include "crypto_auth_hmacsha512.h"
7
+ #include "crypto_hash_sha512.h"
8
+ #include "crypto_verify_64.h"
9
+ #include "randombytes.h"
10
+ #include "utils.h"
11
+
12
+ size_t
13
+ crypto_auth_hmacsha512_bytes(void)
14
+ {
15
+ return crypto_auth_hmacsha512_BYTES;
16
+ }
17
+
18
+ size_t
19
+ crypto_auth_hmacsha512_keybytes(void)
20
+ {
21
+ return crypto_auth_hmacsha512_KEYBYTES;
22
+ }
23
+
24
+ size_t
25
+ crypto_auth_hmacsha512_statebytes(void)
26
+ {
27
+ return sizeof(crypto_auth_hmacsha512_state);
28
+ }
29
+
30
+ void
31
+ crypto_auth_hmacsha512_keygen(unsigned char k[crypto_auth_hmacsha512_KEYBYTES])
32
+ {
33
+ randombytes_buf(k, crypto_auth_hmacsha512_KEYBYTES);
34
+ }
35
+
36
+ int
37
+ crypto_auth_hmacsha512_init(crypto_auth_hmacsha512_state *state,
38
+ const unsigned char *key, size_t keylen)
39
+ {
40
+ unsigned char pad[128];
41
+ unsigned char khash[64];
42
+ size_t i;
43
+
44
+ if (keylen > 128) {
45
+ crypto_hash_sha512_init(&state->ictx);
46
+ crypto_hash_sha512_update(&state->ictx, key, keylen);
47
+ crypto_hash_sha512_final(&state->ictx, khash);
48
+ key = khash;
49
+ keylen = 64;
50
+ }
51
+ crypto_hash_sha512_init(&state->ictx);
52
+ memset(pad, 0x36, 128);
53
+ for (i = 0; i < keylen; i++) {
54
+ pad[i] ^= key[i];
55
+ }
56
+ crypto_hash_sha512_update(&state->ictx, pad, 128);
57
+
58
+ crypto_hash_sha512_init(&state->octx);
59
+ memset(pad, 0x5c, 128);
60
+ for (i = 0; i < keylen; i++) {
61
+ pad[i] ^= key[i];
62
+ }
63
+ crypto_hash_sha512_update(&state->octx, pad, 128);
64
+
65
+ sodium_memzero((void *) pad, sizeof pad);
66
+ sodium_memzero((void *) khash, sizeof khash);
67
+
68
+ return 0;
69
+ }
70
+
71
+ int
72
+ crypto_auth_hmacsha512_update(crypto_auth_hmacsha512_state *state,
73
+ const unsigned char *in, unsigned long long inlen)
74
+ {
75
+ crypto_hash_sha512_update(&state->ictx, in, inlen);
76
+
77
+ return 0;
78
+ }
79
+
80
+ int
81
+ crypto_auth_hmacsha512_final(crypto_auth_hmacsha512_state *state,
82
+ unsigned char *out)
83
+ {
84
+ unsigned char ihash[64];
85
+
86
+ crypto_hash_sha512_final(&state->ictx, ihash);
87
+ crypto_hash_sha512_update(&state->octx, ihash, 64);
88
+ crypto_hash_sha512_final(&state->octx, out);
89
+
90
+ sodium_memzero((void *) ihash, sizeof ihash);
91
+
92
+ return 0;
93
+ }
94
+
95
+ int
96
+ crypto_auth_hmacsha512(unsigned char *out, const unsigned char *in,
97
+ unsigned long long inlen, const unsigned char *k)
98
+ {
99
+ crypto_auth_hmacsha512_state state;
100
+
101
+ crypto_auth_hmacsha512_init(&state, k, crypto_auth_hmacsha512_KEYBYTES);
102
+ crypto_auth_hmacsha512_update(&state, in, inlen);
103
+ crypto_auth_hmacsha512_final(&state, out);
104
+
105
+ return 0;
106
+ }
107
+
108
+ int
109
+ crypto_auth_hmacsha512_verify(const unsigned char *h, const unsigned char *in,
110
+ unsigned long long inlen, const unsigned char *k)
111
+ {
112
+ unsigned char correct[64];
113
+
114
+ crypto_auth_hmacsha512(correct, in, inlen, k);
115
+
116
+ return crypto_verify_64(h, correct) | (-(h == correct)) |
117
+ sodium_memcmp(correct, h, 64);
118
+ }
@@ -0,0 +1,93 @@
1
+
2
+ #include <stddef.h>
3
+ #include <stdint.h>
4
+ #include <string.h>
5
+
6
+ #include "crypto_auth_hmacsha512.h"
7
+ #include "crypto_auth_hmacsha512256.h"
8
+ #include "crypto_hash_sha512.h"
9
+ #include "crypto_verify_32.h"
10
+ #include "randombytes.h"
11
+ #include "utils.h"
12
+
13
+ size_t
14
+ crypto_auth_hmacsha512256_bytes(void)
15
+ {
16
+ return crypto_auth_hmacsha512256_BYTES;
17
+ }
18
+
19
+ size_t
20
+ crypto_auth_hmacsha512256_keybytes(void)
21
+ {
22
+ return crypto_auth_hmacsha512256_KEYBYTES;
23
+ }
24
+
25
+ size_t
26
+ crypto_auth_hmacsha512256_statebytes(void)
27
+ {
28
+ return sizeof(crypto_auth_hmacsha512256_state);
29
+ }
30
+
31
+ void
32
+ crypto_auth_hmacsha512256_keygen(
33
+ unsigned char k[crypto_auth_hmacsha512256_KEYBYTES])
34
+ {
35
+ randombytes_buf(k, crypto_auth_hmacsha512256_KEYBYTES);
36
+ }
37
+
38
+ int
39
+ crypto_auth_hmacsha512256_init(crypto_auth_hmacsha512256_state *state,
40
+ const unsigned char *key, size_t keylen)
41
+ {
42
+ return crypto_auth_hmacsha512_init((crypto_auth_hmacsha512_state *) state,
43
+ key, keylen);
44
+ }
45
+
46
+ int
47
+ crypto_auth_hmacsha512256_update(crypto_auth_hmacsha512256_state *state,
48
+ const unsigned char *in,
49
+ unsigned long long inlen)
50
+ {
51
+ return crypto_auth_hmacsha512_update((crypto_auth_hmacsha512_state *) state,
52
+ in, inlen);
53
+ }
54
+
55
+ int
56
+ crypto_auth_hmacsha512256_final(crypto_auth_hmacsha512256_state *state,
57
+ unsigned char *out)
58
+ {
59
+ unsigned char out0[64];
60
+
61
+ crypto_auth_hmacsha512_final((crypto_auth_hmacsha512_state *) state, out0);
62
+ memcpy(out, out0, 32);
63
+
64
+ return 0;
65
+ }
66
+
67
+ int
68
+ crypto_auth_hmacsha512256(unsigned char *out, const unsigned char *in,
69
+ unsigned long long inlen, const unsigned char *k)
70
+ {
71
+ crypto_auth_hmacsha512256_state state;
72
+
73
+ crypto_auth_hmacsha512256_init(&state, k,
74
+ crypto_auth_hmacsha512256_KEYBYTES);
75
+ crypto_auth_hmacsha512256_update(&state, in, inlen);
76
+ crypto_auth_hmacsha512256_final(&state, out);
77
+
78
+ return 0;
79
+ }
80
+
81
+ int
82
+ crypto_auth_hmacsha512256_verify(const unsigned char *h,
83
+ const unsigned char *in,
84
+ unsigned long long inlen,
85
+ const unsigned char *k)
86
+ {
87
+ unsigned char correct[32];
88
+
89
+ crypto_auth_hmacsha512256(correct, in, inlen, k);
90
+
91
+ return crypto_verify_32(h, correct) | (-(h == correct)) |
92
+ sodium_memcmp(correct, h, 32);
93
+ }
@@ -0,0 +1,114 @@
1
+
2
+ #include "crypto_box.h"
3
+
4
+ size_t
5
+ crypto_box_seedbytes(void)
6
+ {
7
+ return crypto_box_SEEDBYTES;
8
+ }
9
+
10
+ size_t
11
+ crypto_box_publickeybytes(void)
12
+ {
13
+ return crypto_box_PUBLICKEYBYTES;
14
+ }
15
+
16
+ size_t
17
+ crypto_box_secretkeybytes(void)
18
+ {
19
+ return crypto_box_SECRETKEYBYTES;
20
+ }
21
+
22
+ size_t
23
+ crypto_box_beforenmbytes(void)
24
+ {
25
+ return crypto_box_BEFORENMBYTES;
26
+ }
27
+
28
+ size_t
29
+ crypto_box_noncebytes(void)
30
+ {
31
+ return crypto_box_NONCEBYTES;
32
+ }
33
+
34
+ size_t
35
+ crypto_box_zerobytes(void)
36
+ {
37
+ return crypto_box_ZEROBYTES;
38
+ }
39
+
40
+ size_t
41
+ crypto_box_boxzerobytes(void)
42
+ {
43
+ return crypto_box_BOXZEROBYTES;
44
+ }
45
+
46
+ size_t
47
+ crypto_box_macbytes(void)
48
+ {
49
+ return crypto_box_MACBYTES;
50
+ }
51
+
52
+ size_t
53
+ crypto_box_messagebytes_max(void)
54
+ {
55
+ return crypto_box_MESSAGEBYTES_MAX;
56
+ }
57
+
58
+ const char *
59
+ crypto_box_primitive(void)
60
+ {
61
+ return crypto_box_PRIMITIVE;
62
+ }
63
+
64
+ int
65
+ crypto_box_seed_keypair(unsigned char *pk, unsigned char *sk,
66
+ const unsigned char *seed)
67
+ {
68
+ return crypto_box_curve25519xsalsa20poly1305_seed_keypair(pk, sk, seed);
69
+ }
70
+
71
+ int
72
+ crypto_box_keypair(unsigned char *pk, unsigned char *sk)
73
+ {
74
+ return crypto_box_curve25519xsalsa20poly1305_keypair(pk, sk);
75
+ }
76
+
77
+ int
78
+ crypto_box_beforenm(unsigned char *k, const unsigned char *pk,
79
+ const unsigned char *sk)
80
+ {
81
+ return crypto_box_curve25519xsalsa20poly1305_beforenm(k, pk, sk);
82
+ }
83
+
84
+ int
85
+ crypto_box_afternm(unsigned char *c, const unsigned char *m,
86
+ unsigned long long mlen, const unsigned char *n,
87
+ const unsigned char *k)
88
+ {
89
+ return crypto_box_curve25519xsalsa20poly1305_afternm(c, m, mlen, n, k);
90
+ }
91
+
92
+ int
93
+ crypto_box_open_afternm(unsigned char *m, const unsigned char *c,
94
+ unsigned long long clen, const unsigned char *n,
95
+ const unsigned char *k)
96
+ {
97
+ return crypto_box_curve25519xsalsa20poly1305_open_afternm(m, c, clen, n, k);
98
+ }
99
+
100
+ int
101
+ crypto_box(unsigned char *c, const unsigned char *m,
102
+ unsigned long long mlen, const unsigned char *n,
103
+ const unsigned char *pk, const unsigned char *sk)
104
+ {
105
+ return crypto_box_curve25519xsalsa20poly1305(c, m, mlen, n, pk, sk);
106
+ }
107
+
108
+ int
109
+ crypto_box_open(unsigned char *m, const unsigned char *c,
110
+ unsigned long long clen, const unsigned char *n,
111
+ const unsigned char *pk, const unsigned char *sk)
112
+ {
113
+ return crypto_box_curve25519xsalsa20poly1305_open(m, c, clen, n, pk, sk);
114
+ }
@@ -0,0 +1,115 @@
1
+
2
+ #include <limits.h>
3
+ #include <stdint.h>
4
+ #include <stdlib.h>
5
+
6
+ #include "core.h"
7
+ #include "crypto_box.h"
8
+ #include "crypto_secretbox.h"
9
+ #include "private/common.h"
10
+ #include "utils.h"
11
+
12
+ int
13
+ crypto_box_detached_afternm(unsigned char *c, unsigned char *mac,
14
+ const unsigned char *m, unsigned long long mlen,
15
+ const unsigned char *n, const unsigned char *k)
16
+ {
17
+ return crypto_secretbox_detached(c, mac, m, mlen, n, k);
18
+ }
19
+
20
+ int
21
+ crypto_box_detached(unsigned char *c, unsigned char *mac,
22
+ const unsigned char *m, unsigned long long mlen,
23
+ const unsigned char *n, const unsigned char *pk,
24
+ const unsigned char *sk)
25
+ {
26
+ unsigned char k[crypto_box_BEFORENMBYTES];
27
+ int ret;
28
+
29
+ COMPILER_ASSERT(crypto_box_BEFORENMBYTES >= crypto_secretbox_KEYBYTES);
30
+ if (crypto_box_beforenm(k, pk, sk) != 0) {
31
+ return -1;
32
+ }
33
+ ret = crypto_box_detached_afternm(c, mac, m, mlen, n, k);
34
+ sodium_memzero(k, sizeof k);
35
+
36
+ return ret;
37
+ }
38
+
39
+ int
40
+ crypto_box_easy_afternm(unsigned char *c, const unsigned char *m,
41
+ unsigned long long mlen, const unsigned char *n,
42
+ const unsigned char *k)
43
+ {
44
+ if (mlen > crypto_box_MESSAGEBYTES_MAX) {
45
+ sodium_misuse();
46
+ }
47
+ return crypto_box_detached_afternm(c + crypto_box_MACBYTES, c, m, mlen, n,
48
+ k);
49
+ }
50
+
51
+ int
52
+ crypto_box_easy(unsigned char *c, const unsigned char *m,
53
+ unsigned long long mlen, const unsigned char *n,
54
+ const unsigned char *pk, const unsigned char *sk)
55
+ {
56
+ if (mlen > crypto_box_MESSAGEBYTES_MAX) {
57
+ sodium_misuse();
58
+ }
59
+ return crypto_box_detached(c + crypto_box_MACBYTES, c, m, mlen, n,
60
+ pk, sk);
61
+ }
62
+
63
+ int
64
+ crypto_box_open_detached_afternm(unsigned char *m, const unsigned char *c,
65
+ const unsigned char *mac,
66
+ unsigned long long clen,
67
+ const unsigned char *n,
68
+ const unsigned char *k)
69
+ {
70
+ return crypto_secretbox_open_detached(m, c, mac, clen, n, k);
71
+ }
72
+
73
+ int
74
+ crypto_box_open_detached(unsigned char *m, const unsigned char *c,
75
+ const unsigned char *mac,
76
+ unsigned long long clen, const unsigned char *n,
77
+ const unsigned char *pk, const unsigned char *sk)
78
+ {
79
+ unsigned char k[crypto_box_BEFORENMBYTES];
80
+ int ret;
81
+
82
+ if (crypto_box_beforenm(k, pk, sk) != 0) {
83
+ return -1;
84
+ }
85
+ ret = crypto_box_open_detached_afternm(m, c, mac, clen, n, k);
86
+ sodium_memzero(k, sizeof k);
87
+
88
+ return ret;
89
+ }
90
+
91
+ int
92
+ crypto_box_open_easy_afternm(unsigned char *m, const unsigned char *c,
93
+ unsigned long long clen, const unsigned char *n,
94
+ const unsigned char *k)
95
+ {
96
+ if (clen < crypto_box_MACBYTES) {
97
+ return -1;
98
+ }
99
+ return crypto_box_open_detached_afternm(m, c + crypto_box_MACBYTES, c,
100
+ clen - crypto_box_MACBYTES,
101
+ n, k);
102
+ }
103
+
104
+ int
105
+ crypto_box_open_easy(unsigned char *m, const unsigned char *c,
106
+ unsigned long long clen, const unsigned char *n,
107
+ const unsigned char *pk, const unsigned char *sk)
108
+ {
109
+ if (clen < crypto_box_MACBYTES) {
110
+ return -1;
111
+ }
112
+ return crypto_box_open_detached(m, c + crypto_box_MACBYTES, c,
113
+ clen - crypto_box_MACBYTES,
114
+ n, pk, sk);
115
+ }
@@ -0,0 +1,68 @@
1
+
2
+ #include <string.h>
3
+
4
+ #include "crypto_box.h"
5
+ #include "crypto_generichash.h"
6
+ #include "private/common.h"
7
+ #include "utils.h"
8
+
9
+ static int
10
+ _crypto_box_seal_nonce(unsigned char *nonce,
11
+ const unsigned char *pk1, const unsigned char *pk2)
12
+ {
13
+ crypto_generichash_state st;
14
+
15
+ crypto_generichash_init(&st, NULL, 0U, crypto_box_NONCEBYTES);
16
+ crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES);
17
+ crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES);
18
+ crypto_generichash_final(&st, nonce, crypto_box_NONCEBYTES);
19
+
20
+ return 0;
21
+ }
22
+
23
+ int
24
+ crypto_box_seal(unsigned char *c, const unsigned char *m,
25
+ unsigned long long mlen, const unsigned char *pk)
26
+ {
27
+ unsigned char nonce[crypto_box_NONCEBYTES];
28
+ unsigned char epk[crypto_box_PUBLICKEYBYTES];
29
+ unsigned char esk[crypto_box_SECRETKEYBYTES];
30
+ int ret;
31
+
32
+ if (crypto_box_keypair(epk, esk) != 0) {
33
+ return -1; /* LCOV_EXCL_LINE */
34
+ }
35
+ memcpy(c, epk, crypto_box_PUBLICKEYBYTES);
36
+ _crypto_box_seal_nonce(nonce, epk, pk);
37
+ ret = crypto_box_easy(c + crypto_box_PUBLICKEYBYTES, m, mlen,
38
+ nonce, pk, esk);
39
+ sodium_memzero(esk, sizeof esk);
40
+ sodium_memzero(epk, sizeof epk);
41
+ sodium_memzero(nonce, sizeof nonce);
42
+
43
+ return ret;
44
+ }
45
+
46
+ int
47
+ crypto_box_seal_open(unsigned char *m, const unsigned char *c,
48
+ unsigned long long clen,
49
+ const unsigned char *pk, const unsigned char *sk)
50
+ {
51
+ unsigned char nonce[crypto_box_NONCEBYTES];
52
+
53
+ if (clen < crypto_box_SEALBYTES) {
54
+ return -1;
55
+ }
56
+ _crypto_box_seal_nonce(nonce, c, pk);
57
+
58
+ COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES);
59
+ return crypto_box_open_easy(m, c + crypto_box_PUBLICKEYBYTES,
60
+ clen - crypto_box_PUBLICKEYBYTES,
61
+ nonce, c, sk);
62
+ }
63
+
64
+ size_t
65
+ crypto_box_sealbytes(void)
66
+ {
67
+ return crypto_box_SEALBYTES;
68
+ }