rbnacl-libsodium 1.0.13 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +5 -0
  3. data/lib/rbnacl/libsodium.rb +1 -0
  4. data/lib/rbnacl/libsodium/version.rb +1 -1
  5. data/vendor/libsodium/AUTHORS +2 -2
  6. data/vendor/libsodium/ChangeLog +64 -0
  7. data/vendor/libsodium/Makefile.am +1 -0
  8. data/vendor/libsodium/README.markdown +1 -3
  9. data/vendor/libsodium/THANKS +13 -3
  10. data/vendor/libsodium/builds/Makefile.am +65 -0
  11. data/vendor/libsodium/builds/msvc/resource.rc +2 -2
  12. data/vendor/libsodium/builds/msvc/version.h +3 -3
  13. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +168 -173
  14. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +382 -394
  15. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +168 -173
  16. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +382 -394
  17. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +168 -173
  18. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +382 -394
  19. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +168 -173
  20. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +382 -394
  21. data/vendor/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj +168 -173
  22. data/vendor/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj.filters +382 -394
  23. data/vendor/libsodium/configure.ac +59 -10
  24. data/vendor/libsodium/contrib/Findsodium.cmake +2 -0
  25. data/vendor/libsodium/dist-build/emscripten-symbols.def +72 -32
  26. data/vendor/libsodium/dist-build/emscripten.sh +33 -6
  27. data/vendor/libsodium/dist-build/generate-emscripten-symbols.sh +52 -38
  28. data/vendor/libsodium/dist-build/ios.sh +2 -2
  29. data/vendor/libsodium/libsodium.vcxproj +168 -173
  30. data/vendor/libsodium/libsodium.vcxproj.filters +220 -235
  31. data/vendor/libsodium/m4/ax_check_catchable_abrt.m4 +57 -0
  32. data/vendor/libsodium/m4/ax_check_gnu_make.m4 +2 -2
  33. data/vendor/libsodium/m4/ax_pthread.m4 +2 -2
  34. data/vendor/libsodium/msvc-scripts/process.bat +3 -3
  35. data/vendor/libsodium/packaging/dotnet-core/README.md +5 -5
  36. data/vendor/libsodium/packaging/dotnet-core/libsodium.props +5 -2
  37. data/vendor/libsodium/packaging/dotnet-core/prepare.py +13 -31
  38. data/vendor/libsodium/packaging/dotnet-core/recipes/linux-x64 +4 -0
  39. data/vendor/libsodium/packaging/nuget/package.config +1 -1
  40. data/vendor/libsodium/src/libsodium/Makefile.am +11 -12
  41. data/vendor/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +11 -4
  42. data/vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +17 -4
  43. data/vendor/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c +8 -1
  44. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box.c +6 -0
  45. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +5 -4
  46. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c +11 -4
  47. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c +6 -0
  48. data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +78 -17
  49. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-ref.c +74 -64
  50. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512_cp.c +2 -0
  51. data/vendor/libsodium/src/libsodium/crypto_kx/crypto_kx.c +7 -0
  52. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +1 -1
  53. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +1 -0
  54. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c +17 -17
  55. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c +53 -48
  56. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.h +37 -11
  57. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.c +23 -179
  58. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx2.c +4 -12
  59. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx512f.c +244 -0
  60. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c +3 -12
  61. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c +4 -12
  62. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.c +1 -5
  63. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.h +1 -1
  64. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-avx512f.h +145 -0
  65. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2i.c +91 -14
  66. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2id.c +35 -14
  67. data/vendor/libsodium/src/libsodium/crypto_pwhash/crypto_pwhash.c +41 -4
  68. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c +31 -17
  69. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +4 -0
  70. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c +5 -1
  71. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +30 -1
  72. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +8 -0
  73. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c +3 -3
  74. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c +6 -0
  75. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +5 -4
  76. data/vendor/libsodium/src/libsodium/crypto_secretbox/xchacha20poly1305/secretbox_xchacha20poly1305.c +11 -4
  77. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c +6 -0
  78. data/vendor/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c +311 -0
  79. data/vendor/libsodium/src/libsodium/crypto_sign/crypto_sign.c +6 -0
  80. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ed25519_ref10.h +3 -0
  81. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +9 -2
  82. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c +1 -1
  83. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +6 -5
  84. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519.c +6 -0
  85. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.c +3 -2
  86. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.c +3 -2
  87. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/u0.h +1 -1
  88. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c +3 -2
  89. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.c +12 -0
  90. data/vendor/libsodium/src/libsodium/crypto_stream/crypto_stream.c +6 -0
  91. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20.c +7 -1
  92. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/u0.h +1 -1
  93. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012.c +6 -0
  94. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208.c +6 -0
  95. data/vendor/libsodium/src/libsodium/crypto_stream/xchacha20/stream_xchacha20.c +6 -0
  96. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20.c +6 -0
  97. data/vendor/libsodium/src/libsodium/crypto_verify/sodium/verify.c +66 -29
  98. data/vendor/libsodium/src/libsodium/include/Makefile.am +1 -1
  99. data/vendor/libsodium/src/libsodium/include/sodium.h +2 -2
  100. data/vendor/libsodium/src/libsodium/include/sodium/core.h +9 -0
  101. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_aes256gcm.h +26 -0
  102. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h +16 -4
  103. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_xchacha20poly1305.h +10 -4
  104. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +4 -0
  105. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xchacha20poly1305.h +6 -0
  106. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +24 -15
  107. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa208.h +8 -4
  108. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash.h +40 -18
  109. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2i.h +8 -2
  110. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2id.h +8 -2
  111. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +11 -3
  112. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +4 -0
  113. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xchacha20poly1305.h +6 -0
  114. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +17 -8
  115. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h +102 -0
  116. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +4 -0
  117. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +4 -0
  118. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +1 -0
  119. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h +4 -0
  120. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h +10 -0
  121. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h +4 -0
  122. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h +4 -0
  123. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h +15 -5
  124. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xchacha20.h +4 -0
  125. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +4 -0
  126. data/vendor/libsodium/src/libsodium/include/sodium/export.h +9 -0
  127. data/vendor/libsodium/src/libsodium/include/sodium/private/common.h +11 -0
  128. data/vendor/libsodium/src/libsodium/include/sodium/private/curve25519_ref10.h +2 -30
  129. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +2 -0
  130. data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +12 -9
  131. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +36 -0
  132. data/vendor/libsodium/src/libsodium/randombytes/nativeclient/randombytes_nativeclient.c +3 -2
  133. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +18 -14
  134. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +11 -10
  135. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +20 -8
  136. data/vendor/libsodium/src/libsodium/sodium/codecs.c +333 -0
  137. data/vendor/libsodium/src/libsodium/sodium/core.c +36 -4
  138. data/vendor/libsodium/src/libsodium/sodium/runtime.c +18 -0
  139. data/vendor/libsodium/src/libsodium/sodium/utils.c +87 -100
  140. data/vendor/libsodium/test/constcheck.sh +19 -0
  141. data/vendor/libsodium/test/default/Makefile.am +39 -7
  142. data/vendor/libsodium/test/default/aead_aes256gcm.c +6 -0
  143. data/vendor/libsodium/test/default/aead_chacha20poly1305.c +16 -0
  144. data/vendor/libsodium/test/default/aead_xchacha20poly1305.c +25 -15
  145. data/vendor/libsodium/test/default/auth.c +13 -0
  146. data/vendor/libsodium/test/default/auth.exp +8 -0
  147. data/vendor/libsodium/test/default/box.c +3 -0
  148. data/vendor/libsodium/test/default/box2.c +2 -0
  149. data/vendor/libsodium/test/default/box_easy.c +1 -4
  150. data/vendor/libsodium/test/default/box_easy2.c +7 -3
  151. data/vendor/libsodium/test/default/chacha20.c +9 -2
  152. data/vendor/libsodium/test/default/cmptest.h +47 -1
  153. data/vendor/libsodium/test/default/codecs.c +226 -0
  154. data/vendor/libsodium/test/default/codecs.exp +28 -0
  155. data/vendor/libsodium/test/default/core3.c +42 -15
  156. data/vendor/libsodium/test/default/ed25519_convert.c +17 -0
  157. data/vendor/libsodium/test/default/kdf.c +8 -4
  158. data/vendor/libsodium/test/default/keygen.c +5 -2
  159. data/vendor/libsodium/test/default/kx.c +30 -0
  160. data/vendor/libsodium/test/default/metamorphic.c +187 -0
  161. data/vendor/libsodium/test/default/metamorphic.exp +1 -0
  162. data/vendor/libsodium/test/default/misuse.c +145 -0
  163. data/vendor/libsodium/test/default/misuse.exp +0 -0
  164. data/vendor/libsodium/test/default/onetimeauth.c +2 -0
  165. data/vendor/libsodium/test/default/{pwhash.c → pwhash_argon2i.c} +133 -106
  166. data/vendor/libsodium/test/default/{pwhash.exp → pwhash_argon2i.exp} +0 -1
  167. data/vendor/libsodium/test/default/pwhash_argon2id.c +254 -144
  168. data/vendor/libsodium/test/default/pwhash_argon2id.exp +2 -3
  169. data/vendor/libsodium/test/default/pwhash_scrypt.c +61 -18
  170. data/vendor/libsodium/test/default/pwhash_scrypt.exp +6 -0
  171. data/vendor/libsodium/test/default/randombytes.c +8 -3
  172. data/vendor/libsodium/test/default/secretbox.c +8 -0
  173. data/vendor/libsodium/test/default/secretbox2.c +5 -0
  174. data/vendor/libsodium/test/default/secretbox_easy.c +19 -1
  175. data/vendor/libsodium/test/default/secretbox_easy.exp +2 -0
  176. data/vendor/libsodium/test/default/secretbox_easy2.c +4 -0
  177. data/vendor/libsodium/test/default/secretstream.c +280 -0
  178. data/vendor/libsodium/test/default/secretstream.exp +1 -0
  179. data/vendor/libsodium/test/default/sign.c +31 -0
  180. data/vendor/libsodium/test/default/sodium_core.c +23 -1
  181. data/vendor/libsodium/test/default/sodium_core.exp +1 -1
  182. data/vendor/libsodium/test/default/sodium_utils.c +45 -56
  183. data/vendor/libsodium/test/default/sodium_utils.exp +0 -8
  184. data/vendor/libsodium/test/default/stream.c +2 -0
  185. data/vendor/libsodium/test/default/stream2.c +1 -0
  186. data/vendor/libsodium/test/default/xchacha20.c +58 -7
  187. metadata +21 -18
  188. data/vendor/libsodium/dist-build/emscripten-wasm.sh +0 -132
  189. data/vendor/libsodium/m4/pkg.m4 +0 -214
  190. data/vendor/libsodium/packaging/dotnet-core/desktop.targets +0 -16
  191. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/afternm_aes128ctr.c +0 -174
  192. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/beforenm_aes128ctr.c +0 -66
  193. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/common.h +0 -766
  194. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/consts.h +0 -28
  195. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/consts_aes128ctr.c +0 -28
  196. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/int128.h +0 -50
  197. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/int128_aes128ctr.c +0 -149
  198. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/stream_aes128ctr_nacl.c +0 -31
  199. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/xor_afternm_aes128ctr.c +0 -195
  200. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr.c +0 -19
  201. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h +0 -65
