rbnacl-libsodium 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +23 -0
  3. data/CHANGES.md +5 -0
  4. data/Gemfile +5 -2
  5. data/Rakefile +5 -0
  6. data/ext/rbnacl/extconf.rb +2 -1
  7. data/lib/rbnacl/libsodium.rb +8 -2
  8. data/lib/rbnacl/libsodium/version.rb +1 -1
  9. data/vendor/libsodium/AUTHORS +14 -0
  10. data/vendor/libsodium/ChangeLog +26 -0
  11. data/vendor/libsodium/LICENSE +1 -1
  12. data/vendor/libsodium/Makefile.am +1 -0
  13. data/vendor/libsodium/Makefile.in +9 -0
  14. data/vendor/libsodium/README.markdown +7 -0
  15. data/vendor/libsodium/aclocal.m4 +1 -0
  16. data/vendor/libsodium/appveyor.yml +25 -0
  17. data/vendor/libsodium/autom4te.cache/output.1 +640 -126
  18. data/vendor/libsodium/autom4te.cache/output.6 +19049 -0
  19. data/vendor/libsodium/autom4te.cache/requests +1151 -914
  20. data/vendor/libsodium/autom4te.cache/traces.1 +472 -426
  21. data/vendor/libsodium/autom4te.cache/traces.6 +3193 -0
  22. data/vendor/libsodium/builds/msvc/version.h +2 -2
  23. data/vendor/libsodium/builds/msvc/vs2010/libsodium.sln +50 -79
  24. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +20 -8
  25. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +208 -166
  26. data/vendor/libsodium/builds/msvc/vs2012/libsodium.sln +50 -79
  27. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +20 -8
  28. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +206 -164
  29. data/vendor/libsodium/builds/msvc/vs2013/libsodium.sln +52 -81
  30. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +20 -8
  31. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +206 -164
  32. data/vendor/libsodium/builds/msvc/vs2015/libsodium.sln +52 -81
  33. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +20 -8
  34. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +206 -164
  35. data/vendor/libsodium/configure +639 -125
  36. data/vendor/libsodium/configure.ac +94 -16
  37. data/vendor/libsodium/dist-build/Makefile.in +9 -0
  38. data/vendor/libsodium/dist-build/emscripten-symbols.def +370 -0
  39. data/vendor/libsodium/dist-build/emscripten.sh +9 -3
  40. data/vendor/libsodium/dist-build/generate-emscripten-symbols.sh +43 -0
  41. data/vendor/libsodium/libsodium-uninstalled.pc.in +1 -1
  42. data/vendor/libsodium/libsodium.pc.in +1 -1
  43. data/vendor/libsodium/libsodium.vcxproj +70 -66
  44. data/vendor/libsodium/libsodium.vcxproj.filters +204 -192
  45. data/vendor/libsodium/m4/ax_valgrind_check.m4 +190 -0
  46. data/vendor/libsodium/msvc-scripts/Makefile.in +9 -0
  47. data/vendor/libsodium/msvc-scripts/process.bat +2 -2
  48. data/vendor/libsodium/src/Makefile.in +9 -0
  49. data/vendor/libsodium/src/libsodium/Makefile.am +31 -6
  50. data/vendor/libsodium/src/libsodium/Makefile.in +238 -42
  51. data/vendor/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +234 -38
  52. data/vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +208 -118
  53. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_seal.c +2 -2
  54. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c +1 -4
  55. data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +1799 -1790
  56. data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.h +39 -39
  57. data/vendor/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.c +86 -0
  58. data/vendor/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.h +28 -0
  59. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.c +38 -46
  60. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/core_salsa20.c +47 -55
  61. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/core_salsa2012.c +47 -55
  62. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/core_salsa208.c +47 -55
  63. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.c +7 -0
  64. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2-impl.h +0 -89
  65. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2.h +50 -141
  66. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-avx2.c +45 -0
  67. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-avx2.h +123 -0
  68. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ref.c +3 -2
  69. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-sse41.c +2 -2
  70. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/{blake2b-round.h → blake2b-compress-sse41.h} +2 -28
  71. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.c +2 -4
  72. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.h +97 -0
  73. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-load-avx2.h +339 -0
  74. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-load-sse2.h +0 -2
  75. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-load-sse41.h +0 -2
  76. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +29 -18
  77. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +4 -43
  78. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +3 -32
  79. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h +1 -20
  80. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +22 -41
  81. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +12 -39
  82. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c +2 -4
  83. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.h +1 -20
  84. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c +570 -0
  85. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.h +198 -0
  86. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.c +444 -0
  87. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.h +32 -0
  88. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c +229 -0
  89. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c +222 -0
  90. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-impl.h +40 -0
  91. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.c +238 -0
  92. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.h +251 -0
  93. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.c +80 -0
  94. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.h +8 -0
  95. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ref.h +38 -0
  96. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ssse3.h +117 -0
  97. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2i.c +164 -0
  98. data/vendor/libsodium/src/libsodium/crypto_pwhash/crypto_pwhash.c +106 -0
  99. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c +1 -1
  100. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +4 -4
  101. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +186 -186
  102. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c +2 -2
  103. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +3 -2
  104. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c +33 -33
  105. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +253 -254
  106. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.c +16 -17
  107. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.h +1 -0
  108. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c +11 -11
  109. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.h +1 -0
  110. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/consts_namespace.h +1 -1
  111. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h +3 -2
  112. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h +5 -3
  113. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_invert.c +41 -41
  114. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S +10 -2
  115. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_namespace.h +1 -1
  116. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S +4 -0
  117. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S +4 -0
  118. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c +31 -32
  119. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S +4 -0
  120. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.h +1 -1
  121. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S +4 -0
  122. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.h +1 -1
  123. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base_namespace.h +1 -1
  124. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_namespace.h +1 -1
  125. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +2 -6
  126. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24.c +8 -28
  127. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +75 -0
  128. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +6 -6
  129. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common.h +1 -18
  130. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128_aes128ctr.c +20 -20
  131. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/types.h +4 -4
  132. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +6 -6
  133. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +56 -77
  134. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.h +1 -0
  135. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/vec/stream_chacha20_vec.h +1 -0
  136. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +2 -8
  137. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +2 -8
  138. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.c +2 -8
  139. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.c +2 -8
  140. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.c +2 -8
  141. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.c +2 -8
  142. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.c +1 -5
  143. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +1 -5
  144. data/vendor/libsodium/src/libsodium/include/Makefile.am +3 -0
  145. data/vendor/libsodium/src/libsodium/include/Makefile.in +19 -8
  146. data/vendor/libsodium/src/libsodium/include/sodium.h +3 -0
  147. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_aes256gcm.h +50 -0
  148. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h +94 -22
  149. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +6 -6
  150. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_hchacha20.h +35 -0
  151. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +3 -0
  152. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash.h +89 -0
  153. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2i.h +86 -0
  154. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +6 -6
  155. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +0 -11
  156. data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +3 -0
  157. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +3 -0
  158. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +5 -1
  159. data/vendor/libsodium/src/libsodium/sodium/common.h +150 -0
  160. data/vendor/libsodium/src/libsodium/sodium/core.c +3 -1
  161. data/vendor/libsodium/src/libsodium/sodium/runtime.c +37 -19
  162. data/vendor/libsodium/src/libsodium/sodium/utils.c +18 -9
  163. data/vendor/libsodium/test/Makefile.in +9 -0
  164. data/vendor/libsodium/test/default/Makefile.am +10 -0
  165. data/vendor/libsodium/test/default/Makefile.in +53 -20
  166. data/vendor/libsodium/test/default/aead_aes256gcm.c +43 -17
  167. data/vendor/libsodium/test/default/aead_chacha20poly1305.c +179 -86
  168. data/vendor/libsodium/test/default/auth7.c +5 -5
  169. data/vendor/libsodium/test/default/box.c +4 -4
  170. data/vendor/libsodium/test/default/box2.c +1 -1
  171. data/vendor/libsodium/test/default/core6.c +1 -1
  172. data/vendor/libsodium/test/default/generichash.c +12 -1
  173. data/vendor/libsodium/test/default/generichash2.c +2 -2
  174. data/vendor/libsodium/test/default/generichash3.c +21 -0
  175. data/vendor/libsodium/test/default/pwhash.c +186 -168
  176. data/vendor/libsodium/test/default/pwhash.exp +11 -30
  177. data/vendor/libsodium/test/default/pwhash_scrypt.c +349 -0
  178. data/vendor/libsodium/test/default/pwhash_scrypt.exp +31 -0
  179. data/vendor/libsodium/test/default/secretbox.c +1 -1
  180. data/vendor/libsodium/test/default/secretbox2.c +1 -1
  181. data/vendor/libsodium/test/default/sign.c +15 -0
  182. data/vendor/libsodium/test/default/sodium_utils2.c +8 -3
  183. data/vendor/libsodium/test/default/sodium_utils3.c +4 -2
  184. data/vendor/libsodium/test/default/verify1.c +0 -4
  185. data/vendor/libsodium/test/quirks/quirks.h +3 -0
  186. metadata +37 -22
  187. data/vendor/libsodium/builds/msvc/vs2010/test/test.props +0 -43
  188. data/vendor/libsodium/builds/msvc/vs2010/test/test.runner.bat +0 -78
  189. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +0 -244
  190. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +0 -192
  191. data/vendor/libsodium/builds/msvc/vs2012/test/test.props +0 -43
  192. data/vendor/libsodium/builds/msvc/vs2012/test/test.runner.bat +0 -78
  193. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +0 -244
  194. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +0 -192
  195. data/vendor/libsodium/builds/msvc/vs2013/test/test.props +0 -43
  196. data/vendor/libsodium/builds/msvc/vs2013/test/test.runner.bat +0 -78
  197. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +0 -244
  198. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +0 -192
  199. data/vendor/libsodium/builds/msvc/vs2015/test/test.props +0 -43
  200. data/vendor/libsodium/builds/msvc/vs2015/test/test.runner.bat +0 -78
  201. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj +0 -244
  202. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj.filters +0 -192
  203. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sysendian.h +0 -146
  204. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common_aes128ctr.c +0 -64