@@ -1,5 +1,5 @@
1
1
  AC_PREREQ([2.65])
2
- AC_INIT([libsodium],[1.0.13],
2
+ AC_INIT([libsodium],[1.0.15],
3
3
  [https://github.com/jedisct1/libsodium/issues],
4
4
  [libsodium],
5
5
  [https://github.com/jedisct1/libsodium])
@@ -16,10 +16,10 @@ AC_SUBST(VERSION)
16
16
  ISODATE=`date +%Y-%m-%d`
17
17
  AC_SUBST(ISODATE)
18
18
 
19
- SODIUM_LIBRARY_VERSION_MAJOR=9
20
- SODIUM_LIBRARY_VERSION_MINOR=5
19
+ SODIUM_LIBRARY_VERSION_MAJOR=10
20
+ SODIUM_LIBRARY_VERSION_MINOR=0
21
21
  DLL_VERSION=8
22
- SODIUM_LIBRARY_VERSION=21:0:3
22
+ SODIUM_LIBRARY_VERSION=23:0:0
23
23
  # | | |
24
24
  # +------+ | +---+
25
25
  # | | |
@@ -74,8 +74,14 @@ AC_ARG_ENABLE(asm,
74
74
  ])
75
75
 
76
76
  AS_IF([test "x$EMSCRIPTEN" != "x"], [
77
- enable_asm="no"
78
- AC_MSG_WARN([compiling to JavaScript - asm implementations disabled])
77
+ AX_CHECK_COMPILE_FLAG([-s ASSERTIONS=0], [
78
+ enable_asm="no"
79
+ AC_MSG_WARN([compiling to JavaScript - asm implementations disabled])
80
+ ], [
81
+ AC_MSG_WARN([EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code])
82
+ CFLAGS="$CFLAGS -U__EMSCRIPTEN__"
83
+ unset EMSCRIPTEN
84
+ ])
79
85
  ])
80
86
  AS_IF([test "$host_os" = "nacl" -o "$host_os" = "pnacl"], [
81
87
  enable_asm="no"
@@ -151,7 +157,7 @@ AC_ARG_ENABLE(debug,
151
157
  done
152
158
  CFLAGS="$nxflags -O0 -g3"
153
159
  ])
154
- CPPFLAGS="$CPPFLAGS -DDEBUG=1"
160
+ CPPFLAGS="$CPPFLAGS -DDEBUG=1 -UFORTIFY_SOURCE"
155
161
  ])
156
162
  ])
157
163
 
@@ -236,6 +242,13 @@ AS_CASE([$host_os],
236
242
  AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"])
237
243
  ])
238
244
 
245
+ AS_CASE([$host_os],
246
+ [cygwin*|mingw*|msys|pw32*|cegcc*], [
247
+ AX_CHECK_COMPILE_FLAG([-fno-asynchronous-unwind-tables], [
248
+ [CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"]
249
+ ])
250
+ ])
251
+
239
252
  AS_IF([test "x$enable_ssp" != "xno"],[
240
253
 
241
254
  AS_CASE([$host_os],
@@ -261,7 +274,7 @@ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wextra], [CWFLAGS="$CWFLAGS -Wextra"])
261
274
  AC_MSG_CHECKING(for clang)
262
275
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
263
276
  #ifndef __clang__
264
- be sad
277
+ #error Not clang
265
278
  #endif
266
279
  ]])],
267
280
  [AC_MSG_RESULT(yes)
@@ -280,22 +293,37 @@ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wformat=2], [CWFLAGS="$CWFLAGS -Wformat=2"])
280
293
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wmissing-declarations], [CWFLAGS="$CWFLAGS -Wmissing-declarations"])
281
294
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wmissing-prototypes], [CWFLAGS="$CWFLAGS -Wmissing-prototypes"])
282
295
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wnested-externs], [CWFLAGS="$CWFLAGS -Wnested-externs"])
296
+ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wno-type-limits], [CWFLAGS="$CWFLAGS -Wno-type-limits"])
283
297
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wno-unknown-pragmas], [CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"])
284
298
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wnormalized=id], [CWFLAGS="$CWFLAGS -Wnormalized=id"])
285
299
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wnull-dereference], [CWFLAGS="$CWFLAGS -Wnull-dereference"])
300
+ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wold-style-declaration], [CWFLAGS="$CWFLAGS -Wold-style-declaration"])
286
301
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wpointer-arith], [CWFLAGS="$CWFLAGS -Wpointer-arith"])
287
302
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wredundant-decls], [CWFLAGS="$CWFLAGS -Wredundant-decls"])
288
303
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wshorten-64-to-32], [CWFLAGS="$CWFLAGS -Wshorten-64-to-32"])
289
304
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wstrict-prototypes], [CWFLAGS="$CWFLAGS -Wstrict-prototypes"])
290
305
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wswitch-enum], [CWFLAGS="$CWFLAGS -Wswitch-enum"])
291
306
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wvariable-decl], [CWFLAGS="$CWFLAGS -Wvariable-decl"])
292
- AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wno-type-limits], [CWFLAGS="$CWFLAGS -Wno-type-limits"])
293
307
 
294
308
  AX_CHECK_LINK_FLAG([-Wl,-z,relro], [LDFLAGS="$LDFLAGS -Wl,-z,relro"])
295
309
  AX_CHECK_LINK_FLAG([-Wl,-z,now], [LDFLAGS="$LDFLAGS -Wl,-z,now"])