@@ -1,5 +1,5 @@
1
1
  AC_PREREQ([2.65])
2
- AC_INIT([libsodium],[1.0.8],
2
+ AC_INIT([libsodium],[1.0.9],
3
3
  [https://github.com/jedisct1/libsodium/issues],
4
4
  [libsodium],
5
5
  [https://github.com/jedisct1/libsodium])
@@ -17,9 +17,9 @@ ISODATE=`date +%Y-%m-%d`
17
17
  AC_SUBST(ISODATE)
18
18
 
19
19
  SODIUM_LIBRARY_VERSION_MAJOR=9
20
- SODIUM_LIBRARY_VERSION_MINOR=1
20
+ SODIUM_LIBRARY_VERSION_MINOR=2
21
21
  DLL_VERSION=8
22
- SODIUM_LIBRARY_VERSION=18:1:0
22
+ SODIUM_LIBRARY_VERSION=19:0:1
23
23
  # | | |
24
24
  # +------+ | +---+
25
25
  # | | |
@@ -139,12 +139,14 @@ AC_ARG_ENABLE(opt,
139
139
  [AS_HELP_STRING(--enable-opt,Optimize for the native CPU - The resulting library will be faster but not portable)],
140
140
  [
141
141
  AS_IF([test "x$enableval" = "xyes"], [
142
- CFLAGS="$CFLAGS -march=native -save-temps"
143
- LDFLAGS="$LDFLAGS -march=native"])
142
+ CFLAGS="$CFLAGS -O3 -march=native"
143
+ LDFLAGS="$LDFLAGS -O3 -march=native"])
144
144
  ])
145
145
 
146
146
  AC_SUBST([MAINT])
147
147
 
148
+ AX_VALGRIND_CHECK
149
+
148
150
  dnl Checks
149
151
 
150
152
  AC_PROG_CC_C99
@@ -184,6 +186,22 @@ AX_CHECK_COMPILE_FLAG([-fno-strict-overflow], [CFLAGS="$CFLAGS -fno-strict-overf
184
186
  AX_CHECK_COMPILE_FLAG([-fwrapv], [CFLAGS="$CFLAGS -fwrapv"])
185
187
  ])
186
188
 
189
+ AS_IF([test "$GCC" = "yes" ], [
190
+ AS_CASE([$host_cpu],
191
+ [i?86|amd64|x86_64], [
192
+ AC_COMPILE_IFELSE(
193
+ [AC_LANG_SOURCE([
194
+ #if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
195
+ # error old gcc
196
+ #endif
197
+ int main(void) { return 0; }
198
+ ])],,[
199
+ AX_CHECK_COMPILE_FLAG([-flax-vector-conversions], [CFLAGS="$CFLAGS -flax-vector-conversions"])
200
+ ])
201
+ ]
202
+ )
203
+ ])
204
+
187
205
  LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
188
206
  LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
189
207
  AC_ARG_ENABLE(soname-versions,
@@ -198,6 +216,7 @@ AC_ARG_ENABLE(soname-versions,
198
216
  AS_CASE([$host_os],
199
217
  [cygwin*|mingw*|msys|pw32*|cegcc*], [
200
218
  AX_CHECK_LINK_FLAG([-Wl,--dynamicbase], [LDFLAGS="$LDFLAGS -Wl,--dynamicbase"])
219
+ AX_CHECK_LINK_FLAG([-Wl,--high-entropy-va], [LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"])
201
220
  AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"])
202
221
  ])
203
222
 
@@ -214,7 +233,6 @@ AS_CASE([$host_os],
214
233
  ])
215
234
  ])
216
235
 
217
- AX_CHECK_COMPILE_FLAG([-Winit-self], [CFLAGS="$CFLAGS -Winit-self"])
218
236
  AX_CHECK_COMPILE_FLAG([-Wwrite-strings], [CFLAGS="$CFLAGS -Wwrite-strings"])
219
237
  AX_CHECK_COMPILE_FLAG([-Wdiv-by-zero], [CFLAGS="$CFLAGS -Wdiv-by-zero"])
220
238
  AX_CHECK_COMPILE_FLAG([-Wsometimes-uninitialized], [CFLAGS="$CFLAGS -Wsometimes-uninitialized"])
@@ -240,16 +258,15 @@ be sad
240
258
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wbad-function-cast], [CWFLAGS="$CWFLAGS -Wbad-function-cast"])
241
259
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wcast-align], [CWFLAGS="$CWFLAGS -Wcast-align"])
242
260
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wcast-qual], [CWFLAGS="$CWFLAGS -Wcast-qual"])
243
- AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wchar-subscripts], [CWFLAGS="$CWFLAGS -Wchar-subscripts"])
244
- AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wcomment], [CWFLAGS="$CWFLAGS -Wcomment"])
261
+ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wduplicated-cond], [CWFLAGS="$CWFLAGS -Wduplicated-cond"])
245
262
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wfloat-equal], [CWFLAGS="$CWFLAGS -Wfloat-equal"])
246
263
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wformat=2], [CWFLAGS="$CWFLAGS -Wformat=2"])
247
- AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wimplicit], [CWFLAGS="$CWFLAGS -Wimplicit"])
248
264
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wmissing-declarations], [CWFLAGS="$CWFLAGS -Wmissing-declarations"])
249
265
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wmissing-prototypes], [CWFLAGS="$CWFLAGS -Wmissing-prototypes"])
266
+ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wnested-externs], [CWFLAGS="$CWFLAGS -Wnested-externs"])
267
+ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wno-unknown-pragmas], [CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"])
250
268
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wnormalized=id], [CWFLAGS="$CWFLAGS -Wnormalized=id"])
251
- AX_CHECK_COMPILE_FLAG([$CWFLAGS -Woverride-init], [CWFLAGS="$CWFLAGS -Woverride-init"])
252
- AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wparentheses], [CWFLAGS="$CWFLAGS -Wparentheses"])
269
+ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wnull-dereference], [CWFLAGS="$CWFLAGS -Wnull-dereference"])
253
270
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wpointer-arith], [CWFLAGS="$CWFLAGS -Wpointer-arith"])
254
271
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wredundant-decls], [CWFLAGS="$CWFLAGS -Wredundant-decls"])
255
272
  AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wstrict-prototypes], [CWFLAGS="$CWFLAGS -Wstrict-prototypes"])