296
310
  AX_CHECK_LINK_FLAG([-Wl,-z,noexecstack], [LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"])
297
311
 
312
+ AC_MSG_CHECKING(for a broken clang + AVX512 combination)
313
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
314
+ #if !(defined(__AVX512F__) && defined(__clang__) && __clang_major__ < 4)
315
+ #error Not a broken clang + AVX512 combination
316
+ #endif
317
+ ]])],
318
+ [AC_MSG_RESULT(yes - disabling AVX512 optimizations)
319
+ AX_CHECK_COMPILE_FLAG([$CFLAGS -mno-avx512f],
320
+ [CFLAGS="$CFLAGS -mno-avx512f"])
321
+ ],
322
+ [AC_MSG_RESULT(no)
323
+ ])
324
+
298
325
  AX_CHECK_CATCHABLE_SEGV
326
+ AX_CHECK_CATCHABLE_ABRT
299
327
 
300
328
  LT_INIT
301
329
  AC_SUBST(LIBTOOL_DEPS)
@@ -426,6 +454,25 @@ return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
426
454
  [AC_MSG_RESULT(no)])
427
455
  CFLAGS="$oldcflags"
428
456
 
457
+ oldcflags="$CFLAGS"
458
+ AX_CHECK_COMPILE_FLAG([-mavx512f], [CFLAGS="$CFLAGS -mavx512f"])
459
+ AC_MSG_CHECKING(for AVX512F instructions set)
460
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
461
+ #ifdef __native_client__
462
+ # error NativeClient detected - Avoiding AVX512F opcodes
463
+ #endif
464
+ #pragma GCC target("avx512f")
465
+ #include <immintrin.h>
466
+ ]], [[
467
+ __m512i x = _mm512_setzero_epi32();
468
+ __m512i y = _mm512_permutexvar_epi64(_mm512_setr_epi64(0, 1, 4, 5, 2, 3, 6, 7), x);
469
+ ]])],
470
+ [AC_MSG_RESULT(yes)
471
+ AC_DEFINE([HAVE_AVX512FINTRIN_H], [1], [AVX512F is available])
472
+ AX_CHECK_COMPILE_FLAG([-mavx512f], [CFLAGS_AVX512F="-mavx512f"])],
473
+ [AC_MSG_RESULT(no)])
474
+ CFLAGS="$oldcflags"
475
+
429
476
  oldcflags="$CFLAGS"
430
477
  AX_CHECK_COMPILE_FLAG([-maes], [CFLAGS="$CFLAGS -maes"])
431
478
  AX_CHECK_COMPILE_FLAG([-mpclmul], [CFLAGS="$CFLAGS -mpclmul"])
@@ -456,6 +503,7 @@ AC_SUBST(CFLAGS_SSSE3)
456
503
  AC_SUBST(CFLAGS_SSE41)
457
504
  AC_SUBST(CFLAGS_AVX)
458
505
  AC_SUBST(CFLAGS_AVX2)
506
+ AC_SUBST(CFLAGS_AVX512F)
459
507
  AC_SUBST(CFLAGS_AESNI)
460
508
  AC_SUBST(CFLAGS_PCLMUL)
461
509
 
@@ -686,7 +734,7 @@ dnl Checks for functions and headers
686
734
 
687
735
  AS_IF([test "x$EMSCRIPTEN" = "x"],[
688
736
  AC_CHECK_FUNCS([arc4random arc4random_buf])
689
- AC_CHECK_FUNCS([mmap mlock madvise mprotect explicit_bzero nanosleep])
737
+ AC_CHECK_FUNCS([mmap mlock madvise mprotect memset_s explicit_bzero nanosleep])
690
738
  ])
691
739
  AC_CHECK_FUNCS([posix_memalign getpid])
692
740
 
@@ -718,6 +766,7 @@ AH_VERBATIM([NDEBUG], [/* Always evaluate assert() calls */
718
766
  #endif])
719
767
 
720
768
  AC_CONFIG_FILES([Makefile
769
+ builds/Makefile
721
770
  contrib/Makefile
722
771
  dist-build/Makefile
723
772
  libsodium.pc
@@ -130,6 +130,7 @@ elseif (WIN32)
130
130
  PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX}
131
131
  )
132
132
  if (NOT sodium_USE_STATIC_LIBS)
133
+ set(CMAKE_FIND_LIBRARY_SUFFIXES_BCK ${CMAKE_FIND_LIBRARY_SUFFIXES})
133
134
  set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll")
134
135
  find_library(sodium_DLL_DEBUG libsodium
135
136
  HINTS ${sodium_DIR}
@@ -139,6 +140,7 @@ elseif (WIN32)
139
140
  HINTS ${sodium_DIR}
140
141
  PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX}
141
142
  )
143
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_BCK})
142
144
  endif()
143
145
 
144
146
  elseif(_GCC_COMPATIBLE)
@@ -11,6 +11,7 @@ _crypto_aead_aes256gcm_encrypt_detached_afternm 0 0
11
11
  _crypto_aead_aes256gcm_is_available 0 0
12
12
  _crypto_aead_aes256gcm_keybytes 0 0
13
13
  _crypto_aead_aes256gcm_keygen 0 0
14
+ _crypto_aead_aes256gcm_messagebytes_max 0 0
14
15
  _crypto_aead_aes256gcm_npubbytes 0 0
15
16
  _crypto_aead_aes256gcm_nsecbytes 0 0
16
17
  _crypto_aead_aes256gcm_statebytes 0 0
@@ -25,13 +26,15 @@ _crypto_aead_chacha20poly1305_ietf_decrypt_detached 1 1
25
26
  _crypto_aead_chacha20poly1305_ietf_encrypt 1 1
26
27
  _crypto_aead_chacha20poly1305_ietf_encrypt_detached 1 1
27
28
  _crypto_aead_chacha20poly1305_ietf_keybytes 1 1
29
+ _crypto_aead_chacha20poly1305_ietf_keygen 1 1
30
+ _crypto_aead_chacha20poly1305_ietf_messagebytes_max 0 0
28
31
  _crypto_aead_chacha20poly1305_ietf_npubbytes 1 1
29
32
  _crypto_aead_chacha20poly1305_ietf_nsecbytes 1 1
30
33
  _crypto_aead_chacha20poly1305_keybytes 1 1
34
+ _crypto_aead_chacha20poly1305_keygen 1 1
35
+ _crypto_aead_chacha20poly1305_messagebytes_max 0 0
31
36
  _crypto_aead_chacha20poly1305_npubbytes 1 1
32
37
  _crypto_aead_chacha20poly1305_nsecbytes 1 1
33
- _crypto_aead_chacha20poly1305_ietf_keygen 1 1
34
- _crypto_aead_chacha20poly1305_keygen 1 1
35
38
  _crypto_aead_xchacha20poly1305_ietf_abytes 1 1
36
39
  _crypto_aead_xchacha20poly1305_ietf_decrypt 1 1
37
40
  _crypto_aead_xchacha20poly1305_ietf_decrypt_detached 1 1
@@ -39,6 +42,7 @@ _crypto_aead_xchacha20poly1305_ietf_encrypt 1 1
39
42
  _crypto_aead_xchacha20poly1305_ietf_encrypt_detached 1 1
40
43
  _crypto_aead_xchacha20poly1305_ietf_keybytes 1 1
41
44
  _crypto_aead_xchacha20poly1305_ietf_keygen 1 1
45
+ _crypto_aead_xchacha20poly1305_ietf_messagebytes_max 0 0
42
46
  _crypto_aead_xchacha20poly1305_ietf_npubbytes 1 1
43
47
  _crypto_aead_xchacha20poly1305_ietf_nsecbytes 1 1
44
48
  _crypto_auth 1 1
@@ -87,6 +91,7 @@ _crypto_box_curve25519xchacha20poly1305_easy 0 1
87
91
  _crypto_box_curve25519xchacha20poly1305_easy_afternm 0 1
88
92
  _crypto_box_curve25519xchacha20poly1305_keypair 0 1
89
93
  _crypto_box_curve25519xchacha20poly1305_macbytes 0 1
94
+ _crypto_box_curve25519xchacha20poly1305_messagebytes_max 0 0
90
95
  _crypto_box_curve25519xchacha20poly1305_noncebytes 0 1
91
96
  _crypto_box_curve25519xchacha20poly1305_open_detached 0 1
92
97
  _crypto_box_curve25519xchacha20poly1305_open_detached_afternm 0 1
@@ -106,6 +111,7 @@ _crypto_box_curve25519xsalsa20poly1305_beforenmbytes 0 1
106
111
  _crypto_box_curve25519xsalsa20poly1305_boxzerobytes 0 1
107
112
  _crypto_box_curve25519xsalsa20poly1305_keypair 0 1
108
113
  _crypto_box_curve25519xsalsa20poly1305_macbytes 0 1
114
+ _crypto_box_curve25519xsalsa20poly1305_messagebytes_max 0 0
109
115
  _crypto_box_curve25519xsalsa20poly1305_noncebytes 0 1
110
116
  _crypto_box_curve25519xsalsa20poly1305_open 0 1
111
117
  _crypto_box_curve25519xsalsa20poly1305_open_afternm 0 1
@@ -120,6 +126,7 @@ _crypto_box_easy 1 1
120
126
  _crypto_box_easy_afternm 1 1
121
127
  _crypto_box_keypair 1 1
122
128
  _crypto_box_macbytes 1 1
129
+ _crypto_box_messagebytes_max 0 0
123
130
  _crypto_box_noncebytes 1 1
124
131
  _crypto_box_open 0 1
125
132
  _crypto_box_open_afternm 0 1
@@ -247,29 +254,30 @@ _crypto_onetimeauth_update 0 1
247
254
  _crypto_onetimeauth_verify 0 1
248
255
  _crypto_pwhash 0 1
249
256
  _crypto_pwhash_alg_argon2i13 0 1
257
+ _crypto_pwhash_alg_argon2id13 0 1
250
258
  _crypto_pwhash_alg_default 0 1
251
259
  _crypto_pwhash_argon2i 0 1
252
260
  _crypto_pwhash_argon2i_alg_argon2i13 0 1
253
261
  _crypto_pwhash_argon2i_bytes_max 0 1
254
262
  _crypto_pwhash_argon2i_bytes_min 0 1
255
263
  _crypto_pwhash_argon2i_memlimit_interactive 0 1
256
- _crypto_pwhash_argon2i_memlimit_moderate 0 1
257
- _crypto_pwhash_argon2i_memlimit_sensitive 0 1
258
264
  _crypto_pwhash_argon2i_memlimit_max 0 1
259
265
  _crypto_pwhash_argon2i_memlimit_min 0 1
266
+ _crypto_pwhash_argon2i_memlimit_moderate 0 1
267
+ _crypto_pwhash_argon2i_memlimit_sensitive 0 1
260
268
  _crypto_pwhash_argon2i_opslimit_interactive 0 1