@@ -292,7 +309,8 @@ AS_IF([test "x$EMSCRIPTEN" = "x"],[
292
309
  # define __SSE2__
293
310
  #endif
294
311
  #include <emmintrin.h>
295
- ]], [[ __m128d x = _mm_setzero_pd(); ]])],
312
+ ]], [[ __m128d x = _mm_setzero_pd();
313
+ __m128i y = _mm_srli_epi64(_mm_setzero_si128(), 26); ]])],
296
314
  [AC_MSG_RESULT(yes)
297
315
  AC_DEFINE([HAVE_EMMINTRIN_H], [1], [sse2 is available])
298
316
  AX_CHECK_COMPILE_FLAG([-msse2], [CFLAGS_SSE2="-msse2"])],
@@ -352,6 +370,19 @@ AS_IF([test "x$EMSCRIPTEN" = "x"],[
352
370
  [AC_MSG_RESULT(no)])
353
371
  CFLAGS="$oldcflags"
354
372
 
373
+ oldcflags="$CFLAGS"
374
+ AX_CHECK_COMPILE_FLAG([-mavx2], [CFLAGS="$CFLAGS -mavx2"])
375
+ AC_MSG_CHECKING(for AVX2 instructions set)
376
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
377
+ #pragma GCC target("avx2")
378
+ #include <immintrin.h>
379
+ ]], [[ __m256i x = _mm256_abs_epi8(_mm256_setzero_si256()); ]])],
380
+ [AC_MSG_RESULT(yes)
381
+ AC_DEFINE([HAVE_AVX2INTRIN_H], [1], [AVX2 is available])
382
+ AX_CHECK_COMPILE_FLAG([-mavx2], [CFLAGS_AVX="-mavx2"])],
383
+ [AC_MSG_RESULT(no)])
384
+ CFLAGS="$oldcflags"
385
+
355
386
  oldcflags="$CFLAGS"
356
387
  AX_CHECK_COMPILE_FLAG([-maes], [CFLAGS="$CFLAGS -maes"])