261
- _crypto_pwhash_argon2i_opslimit_moderate 0 1
262
- _crypto_pwhash_argon2i_opslimit_sensitive 0 1
263
269
  _crypto_pwhash_argon2i_opslimit_max 0 1
264
270
  _crypto_pwhash_argon2i_opslimit_min 0 1
271
+ _crypto_pwhash_argon2i_opslimit_moderate 0 1
272
+ _crypto_pwhash_argon2i_opslimit_sensitive 0 1
265
273
  _crypto_pwhash_argon2i_passwd_max 0 1
266
274
  _crypto_pwhash_argon2i_passwd_min 0 1
267
275
  _crypto_pwhash_argon2i_saltbytes 0 1
268
276
  _crypto_pwhash_argon2i_str 0 1
277
+ _crypto_pwhash_argon2i_str_needs_rehash 0 1
269
278
  _crypto_pwhash_argon2i_str_verify 0 1
270
279
  _crypto_pwhash_argon2i_strbytes 0 1
271
280
  _crypto_pwhash_argon2i_strprefix 0 1
272
- _crypto_pwhash_alg_argon2id13 0 1
273
281
  _crypto_pwhash_argon2id 0 1
274
282
  _crypto_pwhash_argon2id_alg_argon2id13 0 1
275
283
  _crypto_pwhash_argon2id_bytes_max 0 1
@@ -288,45 +296,49 @@ _crypto_pwhash_argon2id_passwd_max 0 1
288
296
  _crypto_pwhash_argon2id_passwd_min 0 1
289
297
  _crypto_pwhash_argon2id_saltbytes 0 1
290
298
  _crypto_pwhash_argon2id_str 0 1
299
+ _crypto_pwhash_argon2id_str_needs_rehash 0 1
291
300
  _crypto_pwhash_argon2id_str_verify 0 1
292
301
  _crypto_pwhash_argon2id_strbytes 0 1
293
302
  _crypto_pwhash_argon2id_strprefix 0 1
294
- _crypto_pwhash_bytes_max 1 1
295
- _crypto_pwhash_bytes_min 1 1
303
+ _crypto_pwhash_bytes_max 0 1
304
+ _crypto_pwhash_bytes_min 0 1
296
305
  _crypto_pwhash_memlimit_interactive 0 1
297
- _crypto_pwhash_memlimit_max 1 1
298
- _crypto_pwhash_memlimit_min 1 1
306
+ _crypto_pwhash_memlimit_max 0 1
307
+ _crypto_pwhash_memlimit_min 0 1
299
308
  _crypto_pwhash_memlimit_moderate 0 1
300
309
  _crypto_pwhash_memlimit_sensitive 0 1
301
310
  _crypto_pwhash_opslimit_interactive 0 1
302
- _crypto_pwhash_opslimit_max 1 1
303
- _crypto_pwhash_opslimit_min 1 1
311
+ _crypto_pwhash_opslimit_max 0 1
312
+ _crypto_pwhash_opslimit_min 0 1
304
313
  _crypto_pwhash_opslimit_moderate 0 1
305
314
  _crypto_pwhash_opslimit_sensitive 0 1
306
- _crypto_pwhash_passwd_max 1 1
307
- _crypto_pwhash_passwd_min 1 1
315
+ _crypto_pwhash_passwd_max 0 1
316
+ _crypto_pwhash_passwd_min 0 1
308
317
  _crypto_pwhash_primitive 0 1
309
318
  _crypto_pwhash_saltbytes 0 1
310
319
  _crypto_pwhash_scryptsalsa208sha256 0 1
320
+ _crypto_pwhash_scryptsalsa208sha256_bytes_max 0 1
321
+ _crypto_pwhash_scryptsalsa208sha256_bytes_min 0 1
311
322
  _crypto_pwhash_scryptsalsa208sha256_ll 0 1
312
323
  _crypto_pwhash_scryptsalsa208sha256_memlimit_interactive 0 1
324
+ _crypto_pwhash_scryptsalsa208sha256_memlimit_max 0 1
325
+ _crypto_pwhash_scryptsalsa208sha256_memlimit_min 0 1
313
326
  _crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive 0 1
314
327
  _crypto_pwhash_scryptsalsa208sha256_opslimit_interactive 0 1
328
+ _crypto_pwhash_scryptsalsa208sha256_opslimit_max 0 1
329
+ _crypto_pwhash_scryptsalsa208sha256_opslimit_min 0 1
315
330
  _crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive 0 1
331
+ _crypto_pwhash_scryptsalsa208sha256_passwd_max 0 1
332
+ _crypto_pwhash_scryptsalsa208sha256_passwd_min 0 1
316
333
  _crypto_pwhash_scryptsalsa208sha256_saltbytes 0 1
317
334
  _crypto_pwhash_scryptsalsa208sha256_str 0 1
335
+ _crypto_pwhash_scryptsalsa208sha256_str_needs_rehash 0 1
318
336
  _crypto_pwhash_scryptsalsa208sha256_str_verify 0 1
319
337
  _crypto_pwhash_scryptsalsa208sha256_strbytes 0 1
320
338
  _crypto_pwhash_scryptsalsa208sha256_strprefix 0 1
321
- _crypto_pwhash_scryptsalsa208sha256_bytes_max 0 1
322
- _crypto_pwhash_scryptsalsa208sha256_bytes_min 0 1
323
- _crypto_pwhash_scryptsalsa208sha256_memlimit_max 0 1
324
- _crypto_pwhash_scryptsalsa208sha256_memlimit_min 0 1
325
- _crypto_pwhash_scryptsalsa208sha256_opslimit_max 0 1
326
- _crypto_pwhash_scryptsalsa208sha256_opslimit_min 0 1
327
- _crypto_pwhash_scryptsalsa208sha256_passwd_max 0 1
328
- _crypto_pwhash_scryptsalsa208sha256_passwd_min 0 1
329
339
  _crypto_pwhash_str 0 1