357
388
  AX_CHECK_COMPILE_FLAG([-mpclmul], [CFLAGS="$CFLAGS -mpclmul"])
@@ -377,6 +408,8 @@ AC_SUBST(CFLAGS_SSE2)
377
408
  AC_SUBST(CFLAGS_SSE3)
378
409
  AC_SUBST(CFLAGS_SSSE3)
379
410
  AC_SUBST(CFLAGS_SSE41)
411
+ AC_SUBST(CFLAGS_AVX)
412
+ AC_SUBST(CFLAGS_AVX2)
380
413
  AC_SUBST(CFLAGS_AESNI)
381
414
  AC_SUBST(CFLAGS_PCLMUL)
382
415
 
@@ -385,11 +418,15 @@ AC_CHECK_HEADERS([sys/mman.h])
385
418
  dnl Checks for typedefs, structures, and compiler characteristics.
386
419
 
387
420
  AC_C_INLINE
421
+ AS_CASE([$host_cpu],
422
+ [i?86|amd64|x86_64],
423
+ [ac_cv_c_bigendian=no]
424
+ )
388
425
  AC_C_BIGENDIAN(
389
426
  AC_DEFINE(NATIVE_BIG_ENDIAN, 1, [machine is bigendian]),
390
427
  AC_DEFINE(NATIVE_LITTLE_ENDIAN, 1, [machine is littleendian]),
391
- AC_MSG_ERROR([unknown endianess]),
392
- AC_MSG_ERROR([universal endianess is not supported - compile separately and use lipo(1)])
428
+ AC_MSG_ERROR([unknown endianness]),
429
+ AC_MSG_ERROR([universal endianness is not supported - compile separately and use lipo(1)])
393
430
  )
394
431
 
395
432
  AC_MSG_CHECKING(whether __STDC_LIMIT_MACROS is required)
@@ -510,6 +547,47 @@ __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
510
547
  ])
511
548
  AC_SUBST(HAVE_CPUID_V)
512
549
 
550
+ asm_hide_symbol="unsupported"
551
+ AS_IF([test "$enable_asm" != "no"],[
552
+ AC_MSG_CHECKING(if the .private_extern asm directive is supported)
553
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[
554
+ __asm__ __volatile__ (".private_extern dummy_symbol \n"
555
+ ".private_extern _dummy_symbol \n"
556
+ ".globl dummy_symbol \n"
557
+ ".globl _dummy_symbol \n"
558
+ "dummy_symbol: \n"
559
+ "_dummy_symbol: \n"
560
+ " nop \n"
561
+ );
562
+ ]])],
563
+ [AC_MSG_RESULT(yes)
564
+ asm_hide_symbol=".private_extern"],
565
+ [AC_MSG_RESULT(no)])
566
+
567
+ AC_MSG_CHECKING(if the .hidden asm directive is supported)
568
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[
569
+ __asm__ __volatile__ (".hidden dummy_symbol \n"
570
+ ".hidden _dummy_symbol \n"
571
+ ".globl dummy_symbol \n"
572
+ ".globl _dummy_symbol \n"
573
+ "dummy_symbol: \n"
574
+ "_dummy_symbol: \n"
575
+ " nop \n"
576
+ );
577
+ ]])],
578
+ [AC_MSG_RESULT(yes)
579
+ AS_IF([test "$asm_hide_symbol" = "unsupported"],
580
+ [asm_hide_symbol=".hidden"],
581
+ [AC_MSG_NOTICE([unable to reliably tag symbols as private])
582
+ asm_hide_symbol="unsupported"])
583
+ ],
584
+ [AC_MSG_RESULT(no)])
585
+
586
+ AS_IF([test "$asm_hide_symbol" != "unsupported"],[
587
+ AC_DEFINE_UNQUOTED([ASM_HIDE_SYMBOL], [$asm_hide_symbol], [directive to hide symbols])
588
+ ])
589
+ ])
590
+
513
591
  AC_MSG_CHECKING(if weak symbols are supported)
514
592
  AC_LINK_IFELSE([AC_LANG_PROGRAM([[
515
593
  __attribute__((weak)) void __dummy(void *x) { }
@@ -523,7 +601,7 @@ void f(void *x) { __dummy(x); }
523
601
  AC_MSG_CHECKING(if data alignment is required)
524
602
  aligned_access_required=yes
525
603
  AS_CASE([$host_cpu],
526
- [i*86 | x86_64 | powerpc* | s390*],
604
+ [i?86|amd64|x86_64|powerpc*|s390*],
527
605
  [aligned_access_required=no],
528
606
  [arm*],
529
607
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
@@ -550,7 +628,7 @@ AC_SUBST([LIBTOOL_EXTRA_FLAGS])
550
628
  TEST_LDFLAGS=''
551
629
  AS_IF([test "x$EMSCRIPTEN" != "x"],[
552
630
  EXEEXT=.js
553
- TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s NO_BROWSER=1 -s RESERVED_FUNCTION_POINTERS=8'
631
+ TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
554
632
  ])
555
633
  AC_SUBST(TEST_LDFLAGS)
556
634
  AM_CONDITIONAL([EMSCRIPTEN], [test "x$EMSCRIPTEN" != "x"])
@@ -92,6 +92,7 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92
92
  am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
93
93
  $(top_srcdir)/m4/ax_check_define.m4 \
94
94
  $(top_srcdir)/m4/ax_check_link_flag.m4 \
95
+ $(top_srcdir)/m4/ax_valgrind_check.m4 \
95
96
  $(top_srcdir)/m4/ld-output-def.m4 $(top_srcdir)/m4/libtool.m4 \
96
97
  $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
97
98
  $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
@@ -140,6 +141,8 @@ CCASFLAGS = @CCASFLAGS@
140
141
  CCDEPMODE = @CCDEPMODE@
141
142
  CFLAGS = @CFLAGS@
142
143
  CFLAGS_AESNI = @CFLAGS_AESNI@
144
+ CFLAGS_AVX = @CFLAGS_AVX@
145
+ CFLAGS_AVX2 = @CFLAGS_AVX2@
143
146
  CFLAGS_MMX = @CFLAGS_MMX@
144
147
  CFLAGS_PCLMUL = @CFLAGS_PCLMUL@
145
148
  CFLAGS_SSE2 = @CFLAGS_SSE2@
@@ -212,6 +215,12 @@ SODIUM_LIBRARY_VERSION_MAJOR = @SODIUM_LIBRARY_VERSION_MAJOR@
212
215
  SODIUM_LIBRARY_VERSION_MINOR = @SODIUM_LIBRARY_VERSION_MINOR@
213
216
  STRIP = @STRIP@
214
217
  TEST_LDFLAGS = @TEST_LDFLAGS@
218
+ VALGRIND = @VALGRIND@
219
+ VALGRIND_ENABLED = @VALGRIND_ENABLED@
220
+ VALGRIND_HAVE_TOOL_drd = @VALGRIND_HAVE_TOOL_drd@
221
+ VALGRIND_HAVE_TOOL_exp_sgcheck = @VALGRIND_HAVE_TOOL_exp_sgcheck@
222
+ VALGRIND_HAVE_TOOL_helgrind = @VALGRIND_HAVE_TOOL_helgrind@
223
+ VALGRIND_HAVE_TOOL_memcheck = @VALGRIND_HAVE_TOOL_memcheck@
215
224
  VERSION = @VERSION@
216
225
  abs_builddir = @abs_builddir@
217
226
  abs_srcdir = @abs_srcdir@
@@ -0,0 +1,370 @@
1
+ _crypto_aead_aes256gcm_abytes 0 0
2
+ _crypto_aead_aes256gcm_beforenm 0 0
3
+ _crypto_aead_aes256gcm_decrypt 0 0
4
+ _crypto_aead_aes256gcm_decrypt_afternm 0 0
5
+ _crypto_aead_aes256gcm_decrypt_detached 0 0
6
+ _crypto_aead_aes256gcm_decrypt_detached_afternm 0 0
7
+ _crypto_aead_aes256gcm_encrypt 0 0
8
+ _crypto_aead_aes256gcm_encrypt_afternm 0 0
9
+ _crypto_aead_aes256gcm_encrypt_detached 0 0
10
+ _crypto_aead_aes256gcm_encrypt_detached_afternm 0 0
11
+ _crypto_aead_aes256gcm_is_available 0 0
12
+ _crypto_aead_aes256gcm_keybytes 0 0
13
+ _crypto_aead_aes256gcm_npubbytes 0 0
14
+ _crypto_aead_aes256gcm_nsecbytes 0 0
15
+ _crypto_aead_aes256gcm_statebytes 0 0
16
+ _crypto_aead_chacha20poly1305_abytes 1 1
17
+ _crypto_aead_chacha20poly1305_decrypt 1 1
18
+ _crypto_aead_chacha20poly1305_decrypt_detached 1 1
19
+ _crypto_aead_chacha20poly1305_encrypt 1 1
20
+ _crypto_aead_chacha20poly1305_encrypt_detached 1 1
21
+ _crypto_aead_chacha20poly1305_ietf_abytes 1 1
22
+ _crypto_aead_chacha20poly1305_ietf_decrypt 1 1
23
+ _crypto_aead_chacha20poly1305_ietf_decrypt_detached 1 1
24
+ _crypto_aead_chacha20poly1305_ietf_encrypt 1 1
25
+ _crypto_aead_chacha20poly1305_ietf_encrypt_detached 1 1
26
+ _crypto_aead_chacha20poly1305_ietf_keybytes 1 1
27
+ _crypto_aead_chacha20poly1305_ietf_npubbytes 1 1
28
+ _crypto_aead_chacha20poly1305_ietf_nsecbytes 1 1
29
+ _crypto_aead_chacha20poly1305_keybytes 1 1
30
+ _crypto_aead_chacha20poly1305_npubbytes 1 1
31
+ _crypto_aead_chacha20poly1305_nsecbytes 1 1
32
+ _crypto_auth 1 1
33
+ _crypto_auth_bytes 1 1
34
+ _crypto_auth_hmacsha256 0 1
35
+ _crypto_auth_hmacsha256_bytes 0 1
36
+ _crypto_auth_hmacsha256_final 0 1
37
+ _crypto_auth_hmacsha256_init 0 1
38
+ _crypto_auth_hmacsha256_keybytes 0 1
39
+ _crypto_auth_hmacsha256_statebytes 0 1
40
+ _crypto_auth_hmacsha256_update 0 1
41
+ _crypto_auth_hmacsha256_verify 0 1
42
+ _crypto_auth_hmacsha512 0 1
43
+ _crypto_auth_hmacsha512256 0 1
44
+ _crypto_auth_hmacsha512256_bytes 0 1
45
+ _crypto_auth_hmacsha512256_final 0 1
46
+ _crypto_auth_hmacsha512256_init 0 1
47
+ _crypto_auth_hmacsha512256_keybytes 0 1
48
+ _crypto_auth_hmacsha512256_statebytes 0 1
49
+ _crypto_auth_hmacsha512256_update 0 1
50
+ _crypto_auth_hmacsha512256_verify 0 1
51
+ _crypto_auth_hmacsha512_bytes 0 1
52
+ _crypto_auth_hmacsha512_final 0 1
53
+ _crypto_auth_hmacsha512_init 0 1
54
+ _crypto_auth_hmacsha512_keybytes 0 1
55
+ _crypto_auth_hmacsha512_statebytes 0 1
56
+ _crypto_auth_hmacsha512_update 0 1
57
+ _crypto_auth_hmacsha512_verify 0 1
58
+ _crypto_auth_keybytes 1 1
59
+ _crypto_auth_primitive 0 0
60
+ _crypto_auth_verify 1 1
61
+ _crypto_box 0 1
62
+ _crypto_box_afternm 0 1
63
+ _crypto_box_beforenm 1 1
64
+ _crypto_box_beforenmbytes 1 1
65
+ _crypto_box_boxzerobytes 0 1
66
+ _crypto_box_curve25519xsalsa20poly1305 0 1
67
+ _crypto_box_curve25519xsalsa20poly1305_afternm 0 1
68
+ _crypto_box_curve25519xsalsa20poly1305_beforenm 0 1
69
+ _crypto_box_curve25519xsalsa20poly1305_beforenmbytes 0 1
70
+ _crypto_box_curve25519xsalsa20poly1305_boxzerobytes 0 1
71
+ _crypto_box_curve25519xsalsa20poly1305_keypair 0 1
72
+ _crypto_box_curve25519xsalsa20poly1305_macbytes 0 1
73
+ _crypto_box_curve25519xsalsa20poly1305_noncebytes 0 1
74
+ _crypto_box_curve25519xsalsa20poly1305_open 0 1
75
+ _crypto_box_curve25519xsalsa20poly1305_open_afternm 0 1
76
+ _crypto_box_curve25519xsalsa20poly1305_publickeybytes 0 1
77
+ _crypto_box_curve25519xsalsa20poly1305_secretkeybytes 0 1
78
+ _crypto_box_curve25519xsalsa20poly1305_seed_keypair 0 1
79
+ _crypto_box_curve25519xsalsa20poly1305_seedbytes 0 1
80
+ _crypto_box_curve25519xsalsa20poly1305_zerobytes 0 1
81
+ _crypto_box_detached 1 1
82
+ _crypto_box_detached_afternm 1 1
83
+ _crypto_box_easy 1 1
84
+ _crypto_box_easy_afternm 1 1
85
+ _crypto_box_keypair 1 1
86
+ _crypto_box_macbytes 1 1
87
+ _crypto_box_noncebytes 1 1
88
+ _crypto_box_open 0 1
89
+ _crypto_box_open_afternm 0 1
90
+ _crypto_box_open_detached 1 1
91
+ _crypto_box_open_detached_afternm 1 1
92
+ _crypto_box_open_easy 1 1
93
+ _crypto_box_open_easy_afternm 1 1
94
+ _crypto_box_primitive 0 1
95
+ _crypto_box_publickeybytes 1 1
96
+ _crypto_box_seal 1 1
97
+ _crypto_box_seal_open 1 1
98
+ _crypto_box_sealbytes 1 1
99
+ _crypto_box_secretkeybytes 1 1
100
+ _crypto_box_seed_keypair 1 1
101
+ _crypto_box_seedbytes 1 1
102
+ _crypto_box_zerobytes 0 1
103
+ _crypto_core_hchacha20 1 1
104
+ _crypto_core_hchacha20_constbytes 1 1
105
+ _crypto_core_hchacha20_inputbytes 1 1
106
+ _crypto_core_hchacha20_keybytes 1 1
107
+ _crypto_core_hchacha20_outputbytes 1 1
108
+ _crypto_core_hsalsa20 0 1
109
+ _crypto_core_hsalsa20_constbytes 0 1
110
+ _crypto_core_hsalsa20_inputbytes 0 1
111
+ _crypto_core_hsalsa20_keybytes 0 1
112
+ _crypto_core_hsalsa20_outputbytes 0 1
113
+ _crypto_core_salsa20 0 1
114
+ _crypto_core_salsa2012 0 1
115
+ _crypto_core_salsa2012_constbytes 0 1
116
+ _crypto_core_salsa2012_inputbytes 0 1
117
+ _crypto_core_salsa2012_keybytes 0 1
118
+ _crypto_core_salsa2012_outputbytes 0 1
119
+ _crypto_core_salsa208 0 1
120
+ _crypto_core_salsa208_constbytes 0 1
121
+ _crypto_core_salsa208_inputbytes 0 1
122
+ _crypto_core_salsa208_keybytes 0 1
123
+ _crypto_core_salsa208_outputbytes 0 1
124
+ _crypto_core_salsa20_constbytes 0 1
125
+ _crypto_core_salsa20_inputbytes 0 1
126
+ _crypto_core_salsa20_keybytes 0 1
127
+ _crypto_core_salsa20_outputbytes 0 1
128
+ _crypto_generichash 1 1
129
+ _crypto_generichash_blake2b 0 1
130
+ _crypto_generichash_blake2b_bytes 0 1
131
+ _crypto_generichash_blake2b_bytes_max 0 1
132
+ _crypto_generichash_blake2b_bytes_min 0 1
133
+ _crypto_generichash_blake2b_final 0 1
134
+ _crypto_generichash_blake2b_init 0 1
135
+ _crypto_generichash_blake2b_init_salt_personal 0 1
136
+ _crypto_generichash_blake2b_keybytes 0 1
137
+ _crypto_generichash_blake2b_keybytes_max 0 1
138
+ _crypto_generichash_blake2b_keybytes_min 0 1
139
+ _crypto_generichash_blake2b_personalbytes 0 1
140
+ _crypto_generichash_blake2b_salt_personal 0 1
141
+ _crypto_generichash_blake2b_saltbytes 0 1
142
+ _crypto_generichash_blake2b_statebytes 0 1
143
+ _crypto_generichash_blake2b_update 0 1
144
+ _crypto_generichash_bytes 1 1
145
+ _crypto_generichash_bytes_max 1 1
146
+ _crypto_generichash_bytes_min 1 1
147
+ _crypto_generichash_final 1 1
148
+ _crypto_generichash_init 1 1
149
+ _crypto_generichash_keybytes 1 1
150
+ _crypto_generichash_keybytes_max 1 1
151
+ _crypto_generichash_keybytes_min 1 1
152
+ _crypto_generichash_primitive 1 1
153
+ _crypto_generichash_statebytes 1 1
154
+ _crypto_generichash_update 1 1
155
+ _crypto_hash 1 1
156
+ _crypto_hash_bytes 1 1
157
+ _crypto_hash_primitive 0 1
158
+ _crypto_hash_sha256 0 1
159
+ _crypto_hash_sha256_bytes 0 1
160
+ _crypto_hash_sha256_final 0 1
161
+ _crypto_hash_sha256_init 0 1
162
+ _crypto_hash_sha256_statebytes 0 1
163
+ _crypto_hash_sha256_update 0 1
164
+ _crypto_hash_sha512 0 1
165
+ _crypto_hash_sha512_bytes 0 1
166
+ _crypto_hash_sha512_final 0 1
167
+ _crypto_hash_sha512_init 0 1
168
+ _crypto_hash_sha512_statebytes 0 1
169
+ _crypto_hash_sha512_update 0 1
170
+ _crypto_onetimeauth 0 1
171
+ _crypto_onetimeauth_bytes 0 1
172
+ _crypto_onetimeauth_final 0 1
173
+ _crypto_onetimeauth_init 0 1
174
+ _crypto_onetimeauth_keybytes 0 1
175
+ _crypto_onetimeauth_poly1305 0 1
176
+ _crypto_onetimeauth_poly1305_bytes 0 1
177
+ _crypto_onetimeauth_poly1305_final 0 1
178
+ _crypto_onetimeauth_poly1305_init 0 1
179
+ _crypto_onetimeauth_poly1305_keybytes 0 1
180
+ _crypto_onetimeauth_poly1305_update 0 1
181
+ _crypto_onetimeauth_poly1305_verify 0 1
182
+ _crypto_onetimeauth_primitive 0 1
183
+ _crypto_onetimeauth_statebytes 0 1
184
+ _crypto_onetimeauth_update 0 1
185
+ _crypto_onetimeauth_verify 0 1
186
+ _crypto_pwhash 1 1
187
+ _crypto_pwhash_alg_argon2i13 1 1
188
+ _crypto_pwhash_alg_default 1 1
189
+ _crypto_pwhash_argon2i 0 1
190
+ _crypto_pwhash_argon2i_alg_argon2i13 0 1
191
+ _crypto_pwhash_argon2i_memlimit_interactive 0 1
192
+ _crypto_pwhash_argon2i_memlimit_moderate 0 1
193
+ _crypto_pwhash_argon2i_memlimit_sensitive 0 1
194
+ _crypto_pwhash_argon2i_opslimit_interactive 0 1
195
+ _crypto_pwhash_argon2i_opslimit_moderate 0 1
196
+ _crypto_pwhash_argon2i_opslimit_sensitive 0 1
197
+ _crypto_pwhash_argon2i_saltbytes 0 1
198
+ _crypto_pwhash_argon2i_str 0 1
199
+ _crypto_pwhash_argon2i_str_verify 0 1
200
+ _crypto_pwhash_argon2i_strbytes 0 1
201
+ _crypto_pwhash_argon2i_strprefix 0 1
202
+ _crypto_pwhash_memlimit_interactive 1 1
203
+ _crypto_pwhash_memlimit_moderate 1 1
204
+ _crypto_pwhash_memlimit_sensitive 1 1
205
+ _crypto_pwhash_opslimit_interactive 1 1
206
+ _crypto_pwhash_opslimit_moderate 1 1
207
+ _crypto_pwhash_opslimit_sensitive 1 1
208
+ _crypto_pwhash_primitive 0 1
209
+ _crypto_pwhash_saltbytes 1 1
210
+ _crypto_pwhash_scryptsalsa208sha256 1 1
211
+ _crypto_pwhash_scryptsalsa208sha256_ll 1 1
212
+ _crypto_pwhash_scryptsalsa208sha256_memlimit_interactive 1 1
213
+ _crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive 1 1
214
+ _crypto_pwhash_scryptsalsa208sha256_opslimit_interactive 1 1
215
+ _crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive 1 1
216
+ _crypto_pwhash_scryptsalsa208sha256_saltbytes 1 1
217
+ _crypto_pwhash_scryptsalsa208sha256_str 1 1
218
+ _crypto_pwhash_scryptsalsa208sha256_str_verify 1 1
219
+ _crypto_pwhash_scryptsalsa208sha256_strbytes 1 1
220
+ _crypto_pwhash_scryptsalsa208sha256_strprefix 1 1
221
+ _crypto_pwhash_str 1 1
222
+ _crypto_pwhash_str_verify 1 1
223
+ _crypto_pwhash_strbytes 1 1
224
+ _crypto_pwhash_strprefix 1 1
225
+ _crypto_scalarmult 1 1
226
+ _crypto_scalarmult_base 1 1
227
+ _crypto_scalarmult_bytes 1 1
228
+ _crypto_scalarmult_curve25519 0 1
229
+ _crypto_scalarmult_curve25519_base 0 1
230
+ _crypto_scalarmult_curve25519_bytes 0 1
231
+ _crypto_scalarmult_curve25519_scalarbytes 0 1
232
+ _crypto_scalarmult_primitive 0 1
233
+ _crypto_scalarmult_scalarbytes 1 1
234
+ _crypto_secretbox 0 1
235
+ _crypto_secretbox_boxzerobytes 0 1
236
+ _crypto_secretbox_detached 1 1
237
+ _crypto_secretbox_easy 1 1
238
+ _crypto_secretbox_keybytes 1 1
239
+ _crypto_secretbox_macbytes 1 1
240
+ _crypto_secretbox_noncebytes 1 1
241
+ _crypto_secretbox_open 0 1
242
+ _crypto_secretbox_open_detached 1 1
243
+ _crypto_secretbox_open_easy 1 1
244
+ _crypto_secretbox_primitive 0 1
245
+ _crypto_secretbox_xsalsa20poly1305 0 1
246
+ _crypto_secretbox_xsalsa20poly1305_boxzerobytes 0 1
247
+ _crypto_secretbox_xsalsa20poly1305_keybytes 0 1
248
+ _crypto_secretbox_xsalsa20poly1305_macbytes 0 1
249
+ _crypto_secretbox_xsalsa20poly1305_noncebytes 0 1
250
+ _crypto_secretbox_xsalsa20poly1305_open 0 1
251
+ _crypto_secretbox_xsalsa20poly1305_zerobytes 0 1
252
+ _crypto_secretbox_zerobytes 0 1
253
+ _crypto_shorthash 1 1
254
+ _crypto_shorthash_bytes 1 1
255
+ _crypto_shorthash_keybytes 1 1
256
+ _crypto_shorthash_primitive 0 1
257
+ _crypto_shorthash_siphash24 0 1
258
+ _crypto_shorthash_siphash24_bytes 0 1
259
+ _crypto_shorthash_siphash24_keybytes 0 1
260
+ _crypto_sign 1 1
261
+ _crypto_sign_bytes 1 1
262
+ _crypto_sign_detached 1 1
263
+ _crypto_sign_ed25519 0 1
264
+ _crypto_sign_ed25519_bytes 0 1
265
+ _crypto_sign_ed25519_detached 0 1
266
+ _crypto_sign_ed25519_keypair 0 1
267
+ _crypto_sign_ed25519_open 0 1
268
+ _crypto_sign_ed25519_pk_to_curve25519 1 1
269
+ _crypto_sign_ed25519_publickeybytes 0 1
270
+ _crypto_sign_ed25519_secretkeybytes 0 1
271
+ _crypto_sign_ed25519_seed_keypair 0 1
272
+ _crypto_sign_ed25519_seedbytes 0 1
273
+ _crypto_sign_ed25519_sk_to_curve25519 1 1
274
+ _crypto_sign_ed25519_sk_to_pk 0 1
275
+ _crypto_sign_ed25519_sk_to_seed 0 1
276
+ _crypto_sign_ed25519_verify_detached 0 1
277
+ _crypto_sign_edwards25519sha512batch 0 0
278
+ _crypto_sign_edwards25519sha512batch_keypair 0 0
279
+ _crypto_sign_edwards25519sha512batch_open 0 0
280
+ _crypto_sign_keypair 1 1
281
+ _crypto_sign_open 1 1
282
+ _crypto_sign_primitive 0 1
283
+ _crypto_sign_publickeybytes 1 1
284
+ _crypto_sign_secretkeybytes 1 1
285
+ _crypto_sign_seed_keypair 1 1
286
+ _crypto_sign_seedbytes 1 1
287
+ _crypto_sign_verify_detached 1 1
288
+ _crypto_stream 0 1
289
+ _crypto_stream_aes128ctr 0 1
290
+ _crypto_stream_aes128ctr_afternm 0 1
291
+ _crypto_stream_aes128ctr_beforenm 0 1
292
+ _crypto_stream_aes128ctr_beforenmbytes 0 1
293
+ _crypto_stream_aes128ctr_keybytes 0 1
294
+ _crypto_stream_aes128ctr_noncebytes 0 1
295
+ _crypto_stream_aes128ctr_xor 0 1
296
+ _crypto_stream_aes128ctr_xor_afternm 0 1
297
+ _crypto_stream_chacha20 0 1
298
+ _crypto_stream_chacha20_ietf 0 1
299
+ _crypto_stream_chacha20_ietf_noncebytes 0 1
300
+ _crypto_stream_chacha20_ietf_xor 0 1
301
+ _crypto_stream_chacha20_ietf_xor_ic 0 1
302
+ _crypto_stream_chacha20_keybytes 0 1
303
+ _crypto_stream_chacha20_noncebytes 0 1
304
+ _crypto_stream_chacha20_xor 0 1
305
+ _crypto_stream_chacha20_xor_ic 0 1
306
+ _crypto_stream_keybytes 0 1
307
+ _crypto_stream_noncebytes 0 1
308
+ _crypto_stream_primitive 0 1
309
+ _crypto_stream_salsa20 0 1
310
+ _crypto_stream_salsa2012 0 1
311
+ _crypto_stream_salsa2012_keybytes 0 1
312
+ _crypto_stream_salsa2012_noncebytes 0 1
313
+ _crypto_stream_salsa2012_xor 0 1
314
+ _crypto_stream_salsa208 0 1
315
+ _crypto_stream_salsa208_keybytes 0 1
316
+ _crypto_stream_salsa208_noncebytes 0 1
317
+ _crypto_stream_salsa208_xor 0 1
318
+ _crypto_stream_salsa20_keybytes 0 1
319
+ _crypto_stream_salsa20_noncebytes 0 1
320
+ _crypto_stream_salsa20_xor 0 1
321
+ _crypto_stream_salsa20_xor_ic 0 1
322
+ _crypto_stream_xor 0 1
323
+ _crypto_stream_xsalsa20 0 1
324
+ _crypto_stream_xsalsa20_keybytes 0 1
325
+ _crypto_stream_xsalsa20_noncebytes 0 1
326
+ _crypto_stream_xsalsa20_xor 0 1
327
+ _crypto_stream_xsalsa20_xor_ic 0 1
328
+ _crypto_verify_16 0 1
329
+ _crypto_verify_16_bytes 0 1
330
+ _crypto_verify_32 0 1
331
+ _crypto_verify_32_bytes 0 1
332
+ _crypto_verify_64 0 1
333
+ _crypto_verify_64_bytes 0 1
334
+ _randombytes 1 1
335
+ _randombytes_buf 1 1
336
+ _randombytes_close 1 1
337
+ _randombytes_implementation_name 0 1
338
+ _randombytes_random 1 1
339
+ _randombytes_set_implementation 0 0
340
+ _randombytes_stir 1 1
341
+ _randombytes_uniform 1 1
342
+ _sodium_add 0 0
343
+ _sodium_allocarray 0 0
344
+ _sodium_bin2hex 1 1
345
+ _sodium_compare 0 0
346
+ _sodium_free 0 0
347
+ _sodium_hex2bin 1 1
348
+ _sodium_increment 0 0
349
+ _sodium_init 1 1
350
+ _sodium_is_zero 0 0
351
+ _sodium_library_version_major 1 1
352
+ _sodium_library_version_minor 1 1
353
+ _sodium_malloc 0 0
354
+ _sodium_memcmp 0 0
355
+ _sodium_memzero 0 0
356
+ _sodium_mlock 0 0
357
+ _sodium_mprotect_noaccess 0 0
358
+ _sodium_mprotect_readonly 0 0
359
+ _sodium_mprotect_readwrite 0 0
360
+ _sodium_munlock 0 0
361
+ _sodium_runtime_has_aesni 0 0
362
+ _sodium_runtime_has_avx 0 0
363
+ _sodium_runtime_has_avx2 0 0
364
+ _sodium_runtime_has_neon 0 0
365
+ _sodium_runtime_has_pclmul 0 0
366
+ _sodium_runtime_has_sse2 0 0
367
+ _sodium_runtime_has_sse3 0 0
368
+ _sodium_runtime_has_sse41 0 0
369
+ _sodium_runtime_has_ssse3 0 0
370
+ _sodium_version_string 1 1