340
+ _crypto_pwhash_str_alg 0 1
341
+ _crypto_pwhash_str_needs_rehash 0 1
330
342
  _crypto_pwhash_str_verify 0 1
331
343
  _crypto_pwhash_strbytes 0 1
332
344
  _crypto_pwhash_strprefix 0 1
@@ -346,6 +358,7 @@ _crypto_secretbox_easy 1 1
346
358
  _crypto_secretbox_keybytes 1 1
347
359
  _crypto_secretbox_keygen 1 1
348
360
  _crypto_secretbox_macbytes 1 1
361
+ _crypto_secretbox_messagebytes_max 0 0
349
362
  _crypto_secretbox_noncebytes 1 1
350
363
  _crypto_secretbox_open 0 1
351
364
  _crypto_secretbox_open_detached 1 1
@@ -355,18 +368,35 @@ _crypto_secretbox_xchacha20poly1305_detached 0 1
355
368
  _crypto_secretbox_xchacha20poly1305_easy 0 1
356
369
  _crypto_secretbox_xchacha20poly1305_keybytes 0 1
357
370
  _crypto_secretbox_xchacha20poly1305_macbytes 0 1
371
+ _crypto_secretbox_xchacha20poly1305_messagebytes_max 0 0
358
372
  _crypto_secretbox_xchacha20poly1305_noncebytes 0 1
359
373
  _crypto_secretbox_xchacha20poly1305_open_detached 0 1
360
374
  _crypto_secretbox_xchacha20poly1305_open_easy 0 1
361
375
  _crypto_secretbox_xsalsa20poly1305 0 1
362
376
  _crypto_secretbox_xsalsa20poly1305_boxzerobytes 0 1
363
377
  _crypto_secretbox_xsalsa20poly1305_keybytes 0 1
378
+ _crypto_secretbox_xsalsa20poly1305_keygen 0 1
364
379
  _crypto_secretbox_xsalsa20poly1305_macbytes 0 1
380
+ _crypto_secretbox_xsalsa20poly1305_messagebytes_max 0 0
365
381
  _crypto_secretbox_xsalsa20poly1305_noncebytes 0 1
366
382
  _crypto_secretbox_xsalsa20poly1305_open 0 1
367
383
  _crypto_secretbox_xsalsa20poly1305_zerobytes 0 1
368
- _crypto_secretbox_xsalsa20poly1305_keygen 0 1
369
384
  _crypto_secretbox_zerobytes 0 1
385
+ _crypto_secretstream_xchacha20poly1305_abytes 1 1
386
+ _crypto_secretstream_xchacha20poly1305_init_pull 1 1
387
+ _crypto_secretstream_xchacha20poly1305_init_push 1 1
388
+ _crypto_secretstream_xchacha20poly1305_headerbytes 1 1
389
+ _crypto_secretstream_xchacha20poly1305_keybytes 1 1
390
+ _crypto_secretstream_xchacha20poly1305_keygen 1 1
391
+ _crypto_secretstream_xchacha20poly1305_messagebytes_max 1 1
392
+ _crypto_secretstream_xchacha20poly1305_pull 1 1
393
+ _crypto_secretstream_xchacha20poly1305_push 1 1
394
+ _crypto_secretstream_xchacha20poly1305_rekey 1 1
395
+ _crypto_secretstream_xchacha20poly1305_statebytes 1 1
396
+ _crypto_secretstream_xchacha20poly1305_tag_final 1 1
397
+ _crypto_secretstream_xchacha20poly1305_tag_message 1 1
398
+ _crypto_secretstream_xchacha20poly1305_tag_push 1 1
399
+ _crypto_secretstream_xchacha20poly1305_tag_rekey 1 1
370
400
  _crypto_shorthash 1 1
371
401
  _crypto_shorthash_bytes 1 1
372
402
  _crypto_shorthash_keybytes 1 1
@@ -385,6 +415,7 @@ _crypto_sign_ed25519 0 1
385
415
  _crypto_sign_ed25519_bytes 0 1
386
416
  _crypto_sign_ed25519_detached 0 1
387
417
  _crypto_sign_ed25519_keypair 0 1
418
+ _crypto_sign_ed25519_messagebytes_max 0 0
388
419
  _crypto_sign_ed25519_open 0 1
389
420
  _crypto_sign_ed25519_pk_to_curve25519 1 1
390
421
  _crypto_sign_ed25519_publickeybytes 0 1
@@ -407,6 +438,7 @@ _crypto_sign_final_create 1 1
407
438
  _crypto_sign_final_verify 1 1
408
439
  _crypto_sign_init 1 1
409
440
  _crypto_sign_keypair 1 1
441
+ _crypto_sign_messagebytes_max 0 0
410
442
  _crypto_sign_open 1 1
411
443
  _crypto_sign_primitive 0 1
412
444
  _crypto_sign_publickeybytes 1 1
@@ -417,49 +449,48 @@ _crypto_sign_statebytes 1 1
417
449
  _crypto_sign_update 1 1
418
450
  _crypto_sign_verify_detached 1 1
419
451
  _crypto_stream 0 1
420
- _crypto_stream_aes128ctr 0 1
421
- _crypto_stream_aes128ctr_afternm 0 1
422
- _crypto_stream_aes128ctr_beforenm 0 1
423
- _crypto_stream_aes128ctr_beforenmbytes 0 1
424
- _crypto_stream_aes128ctr_keybytes 0 1
425
- _crypto_stream_aes128ctr_noncebytes 0 1
426
- _crypto_stream_aes128ctr_xor 0 1
427
- _crypto_stream_aes128ctr_xor_afternm 0 1
428
452
  _crypto_stream_chacha20 0 1
429
453
  _crypto_stream_chacha20_ietf 0 1
430
454
  _crypto_stream_chacha20_ietf_keybytes 0 1
431
455
  _crypto_stream_chacha20_ietf_keygen 0 1
456
+ _crypto_stream_chacha20_ietf_messagebytes_max 0 0
432
457
  _crypto_stream_chacha20_ietf_noncebytes 0 1
433
458
  _crypto_stream_chacha20_ietf_xor 0 1
434
459
  _crypto_stream_chacha20_ietf_xor_ic 0 1
435
460
  _crypto_stream_chacha20_keybytes 0 1
436
461
  _crypto_stream_chacha20_keygen 0 1
462
+ _crypto_stream_chacha20_messagebytes_max 0 0
437
463
  _crypto_stream_chacha20_noncebytes 0 1
438
464
  _crypto_stream_chacha20_xor 0 1
439
465
  _crypto_stream_chacha20_xor_ic 0 1
440
466
  _crypto_stream_keybytes 0 1
441
467
  _crypto_stream_keygen 1 1
468
+ _crypto_stream_messagebytes_max 0 0
442
469
  _crypto_stream_noncebytes 0 1
443
470
  _crypto_stream_primitive 0 1
444
471
  _crypto_stream_salsa20 0 1
445
472
  _crypto_stream_salsa2012 0 1
446
473
  _crypto_stream_salsa2012_keybytes 0 1
447
474
  _crypto_stream_salsa2012_keygen 0 1
475
+ _crypto_stream_salsa2012_messagebytes_max 0 0
448
476
  _crypto_stream_salsa2012_noncebytes 0 1
449
477
  _crypto_stream_salsa2012_xor 0 1
450
478
  _crypto_stream_salsa208 0 1
451
479
  _crypto_stream_salsa208_keybytes 0 1
452
480
  _crypto_stream_salsa208_keygen 0 1
481
+ _crypto_stream_salsa208_messagebytes_max 0 1
453
482
  _crypto_stream_salsa208_noncebytes 0 1
454
483
  _crypto_stream_salsa208_xor 0 1
455
484
  _crypto_stream_salsa20_keybytes 0 1
456
485
  _crypto_stream_salsa20_keygen 0 1
486
+ _crypto_stream_salsa20_messagebytes_max 0 0
457
487
  _crypto_stream_salsa20_noncebytes 0 1
458
488
  _crypto_stream_salsa20_xor 0 1
459
489
  _crypto_stream_salsa20_xor_ic 0 1
460
490
  _crypto_stream_xchacha20 0 1
461
491
  _crypto_stream_xchacha20_keybytes 0 1
462
492
  _crypto_stream_xchacha20_keygen 0 1
493
+ _crypto_stream_xchacha20_messagebytes_max 0 0
463
494
  _crypto_stream_xchacha20_noncebytes 0 1
464
495
  _crypto_stream_xchacha20_xor 0 1
465
496
  _crypto_stream_xchacha20_xor_ic 0 1
@@ -467,6 +498,7 @@ _crypto_stream_xor 0 1
467
498
  _crypto_stream_xsalsa20 0 1
468
499
  _crypto_stream_xsalsa20_keybytes 0 1
469
500
  _crypto_stream_xsalsa20_keygen 0 1
501
+ _crypto_stream_xsalsa20_messagebytes_max 0 0
470
502
  _crypto_stream_xsalsa20_noncebytes 0 1
471
503
  _crypto_stream_xsalsa20_xor 0 1
472
504
  _crypto_stream_xsalsa20_xor_ic 0 1
@@ -488,6 +520,9 @@ _randombytes_stir 1 1
488
520
  _randombytes_uniform 1 1
489
521
  _sodium_add 0 0
490
522
  _sodium_allocarray 0 0
523
+ _sodium_base64_encoded_len 1 1
524
+ _sodium_base642bin 1 1
525
+ _sodium_bin2base64 1 1
491
526
  _sodium_bin2hex 1 1
492
527
  _sodium_compare 0 0
493
528
  _sodium_free 0 0
@@ -501,18 +536,23 @@ _sodium_library_version_minor 1 1
501
536
  _sodium_malloc 0 0
502
537
  _sodium_memcmp 0 0
503
538
  _sodium_memzero 0 0
539
+ _sodium_misuse 0 0
504
540
  _sodium_mlock 0 0
505
541
  _sodium_mprotect_noaccess 0 0
506
542
  _sodium_mprotect_readonly 0 0
507
543
  _sodium_mprotect_readwrite 0 0
508
544
  _sodium_munlock 0 0
545
+ _sodium_pad 1 1
509
546
  _sodium_runtime_has_aesni 0 0
510
547
  _sodium_runtime_has_avx 0 0
511
548
  _sodium_runtime_has_avx2 0 0
549
+ _sodium_runtime_has_avx512f 0 0
512
550
  _sodium_runtime_has_neon 0 0
513
551
  _sodium_runtime_has_pclmul 0 0
514
552
  _sodium_runtime_has_sse2 0 0
515
553
  _sodium_runtime_has_sse3 0 0
516
554
  _sodium_runtime_has_sse41 0 0
517
555
  _sodium_runtime_has_ssse3 0 0
556
+ _sodium_set_misuse_handler 0 0
557
+ _sodium_unpad 1 1
518
558
  _sodium_version_string 1 1