rbnacl-libsodium 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +4 -0
  3. data/lib/rbnacl/libsodium/version.rb +1 -1
  4. data/vendor/libsodium/AUTHORS +10 -3
  5. data/vendor/libsodium/ChangeLog +19 -1
  6. data/vendor/libsodium/Makefile.in +1 -0
  7. data/vendor/libsodium/README.markdown +1 -1
  8. data/vendor/libsodium/THANKS +1 -0
  9. data/vendor/libsodium/autogen.sh +24 -4
  10. data/vendor/libsodium/autom4te.cache/output.1 +208 -24
  11. data/vendor/libsodium/autom4te.cache/output.5 +208 -24
  12. data/vendor/libsodium/autom4te.cache/requests +869 -869
  13. data/vendor/libsodium/autom4te.cache/traces.1 +426 -406
  14. data/vendor/libsodium/autom4te.cache/traces.5 +255 -245
  15. data/vendor/libsodium/builds/msvc/version.h +2 -2
  16. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +14 -44
  17. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +36 -132
  18. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +14 -44
  19. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +36 -132
  20. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +14 -44
  21. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +36 -132
  22. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +14 -44
  23. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +62 -158
  24. data/vendor/libsodium/configure +208 -24
  25. data/vendor/libsodium/configure.ac +70 -15
  26. data/vendor/libsodium/dist-build/Makefile.in +1 -0
  27. data/vendor/libsodium/dist-build/emscripten.sh +52 -19
  28. data/vendor/libsodium/dist-build/ios.sh +8 -8
  29. data/vendor/libsodium/dist-build/msys2-win32.sh +2 -1
  30. data/vendor/libsodium/dist-build/msys2-win64.sh +2 -1
  31. data/vendor/libsodium/dist-build/osx.sh +2 -2
  32. data/vendor/libsodium/examples/box.c +3 -1
  33. data/vendor/libsodium/examples/box_detached.c +4 -2
  34. data/vendor/libsodium/examples/utils.h +3 -1
  35. data/vendor/libsodium/libsodium.vcxproj +13 -13
  36. data/vendor/libsodium/libsodium.vcxproj.filters +31 -35
  37. data/vendor/libsodium/msvc-scripts/Makefile.in +1 -0
  38. data/vendor/libsodium/msvc-scripts/process.bat +2 -2
  39. data/vendor/libsodium/src/Makefile.in +1 -0
  40. data/vendor/libsodium/src/libsodium/Makefile.am +43 -45
  41. data/vendor/libsodium/src/libsodium/Makefile.in +250 -249
  42. data/vendor/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +28 -22
  43. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/hmac_hmacsha256.c +3 -4
  44. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c +3 -3
  45. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/hmac_hmacsha512.c +3 -4
  46. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c +4 -4
  47. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.c +4 -4
  48. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c +6 -4
  49. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +6 -2
  50. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c +3 -3
  51. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c +5 -3
  52. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c +13 -9
  53. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c +3 -3
  54. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.c +2 -2
  55. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/core_salsa20.c +2 -2
  56. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/core_salsa2012.c +2 -2
  57. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/core_salsa208.c +2 -2
  58. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2.h +2 -2
  59. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +36 -26
  60. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/generichash_blake2b.c +1 -1
  61. data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +1 -2
  62. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +2 -3
  63. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +2 -3
  64. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/{auth_poly1305_donna.c → poly1305_donna.c} +18 -11
  65. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h +1 -5
  66. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +10 -9
  67. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +17 -9
  68. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c +10 -1
  69. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c +708 -0
  70. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.h +31 -0
  71. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +1 -0
  72. data/vendor/libsodium/src/libsodium/crypto_scalarmult/crypto_scalarmult.c +11 -12
  73. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/{smult_curve25519_donna_c64.c → curve25519_donna_c64.c} +32 -15
  74. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.h +9 -0
  75. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/curve25519_ref10.c +73 -0
  76. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/curve25519_ref10.h +9 -0
  77. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_frombytes_curve25519_ref10.c +1 -0
  78. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/consts.S +25 -0
  79. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/consts_namespace.h +20 -0
  80. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.c +114 -0
  81. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.h +9 -0
  82. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h +25 -0
  83. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h +33 -0
  84. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_invert.c +57 -0
  85. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S +189 -0
  86. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_namespace.h +16 -0
  87. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S +165 -0
  88. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S +219 -0
  89. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c +76 -0
  90. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S +1432 -0
  91. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.h +18 -0
  92. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S +1287 -0
  93. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.h +18 -0
  94. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base_namespace.h +8 -0
  95. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_namespace.h +8 -0
  96. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/sandy2x.S +17 -0
  97. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c +67 -0
  98. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.h +11 -0
  99. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c +3 -3
  100. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24.c +3 -2
  101. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge.h +2 -0
  102. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_double_scalarmult.c +42 -0
  103. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +7 -7
  104. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c +113 -0
  105. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +10 -7
  106. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +10 -10
  107. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +2 -2
  108. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/beforenm_aes128ctr.c +2 -2
  109. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c +10 -9
  110. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +2 -3
  111. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +72 -68
  112. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/{api.h → stream_chacha20_ref.h} +5 -0
  113. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/{stream_chacha20_api.c → stream_chacha20.c} +27 -7
  114. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.h +22 -0
  115. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/vec/stream_chacha20_vec.c +329 -0
  116. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/vec/stream_chacha20_vec.h +27 -0
  117. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S +1 -1
  118. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +2 -2
  119. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +1 -1
  120. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.c +2 -2
  121. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.c +2 -2
  122. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.c +2 -2
  123. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.c +2 -2
  124. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.c +2 -2
  125. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +4 -4
  126. data/vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c +14 -21
  127. data/vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c +14 -37
  128. data/vendor/libsodium/src/libsodium/crypto_verify/64/ref/verify_64.c +14 -69
  129. data/vendor/libsodium/src/libsodium/include/Makefile.in +1 -0
  130. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +8 -4
  131. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +4 -2
  132. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +2 -2
  133. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +2 -3
  134. data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult.h +2 -1
  135. data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h +6 -1
  136. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h +5 -0
  137. data/vendor/libsodium/src/libsodium/include/sodium/randombytes_nativeclient.h +6 -20
  138. data/vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h +1 -28
  139. data/vendor/libsodium/src/libsodium/include/sodium/randombytes_sysrandom.h +1 -27
  140. data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +3 -0
  141. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +6 -0
  142. data/vendor/libsodium/src/libsodium/randombytes/nativeclient/randombytes_nativeclient.c +3 -3
  143. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +58 -51
  144. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +23 -18
  145. data/vendor/libsodium/src/libsodium/sodium/core.c +4 -0
  146. data/vendor/libsodium/src/libsodium/sodium/runtime.c +34 -15
  147. data/vendor/libsodium/src/libsodium/sodium/utils.c +104 -14
  148. data/vendor/libsodium/test/Makefile.in +1 -0
  149. data/vendor/libsodium/test/default/Makefile.in +1 -0
  150. data/vendor/libsodium/test/default/auth.c +5 -5
  151. data/vendor/libsodium/test/default/auth2.c +3 -3
  152. data/vendor/libsodium/test/default/auth3.c +3 -3
  153. data/vendor/libsodium/test/default/auth5.c +4 -4
  154. data/vendor/libsodium/test/default/auth6.c +3 -3
  155. data/vendor/libsodium/test/default/auth7.c +4 -4
  156. data/vendor/libsodium/test/default/box.c +13 -9
  157. data/vendor/libsodium/test/default/box2.c +11 -8
  158. data/vendor/libsodium/test/default/box7.c +11 -9
  159. data/vendor/libsodium/test/default/box8.c +32 -19
  160. data/vendor/libsodium/test/default/box_easy.c +31 -10
  161. data/vendor/libsodium/test/default/box_easy.exp +3 -19
  162. data/vendor/libsodium/test/default/box_easy2.c +30 -15
  163. data/vendor/libsodium/test/default/box_seed.c +1 -1
  164. data/vendor/libsodium/test/default/cmptest.h +22 -1
  165. data/vendor/libsodium/test/default/core1.c +6 -5
  166. data/vendor/libsodium/test/default/core2.c +6 -5
  167. data/vendor/libsodium/test/default/core3.c +8 -7
  168. data/vendor/libsodium/test/default/core4.c +11 -8
  169. data/vendor/libsodium/test/default/core5.c +7 -5
  170. data/vendor/libsodium/test/default/core6.c +8 -6
  171. data/vendor/libsodium/test/default/generichash.c +0 -15
  172. data/vendor/libsodium/test/default/generichash.exp +0 -1
  173. data/vendor/libsodium/test/default/generichash3.c +1 -21
  174. data/vendor/libsodium/test/default/generichash3.exp +1 -1
  175. data/vendor/libsodium/test/default/hash.c +3 -3
  176. data/vendor/libsodium/test/default/hash3.c +2 -2
  177. data/vendor/libsodium/test/default/index.html.tpl +84 -0
  178. data/vendor/libsodium/test/default/onetimeauth.c +3 -3
  179. data/vendor/libsodium/test/default/onetimeauth2.c +5 -4
  180. data/vendor/libsodium/test/default/onetimeauth7.c +4 -4
  181. data/vendor/libsodium/test/default/pre.js.inc +14 -6
  182. data/vendor/libsodium/test/default/randombytes.c +2 -2
  183. data/vendor/libsodium/test/default/scalarmult.c +19 -6
  184. data/vendor/libsodium/test/default/scalarmult.exp +1 -0
  185. data/vendor/libsodium/test/default/scalarmult2.c +2 -2
  186. data/vendor/libsodium/test/default/scalarmult5.c +6 -4
  187. data/vendor/libsodium/test/default/scalarmult6.c +5 -3
  188. data/vendor/libsodium/test/default/scalarmult7.c +11 -7
  189. data/vendor/libsodium/test/default/secretbox.c +7 -6
  190. data/vendor/libsodium/test/default/secretbox2.c +7 -6
  191. data/vendor/libsodium/test/default/secretbox7.c +5 -5
  192. data/vendor/libsodium/test/default/secretbox8.c +5 -5
  193. data/vendor/libsodium/test/default/secretbox_easy.c +27 -17
  194. data/vendor/libsodium/test/default/secretbox_easy.exp +7 -95
  195. data/vendor/libsodium/test/default/secretbox_easy2.c +22 -10
  196. data/vendor/libsodium/test/default/sign.c +5 -0
  197. data/vendor/libsodium/test/default/sodium_utils.c +73 -0
  198. data/vendor/libsodium/test/default/sodium_utils.exp +6 -0
  199. data/vendor/libsodium/test/default/stream.c +7 -6
  200. data/vendor/libsodium/test/default/stream2.c +4 -4
  201. data/vendor/libsodium/test/default/stream3.c +6 -5
  202. data/vendor/libsodium/test/default/stream4.c +7 -6
  203. data/vendor/libsodium/test/default/verify1.c +61 -18
  204. data/vendor/libsodium/test/default/verify1.exp +2 -6
  205. metadata +37 -44
  206. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/api.h +0 -9
  207. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/api.h +0 -9
  208. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/api.h +0 -9
  209. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/api.h +0 -20
  210. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/api.h +0 -10
  211. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/api.h +0 -10
  212. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/api.h +0 -10
  213. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/api.h +0 -10
  214. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/api.h +0 -2
  215. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/api.h +0 -10
  216. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/api.h +0 -10
  217. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/api.h +0 -6
  218. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c +0 -13
  219. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/api.h +0 -5
  220. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/base_curve25519_ref10.c +0 -14
  221. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/scalarmult_curve25519_ref10.c +0 -54
  222. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519_api.c +0 -14
  223. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/api.h +0 -11
  224. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/api.h +0 -7
  225. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/api.h +0 -15
  226. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/api.h +0 -12
  227. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/fe25519.h +0 -54
  228. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c +0 -348
  229. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/ge25519.h +0 -34
  230. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/ge25519_edwards25519sha512batch.c +0 -230
  231. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519.h +0 -51
  232. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.c +0 -150
  233. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c +0 -106
  234. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c +0 -16
  235. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/api.h +0 -13
  236. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/api.h +0 -1
  237. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/api.h +0 -5
  238. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/api.h +0 -10
  239. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/api.h +0 -9
  240. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/api.h +0 -11
  241. data/vendor/libsodium/src/libsodium/crypto_verify/16/ref/api.h +0 -2
  242. data/vendor/libsodium/src/libsodium/crypto_verify/32/ref/api.h +0 -2
  243. data/vendor/libsodium/src/libsodium/crypto_verify/64/ref/api.h +0 -2
@@ -164,6 +164,7 @@ EXEEXT = @EXEEXT@
164
164
  FGREP = @FGREP@
165
165
  GREP = @GREP@
166
166
  HAVE_AMD64_ASM_V = @HAVE_AMD64_ASM_V@
167
+ HAVE_AVX_ASM_V = @HAVE_AVX_ASM_V@
167
168
  HAVE_CPUID_V = @HAVE_CPUID_V@
168
169
  HAVE_TI_MODE_V = @HAVE_TI_MODE_V@
169
170
  INSTALL = @INSTALL@
@@ -2,18 +2,27 @@
2
2
 
3
3
  export MAKE_FLAGS='-j4'
4
4
  export PREFIX="$(pwd)/libsodium-js"
5
- export EXPORTED_FUNCTIONS='["_crypto_auth","_crypto_auth_bytes","_crypto_auth_keybytes","_crypto_auth_verify","_crypto_box_beforenm","_crypto_box_beforenmbytes","_crypto_box_detached","_crypto_box_detached_afternm","_crypto_box_easy","_crypto_box_easy_afternm","_crypto_box_keypair","_crypto_box_macbytes","_crypto_box_noncebytes","_crypto_box_open_detached","_crypto_box_open_detached_afternm","_crypto_box_open_easy","_crypto_box_open_easy_afternm","_crypto_box_publickeybytes","_crypto_box_seal","_crypto_box_seal_open","_crypto_box_sealbytes","_crypto_box_secretkeybytes","_crypto_box_seed_keypair","_crypto_box_seedbytes","_crypto_generichash","_crypto_generichash_bytes","_crypto_generichash_bytes_max","_crypto_generichash_bytes_min","_crypto_generichash_final","_crypto_generichash_init","_crypto_generichash_keybytes","_crypto_generichash_keybytes_max","_crypto_generichash_keybytes_min","_crypto_generichash_statebytes","_crypto_generichash_update","_crypto_hash","_crypto_hash_bytes","_crypto_onetimeauth","_crypto_onetimeauth_bytes","_crypto_onetimeauth_final","_crypto_onetimeauth_init","_crypto_onetimeauth_keybytes","_crypto_onetimeauth_statebytes","_crypto_onetimeauth_update","_crypto_onetimeauth_verify","_crypto_pwhash_scryptsalsa208sha256","_crypto_pwhash_scryptsalsa208sha256_ll","_crypto_pwhash_scryptsalsa208sha256_memlimit_interactive","_crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive","_crypto_pwhash_scryptsalsa208sha256_opslimit_interactive","_crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive","_crypto_pwhash_scryptsalsa208sha256_saltbytes","_crypto_pwhash_scryptsalsa208sha256_str","_crypto_pwhash_scryptsalsa208sha256_str_verify","_crypto_pwhash_scryptsalsa208sha256_strbytes","_crypto_pwhash_scryptsalsa208sha256_strprefix","_crypto_scalarmult","_crypto_scalarmult_base","_crypto_scalarmult_bytes","_crypto_scalarmult_scalarbytes","_crypto_secretbox_detached","_crypto_secretbox_easy","_crypto_secretbox_keybytes","_crypto_secretbox_macbytes","_crypto_secretbox_noncebytes","_crypto_secretbox_open_detached","_crypto_secretbox_open_easy","_crypto_shorthash","_crypto_shorthash_bytes","_crypto_shorthash_keybytes","_crypto_sign","_crypto_sign_bytes","_crypto_sign_detached","_crypto_sign_ed25519_pk_to_curve25519","_crypto_sign_ed25519_sk_to_curve25519","_crypto_sign_keypair","_crypto_sign_open","_crypto_sign_publickeybytes","_crypto_sign_secretkeybytes","_crypto_sign_seed_keypair","_crypto_sign_seedbytes","_crypto_sign_verify_detached","_randombytes_buf","_randombytes_close","_randombytes_random","_randombytes_set_implementation","_randombytes_stir","_randombytes_uniform","_sodium_bin2hex","_sodium_hex2bin","_sodium_init","_sodium_library_version_major","_sodium_library_version_minor","_sodium_memzero","_sodium_version_string"]'
5
+ export EXPORTED_FUNCTIONS='["_crypto_auth","_crypto_auth_bytes","_crypto_auth_keybytes","_crypto_auth_verify","_crypto_box_beforenm","_crypto_box_beforenmbytes","_crypto_box_detached","_crypto_box_detached_afternm","_crypto_box_easy","_crypto_box_easy_afternm","_crypto_box_keypair","_crypto_box_macbytes","_crypto_box_noncebytes","_crypto_box_open_detached","_crypto_box_open_detached_afternm","_crypto_box_open_easy","_crypto_box_open_easy_afternm","_crypto_box_publickeybytes","_crypto_box_seal","_crypto_box_seal_open","_crypto_box_sealbytes","_crypto_box_secretkeybytes","_crypto_box_seed_keypair","_crypto_box_seedbytes","_crypto_generichash","_crypto_generichash_bytes","_crypto_generichash_bytes_max","_crypto_generichash_bytes_min","_crypto_generichash_final","_crypto_generichash_init","_crypto_generichash_keybytes","_crypto_generichash_keybytes_max","_crypto_generichash_keybytes_min","_crypto_generichash_statebytes","_crypto_generichash_update","_crypto_hash","_crypto_hash_bytes","_crypto_onetimeauth","_crypto_onetimeauth_bytes","_crypto_onetimeauth_final","_crypto_onetimeauth_init","_crypto_onetimeauth_keybytes","_crypto_onetimeauth_statebytes","_crypto_onetimeauth_update","_crypto_onetimeauth_verify","_crypto_pwhash_scryptsalsa208sha256","_crypto_pwhash_scryptsalsa208sha256_ll","_crypto_pwhash_scryptsalsa208sha256_memlimit_interactive","_crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive","_crypto_pwhash_scryptsalsa208sha256_opslimit_interactive","_crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive","_crypto_pwhash_scryptsalsa208sha256_saltbytes","_crypto_pwhash_scryptsalsa208sha256_str","_crypto_pwhash_scryptsalsa208sha256_str_verify","_crypto_pwhash_scryptsalsa208sha256_strbytes","_crypto_pwhash_scryptsalsa208sha256_strprefix","_crypto_scalarmult","_crypto_scalarmult_base","_crypto_scalarmult_bytes","_crypto_scalarmult_scalarbytes","_crypto_secretbox_detached","_crypto_secretbox_easy","_crypto_secretbox_keybytes","_crypto_secretbox_macbytes","_crypto_secretbox_noncebytes","_crypto_secretbox_open_detached","_crypto_secretbox_open_easy","_crypto_shorthash","_crypto_shorthash_bytes","_crypto_shorthash_keybytes","_crypto_sign","_crypto_sign_bytes","_crypto_sign_detached","_crypto_sign_ed25519_pk_to_curve25519","_crypto_sign_ed25519_sk_to_curve25519","_crypto_sign_keypair","_crypto_sign_open","_crypto_sign_publickeybytes","_crypto_sign_secretkeybytes","_crypto_sign_seed_keypair","_crypto_sign_seedbytes","_crypto_sign_verify_detached","_randombytes_buf","_randombytes_close","_randombytes_random","_randombytes_stir","_randombytes_uniform","_sodium_bin2hex","_sodium_hex2bin","_sodium_init","_sodium_library_version_major","_sodium_library_version_minor","_sodium_memzero","_sodium_version_string"]'
6
6
  export TOTAL_MEMORY=33554432
7
7
  export JS_EXPORTS_FLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"
8
8
  export LDFLAGS="-s TOTAL_MEMORY=${TOTAL_MEMORY} -s RESERVED_FUNCTION_POINTERS=8 -s NO_BROWSER=1 -s NO_DYNAMIC_EXECUTION=1 -s RUNNING_JS_OPTS=1"
9
9
 
10
- rm -f test/js.done
10
+ if [ "x$1" = "x--browser-tests" ]; then
11
+ export BROWSER_TESTS='yes'
12
+ fi
13
+
14
+ if [ "x$BROWSER_TESTS" != "x" ]; then
15
+ echo "Tests will be built to be run in a web browser"
16
+ rm -f test/browser-js.done
17
+ else
18
+ rm -f test/js.done
19
+ fi
11
20
 
12
21
  emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" \
13
22
  CFLAGS="-O3" && \
14
23
  emmake make clean && \
15
24
  emmake make $MAKE_FLAGS install V=1 && \
16
- emcc -O3 --llvm-lto 1 --memory-init-file 0 $LDFLAGS $JS_EXPORTS_FLAGS \
25
+ emcc -O3 --llvm-lto 1 --memory-init-file 0 $CPPFLAGS $LDFLAGS $JS_EXPORTS_FLAGS \
17
26
  "${PREFIX}/lib/libsodium.a" -o "${PREFIX}/lib/libsodium.js" || exit 1
18
27
 
19
28
  if test "x$NODE" = x; then
@@ -27,25 +36,49 @@ if test "x$NODE" = x; then
27
36
  fi
28
37
 
29
38
  if test "x$NODE" = x; then
30
- echo 'node.js not found - test suite skipped.' >&2
39
+ echo 'node.js not found - test suite skipped' >&2
31
40
  exit 1
32
41
  fi
33
42
 
34
- echo "Using [${NODE}] as a Javascript runtime."
43
+ echo "Using [${NODE}] as a Javascript runtime"
35
44
 
36
- echo 'Compiling the test suite...' && \
37
- emmake make $MAKE_FLAGS check > /dev/null 2>&1
45
+ if [ "x$BROWSER_TESTS" != "x" ]; then
46
+ echo 'Compiling the test suite for web browsers...' && \
47
+ emmake make $MAKE_FLAGS CPPFLAGS="$CPPFLAGS -DBROWSER_TESTS=1" check \
48
+ > /dev/null 2>&1
49
+ else
50
+ echo 'Compiling the test suite...' && \
51
+ emmake make $MAKE_FLAGS check > /dev/null 2>&1
52
+ fi
53
+
54
+ if [ "x$BROWSER_TESTS" != "x" ]; then
55
+ echo 'Creating the test suite for web browsers'
56
+ (
57
+ cd test/default && \
58
+ mkdir -p browser && \
59
+ rm -f browser/tests.txt && \
60
+ for file in *.js; do
61
+ fgrep -v "#! /usr/bin/env {NODE}" "$file" > "browser/${file}"
62
+ tname=$(echo "$file" | sed 's/.js$//')
63
+ cp -f "${tname}.exp" "browser/${tname}.exp"
64
+ sed "s/{{tname}}/${tname}/" index.html.tpl > "browser/${tname}.html"
65
+ echo "${tname}.html" >> "browser/tests.txt"
66
+ done
67
+ touch -r "${PREFIX}/lib/libsodium.js" test/browser-js.done
68
+ )
69
+ else
70
+ echo 'Running the test suite'
71
+ (
72
+ cd test/default && \
73
+ for file in *.js; do
74
+ echo "#! /usr/bin/env ${NODE}" > "${file}.tmp"
75
+ fgrep -v "#! /usr/bin/env {NODE}" "$file" >> "${file}.tmp"
76
+ chmod +x "${file}.tmp"
77
+ mv -f "${file}.tmp" "$file"
78
+ done
79
+ )
80
+ make $MAKE_FLAGS check || exit 1
81
+ touch -r "${PREFIX}/lib/libsodium.js" test/js.done
82
+ fi
38
83
 
39
- echo 'Running the test suite.'
40
- (
41
- cd test/default && \
42
- for file in *.js; do
43
- echo "#! /usr/bin/env ${NODE}" > "${file}.tmp"
44
- fgrep -v "#! /usr/bin/env {NODE}" "$file" >> "${file}.tmp"
45
- chmod +x "${file}.tmp"
46
- mv -f "${file}.tmp" "$file"
47
- done
48
- )
49
- make $MAKE_FLAGS check || exit 1
50
84
  echo 'Done.'
51
- touch -r "${PREFIX}/lib/libsodium.js" test/js.done
@@ -26,8 +26,8 @@ export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
26
26
  export SDK="${BASEDIR}/SDKs/iPhoneSimulator.sdk"
27
27
 
28
28
  ## i386 simulator
29
- export CFLAGS="-O2 -arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
30
- export LDFLAGS="-arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
29
+ export CFLAGS="-O2 -arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN} -flto"
30
+ export LDFLAGS="-arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN} -flto"
31
31
 
32
32
  make distclean > /dev/null
33
33
 
@@ -38,8 +38,8 @@ make distclean > /dev/null
38
38
  make -j3 install || exit 1
39
39
 
40
40
  ## x86_64 simulator
41
- export CFLAGS="-O2 -arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
42
- export LDFLAGS="-arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
41
+ export CFLAGS="-O2 -arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN} -flto"
42
+ export LDFLAGS="-arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN} -flto"
43
43
 
44
44
  make distclean > /dev/null
45
45
 
@@ -55,8 +55,8 @@ export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
55
55
  export SDK="${BASEDIR}/SDKs/iPhoneOS.sdk"
56
56
 
57
57
  ## 32-bit iOS
58
- export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
59
- export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
58
+ export CFLAGS="-O2 -mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN} -flto"
59
+ export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN} -flto"
60
60
 
61
61
  make distclean > /dev/null
62
62
 
@@ -68,8 +68,8 @@ make distclean > /dev/null
68
68
  make -j3 install || exit 1
69
69
 
70
70
  ## 64-bit iOS
71
- export CFLAGS="-Oz -arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
72
- export LDFLAGS="-arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
71
+ export CFLAGS="-O2 -arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN} -flto"
72
+ export LDFLAGS="-arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN} -flto"
73
73
 
74
74
  make distclean > /dev/null
75
75
 
@@ -3,7 +3,8 @@
3
3
  export CFLAGS="-O3 -fomit-frame-pointer -m32 -march=pentium2 -mtune=nocona"
4
4
  export PREFIX="$(pwd)/libsodium-win32"
5
5
 
6
- ./configure --prefix="$PREFIX" --exec-prefix="$PREFIX" \
6
+ ./configure --enable-minimal \
7
+ --prefix="$PREFIX" --exec-prefix="$PREFIX" \
7
8
  --host=i686-w64-mingw32 && \
8
9
  make && \
9
10
  make check && \
@@ -3,7 +3,8 @@
3
3
  export CFLAGS="-O3 -fomit-frame-pointer -m64 -mtune=nocona"
4
4
  export PREFIX="$(pwd)/libsodium-win64"
5
5
 
6
- ./configure --prefix="$PREFIX" --exec-prefix="$PREFIX" \
6
+ ./configure --enable-minimal \
7
+ --prefix="$PREFIX" --exec-prefix="$PREFIX" \
7
8
  --host=x86_64-w64-mingw32 && \
8
9
  make && \
9
10
  make check && \
@@ -6,8 +6,8 @@ export OSX_CPU_ARCH=${OSX_CPU_ARCH-"core2"}
6
6
 
7
7
  mkdir -p $PREFIX || exit 1
8
8
 
9
- export CFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH} -O2 -g"
10
- export LDFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH}"
9
+ export CFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH} -O2 -g -flto"
10
+ export LDFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH} -flto"
11
11
 
12
12
  make distclean > /dev/null
13
13
 
@@ -91,7 +91,9 @@ box(void)
91
91
 
92
92
  /* encrypt and authenticate the message */
93
93
  printf("Encrypting and authenticating with %s\n\n", crypto_box_primitive());
94
- crypto_box_easy(ciphertext, message, message_len, nonce, alice_pk, bob_sk);
94
+ if (crypto_box_easy(ciphertext, message, message_len, nonce, alice_pk, bob_sk) != 0) {
95
+ abort();
96
+ }
95
97
  ciphertext_len = crypto_box_MACBYTES + message_len;
96
98
 
97
99
  /* send the nonce and the ciphertext */
@@ -91,8 +91,10 @@ box_detached(void)
91
91
 
92
92
  /* encrypt and authenticate the message */
93
93
  printf("Encrypting and authenticating with %s\n\n", crypto_box_primitive());
94
- crypto_box_detached(ciphertext, mac, message, message_len, nonce,
95
- alice_pk, bob_sk);
94
+ if (crypto_box_detached(ciphertext, mac, message, message_len, nonce,
95
+ alice_pk, bob_sk) != 0) {
96
+ abort();
97
+ }
96
98
 
97
99
  /* send the nonce, the MAC and the ciphertext */
98
100
  puts("Bob sends the nonce, the MAC and the ciphertext...\n");
@@ -99,7 +99,9 @@ print_verification(int ret)
99
99
  static void
100
100
  init(void)
101
101
  {
102
- sodium_init();
102
+ if (sodium_init() != 0) {
103
+ abort();
104
+ }
103
105
  printf("Using libsodium %s\n", sodium_version_string());
104
106
  }
105
107
 
@@ -416,7 +416,7 @@
416
416
  <ClCompile Include="src\libsodium\crypto_hash\sha512\hash_sha512_api.c" />
417
417
  <ClCompile Include="src\libsodium\crypto_hash\sha512\cp\hash_sha512.c" />
418
418
  <ClCompile Include="src\libsodium\crypto_onetimeauth\crypto_onetimeauth.c" />
419
- <ClCompile Include="src\libsodium\crypto_onetimeauth\poly1305\donna\auth_poly1305_donna.c" />
419
+ <ClCompile Include="src\libsodium\crypto_onetimeauth\poly1305\donna\poly1305_donna.c" />
420
420
  <ClCompile Include="src\libsodium\crypto_onetimeauth\poly1305\onetimeauth_poly1305.c" />
421
421
  <ClCompile Include="src\libsodium\crypto_pwhash\scryptsalsa208sha256\crypto_scrypt-common.c" />
422
422
  <ClCompile Include="src\libsodium\crypto_pwhash\scryptsalsa208sha256\nosse\pwhash_scryptsalsa208sha256_nosse.c" />
@@ -425,9 +425,8 @@
425
425
  <ClCompile Include="src\libsodium\crypto_pwhash\scryptsalsa208sha256\scrypt_platform.c" />
426
426
  <ClCompile Include="src\libsodium\crypto_pwhash\scryptsalsa208sha256\sse\pwhash_scryptsalsa208sha256_sse.c" />
427
427
  <ClCompile Include="src\libsodium\crypto_scalarmult\crypto_scalarmult.c" />
428
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\donna_c64\base_curve25519_donna_c64.c" />
429
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\donna_c64\smult_curve25519_donna_c64.c" />
430
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\base_curve25519_ref10.c" />
428
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\donna_c64\curve25519_donna_c64.c" />
429
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\curve25519_ref10.c" />
431
430
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_0_curve25519_ref10.c" />
432
431
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_1_curve25519_ref10.c" />
433
432
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_add_curve25519_ref10.c" />
@@ -440,8 +439,10 @@
440
439
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_sq_curve25519_ref10.c" />
441
440
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_sub_curve25519_ref10.c" />
442
441
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_tobytes_curve25519_ref10.c" />
443
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\scalarmult_curve25519_ref10.c" />
444
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\scalarmult_curve25519_api.c" />
442
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\curve25519_sandy2x.c" />
443
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\fe51_invert.c" />
444
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\fe_frombytes_sandy2x.c" />
445
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\scalarmult_curve25519.c" />
445
446
  <ClCompile Include="src\libsodium\crypto_secretbox\crypto_secretbox.c" />
446
447
  <ClCompile Include="src\libsodium\crypto_secretbox\crypto_secretbox_easy.c" />
447
448
  <ClCompile Include="src\libsodium\crypto_secretbox\xsalsa20poly1305\ref\box_xsalsa20poly1305.c" />
@@ -485,16 +486,12 @@
485
486
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\ge_sub.c" />
486
487
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\ge_tobytes.c" />
487
488
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\keypair.c" />
489
+ <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\obsolete.c" />
488
490
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\open.c" />
489
491
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\sc_muladd.c" />
490
492
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\sc_reduce.c" />
491
493
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\sign.c" />
492
494
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\sign_ed25519_api.c" />
493
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\fe25519_edwards25519sha512batch.c" />
494
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\ge25519_edwards25519sha512batch.c" />
495
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\sc25519_edwards25519sha512batch.c" />
496
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\sign_edwards25519sha512batch.c" />
497
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\sign_edwards25519sha512batch_api.c" />
498
495
  <ClCompile Include="src\libsodium\crypto_stream\aes128ctr\portable\afternm_aes128ctr.c" />
499
496
  <ClCompile Include="src\libsodium\crypto_stream\aes128ctr\portable\beforenm_aes128ctr.c" />
500
497
  <ClCompile Include="src\libsodium\crypto_stream\aes128ctr\portable\common_aes128ctr.c" />
@@ -504,7 +501,7 @@
504
501
  <ClCompile Include="src\libsodium\crypto_stream\aes128ctr\portable\xor_afternm_aes128ctr.c" />
505
502
  <ClCompile Include="src\libsodium\crypto_stream\aes128ctr\stream_aes128ctr_api.c" />
506
503
  <ClCompile Include="src\libsodium\crypto_stream\chacha20\ref\stream_chacha20_ref.c" />
507
- <ClCompile Include="src\libsodium\crypto_stream\chacha20\stream_chacha20_api.c" />
504
+ <ClCompile Include="src\libsodium\crypto_stream\chacha20\stream_chacha20.c" />
508
505
  <ClCompile Include="src\libsodium\crypto_stream\crypto_stream.c" />
509
506
  <ClCompile Include="src\libsodium\crypto_stream\salsa2012\ref\stream_salsa2012.c" />
510
507
  <ClCompile Include="src\libsodium\crypto_stream\salsa2012\ref\xor_salsa2012.c" />
@@ -532,7 +529,10 @@
532
529
  <ClCompile Include="src\libsodium\sodium\utils.c" />
533
530
  <ClCompile Include="src\libsodium\sodium\version.c" />
534
531
  </ItemGroup>
532
+ <ItemGroup>
533
+ <None Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\sandy2x.S" />
534
+ </ItemGroup>
535
535
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
536
536
  <ImportGroup Label="ExtensionTargets">
537
537
  </ImportGroup>
538
- </Project>
538
+ </Project>
@@ -284,9 +284,6 @@
284
284
  <ClCompile Include="src\libsodium\crypto_hash\sha512\hash_sha512_api.c">
285
285
  <Filter>Source Files</Filter>
286
286
  </ClCompile>
287
- <ClCompile Include="src\libsodium\crypto_onetimeauth\poly1305\donna\auth_poly1305_donna.c">
288
- <Filter>Source Files</Filter>
289
- </ClCompile>
290
287
  <ClCompile Include="src\libsodium\crypto_onetimeauth\crypto_onetimeauth.c">
291
288
  <Filter>Source Files</Filter>
292
289
  </ClCompile>
@@ -296,9 +293,6 @@
296
293
  <ClCompile Include="src\libsodium\crypto_scalarmult\crypto_scalarmult.c">
297
294
  <Filter>Source Files</Filter>
298
295
  </ClCompile>
299
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\scalarmult_curve25519_api.c">
300
- <Filter>Source Files</Filter>
301
- </ClCompile>
302
296
  <ClCompile Include="src\libsodium\crypto_secretbox\xsalsa20poly1305\ref\box_xsalsa20poly1305.c">
303
297
  <Filter>Source Files</Filter>
304
298
  </ClCompile>
@@ -368,9 +362,6 @@
368
362
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\fe_tobytes.c">
369
363
  <Filter>Source Files</Filter>
370
364
  </ClCompile>
371
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\fe25519_edwards25519sha512batch.c">
372
- <Filter>Source Files</Filter>
373
- </ClCompile>
374
365
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\ge_add.c">
375
366
  <Filter>Source Files</Filter>
376
367
  </ClCompile>
@@ -425,9 +416,6 @@
425
416
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\ge_tobytes.c">
426
417
  <Filter>Source Files</Filter>
427
418
  </ClCompile>
428
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\ge25519_edwards25519sha512batch.c">
429
- <Filter>Source Files</Filter>
430
- </ClCompile>
431
419
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\keypair.c">
432
420
  <Filter>Source Files</Filter>
433
421
  </ClCompile>
@@ -440,21 +428,12 @@
440
428
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\sc_reduce.c">
441
429
  <Filter>Source Files</Filter>
442
430
  </ClCompile>
443
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\sc25519_edwards25519sha512batch.c">
444
- <Filter>Source Files</Filter>
445
- </ClCompile>
446
431
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\sign.c">
447
432
  <Filter>Source Files</Filter>
448
433
  </ClCompile>
449
434
  <ClCompile Include="src\libsodium\crypto_sign\ed25519\sign_ed25519_api.c">
450
435
  <Filter>Source Files</Filter>
451
436
  </ClCompile>
452
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\ref\sign_edwards25519sha512batch.c">
453
- <Filter>Source Files</Filter>
454
- </ClCompile>
455
- <ClCompile Include="src\libsodium\crypto_sign\edwards25519sha512batch\sign_edwards25519sha512batch_api.c">
456
- <Filter>Source Files</Filter>
457
- </ClCompile>
458
437
  <ClCompile Include="src\libsodium\crypto_stream\aes128ctr\portable\afternm_aes128ctr.c">
459
438
  <Filter>Source Files</Filter>
460
439
  </ClCompile>
@@ -587,21 +566,12 @@
587
566
  <ClCompile Include="src\libsodium\crypto_pwhash\scryptsalsa208sha256\sse\pwhash_scryptsalsa208sha256_sse.c">
588
567
  <Filter>Source Files</Filter>
589
568
  </ClCompile>
590
- <ClCompile Include="src\libsodium\crypto_stream\chacha20\stream_chacha20_api.c">
569
+ <ClCompile Include="src\libsodium\crypto_stream\chacha20\stream_chacha20.c">
591
570
  <Filter>Source Files</Filter>
592
571
  </ClCompile>
593
572
  <ClCompile Include="src\libsodium\crypto_stream\chacha20\ref\stream_chacha20_ref.c">
594
573
  <Filter>Source Files</Filter>
595
574
  </ClCompile>
596
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\donna_c64\base_curve25519_donna_c64.c">
597
- <Filter>Source Files</Filter>
598
- </ClCompile>
599
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\donna_c64\smult_curve25519_donna_c64.c">
600
- <Filter>Source Files</Filter>
601
- </ClCompile>
602
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\base_curve25519_ref10.c">
603
- <Filter>Source Files</Filter>
604
- </ClCompile>
605
575
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_0_curve25519_ref10.c">
606
576
  <Filter>Source Files</Filter>
607
577
  </ClCompile>
@@ -638,9 +608,6 @@
638
608
  <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\fe_tobytes_curve25519_ref10.c">
639
609
  <Filter>Source Files</Filter>
640
610
  </ClCompile>
641
- <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\scalarmult_curve25519_ref10.c">
642
- <Filter>Source Files</Filter>
643
- </ClCompile>
644
611
  <ClCompile Include="src\libsodium\crypto_box\curve25519xsalsa20poly1305\ref\before_curve25519xsalsa20poly1305.c">
645
612
  <Filter>Source Files</Filter>
646
613
  </ClCompile>
@@ -659,5 +626,34 @@
659
626
  <ClCompile Include="src\libsodium\crypto_generichash\blake2\ref\blake2b-compress-ssse3.c">
660
627
  <Filter>Source Files</Filter>
661
628
  </ClCompile>
629
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\scalarmult_curve25519.c">
630
+ <Filter>Source Files</Filter>
631
+ </ClCompile>
632
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\donna_c64\curve25519_donna_c64.c">
633
+ <Filter>Source Files</Filter>
634
+ </ClCompile>
635
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\ref10\curve25519_ref10.c">
636
+ <Filter>Source Files</Filter>
637
+ </ClCompile>
638
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\curve25519_sandy2x.c">
639
+ <Filter>Source Files</Filter>
640
+ </ClCompile>
641
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\fe_frombytes_sandy2x.c">
642
+ <Filter>Source Files</Filter>
643
+ </ClCompile>
644
+ <ClCompile Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\fe51_invert.c">
645
+ <Filter>Source Files</Filter>
646
+ </ClCompile>
647
+ <ClCompile Include="src\libsodium\crypto_onetimeauth\poly1305\donna\poly1305_donna.c">
648
+ <Filter>Source Files</Filter>
649
+ </ClCompile>
650
+ <ClCompile Include="src\libsodium\crypto_sign\ed25519\ref10\obsolete.c">
651
+ <Filter>Source Files</Filter>
652
+ </ClCompile>
653
+ </ItemGroup>
654
+ <ItemGroup>
655
+ <None Include="src\libsodium\crypto_scalarmult\curve25519\sandy2x\sandy2x.S">
656
+ <Filter>Source Files</Filter>
657
+ </None>
662
658
  </ItemGroup>
663
- </Project>
659
+ </Project>
@@ -164,6 +164,7 @@ EXEEXT = @EXEEXT@
164
164
  FGREP = @FGREP@
165
165
  GREP = @GREP@
166
166
  HAVE_AMD64_ASM_V = @HAVE_AMD64_ASM_V@
167
+ HAVE_AVX_ASM_V = @HAVE_AVX_ASM_V@
167
168
  HAVE_CPUID_V = @HAVE_CPUID_V@
168
169
  HAVE_TI_MODE_V = @HAVE_TI_MODE_V@
169
170
  INSTALL = @INSTALL@
@@ -1,4 +1,4 @@
1
- cscript msvc-scripts/rep.vbs //Nologo s/@VERSION@/1.0.6/ < src\libsodium\include\sodium\version.h.in > tmp
2
- cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MAJOR@/8/ < tmp > tmp2
1
+ cscript msvc-scripts/rep.vbs //Nologo s/@VERSION@/1.0.7/ < src\libsodium\include\sodium\version.h.in > tmp
2
+ cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MAJOR@/9/ < tmp > tmp2
3
3
  cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MINOR@/0/ < tmp2 > src\libsodium\include\sodium\version.h
4
4
  del tmp tmp2
@@ -224,6 +224,7 @@ EXEEXT = @EXEEXT@
224
224
  FGREP = @FGREP@
225
225
  GREP = @GREP@
226
226
  HAVE_AMD64_ASM_V = @HAVE_AMD64_ASM_V@
227
+ HAVE_AVX_ASM_V = @HAVE_AVX_ASM_V@
227
228
  HAVE_CPUID_V = @HAVE_CPUID_V@
228
229
  HAVE_TI_MODE_V = @HAVE_TI_MODE_V@
229
230
  INSTALL = @INSTALL@
@@ -5,35 +5,28 @@ libsodium_la_SOURCES = \
5
5
  crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c \
6
6
  crypto_auth/crypto_auth.c \
7
7
  crypto_auth/hmacsha256/auth_hmacsha256_api.c \
8
- crypto_auth/hmacsha256/cp/api.h \
9
8
  crypto_auth/hmacsha256/cp/hmac_hmacsha256.c \
10
9
  crypto_auth/hmacsha256/cp/verify_hmacsha256.c \
11
10
  crypto_auth/hmacsha512/auth_hmacsha512_api.c \
12
- crypto_auth/hmacsha512/cp/api.h \
13
11
  crypto_auth/hmacsha512/cp/hmac_hmacsha512.c \
14
12
  crypto_auth/hmacsha512/cp/verify_hmacsha512.c \
15
13
  crypto_auth/hmacsha512256/auth_hmacsha512256_api.c \
16
- crypto_auth/hmacsha512256/cp/api.h \
17
14
  crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.c \
18
15
  crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c \
19
16
  crypto_box/crypto_box.c \
20
17
  crypto_box/crypto_box_easy.c \
21
18
  crypto_box/crypto_box_seal.c \
22
19
  crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c \
23
- crypto_box/curve25519xsalsa20poly1305/ref/api.h \
24
20
  crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c \
25
21
  crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c \
26
22
  crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c \
27
23
  crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c \
28
24
  crypto_core/hsalsa20/ref2/core_hsalsa20.c \
29
25
  crypto_core/hsalsa20/core_hsalsa20_api.c \
30
- crypto_core/hsalsa20/ref2/api.h \
31
26
  crypto_core/salsa20/ref/core_salsa20.c \
32
27
  crypto_core/salsa20/core_salsa20_api.c \
33
- crypto_core/salsa20/ref/api.h \
34
28
  crypto_generichash/crypto_generichash.c \
35
29
  crypto_generichash/blake2/generichash_blake2_api.c \
36
- crypto_generichash/blake2/ref/api.h \
37
30
  crypto_generichash/blake2/ref/blake2-impl.h \
38
31
  crypto_generichash/blake2/ref/blake2.h \
39
32
  crypto_generichash/blake2/ref/blake2b-compress-ref.c \
@@ -44,10 +37,8 @@ libsodium_la_SOURCES = \
44
37
  crypto_generichash/blake2/ref/generichash_blake2b.c \
45
38
  crypto_hash/crypto_hash.c \
46
39
  crypto_hash/sha256/hash_sha256_api.c \
47
- crypto_hash/sha256/cp/api.h \
48
40
  crypto_hash/sha256/cp/hash_sha256.c \
49
41
  crypto_hash/sha512/hash_sha512_api.c \
50
- crypto_hash/sha512/cp/api.h \
51
42
  crypto_hash/sha512/cp/hash_sha512.c \
52
43
  crypto_onetimeauth/crypto_onetimeauth.c \
53
44
  crypto_onetimeauth/poly1305/onetimeauth_poly1305.c \
@@ -55,7 +46,7 @@ libsodium_la_SOURCES = \
55
46
  crypto_onetimeauth/poly1305/donna/poly1305_donna.h \
56
47
  crypto_onetimeauth/poly1305/donna/poly1305_donna32.h \
57
48
  crypto_onetimeauth/poly1305/donna/poly1305_donna64.h \
58
- crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c \
49
+ crypto_onetimeauth/poly1305/donna/poly1305_donna.c \
59
50
  crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c \
60
51
  crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h \
61
52
  crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c \
@@ -65,21 +56,19 @@ libsodium_la_SOURCES = \
65
56
  crypto_pwhash/scryptsalsa208sha256/sysendian.h \
66
57
  crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c \
67
58
  crypto_scalarmult/crypto_scalarmult.c \
68
- crypto_scalarmult/curve25519/scalarmult_curve25519_api.c \
59
+ crypto_scalarmult/curve25519/scalarmult_curve25519.c \
60
+ crypto_scalarmult/curve25519/scalarmult_curve25519.h \
69
61
  crypto_secretbox/crypto_secretbox.c \
70
62
  crypto_secretbox/crypto_secretbox_easy.c \
71
63
  crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.c \
72
- crypto_secretbox/xsalsa20poly1305/ref/api.h \
73
64
  crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c \
74
65
  crypto_shorthash/crypto_shorthash.c \
75
66
  crypto_shorthash/siphash24/shorthash_siphash24_api.c \
76
- crypto_shorthash/siphash24/ref/api.h \
77
67
  crypto_shorthash/siphash24/ref/shorthash_siphash24.c \
78
68
  crypto_sign/crypto_sign.c \
79
69
  crypto_sign/ed25519/ref10/base.h \
80
70
  crypto_sign/ed25519/ref10/base2.h \
81
71
  crypto_sign/ed25519/sign_ed25519_api.c \
82
- crypto_sign/ed25519/ref10/api.h \
83
72
  crypto_sign/ed25519/ref10/d.h \
84
73
  crypto_sign/ed25519/ref10/d2.h \
85
74
  crypto_sign/ed25519/ref10/fe.h \
@@ -133,22 +122,19 @@ libsodium_la_SOURCES = \
133
122
  crypto_sign/ed25519/ref10/sign.c \
134
123
  crypto_sign/ed25519/ref10/sqrtm1.h \
135
124
  crypto_stream/crypto_stream.c \
136
- crypto_stream/chacha20/stream_chacha20_api.c \
137
- crypto_stream/chacha20/ref/api.h \
125
+ crypto_stream/chacha20/stream_chacha20.c \
126
+ crypto_stream/chacha20/stream_chacha20.h \
127
+ crypto_stream/chacha20/ref/stream_chacha20_ref.h \
138
128
  crypto_stream/chacha20/ref/stream_chacha20_ref.c \
139
129
  crypto_stream/salsa20/stream_salsa20_api.c \
140
130
  crypto_stream/xsalsa20/stream_xsalsa20_api.c \
141
- crypto_stream/xsalsa20/ref/api.h \
142
131
  crypto_stream/xsalsa20/ref/stream_xsalsa20.c \
143
132
  crypto_stream/xsalsa20/ref/xor_xsalsa20.c \
144
133
  crypto_verify/16/verify_16_api.c \
145
- crypto_verify/16/ref/api.h \
146
134
  crypto_verify/16/ref/verify_16.c \
147
135
  crypto_verify/32/verify_32_api.c \
148
- crypto_verify/32/ref/api.h \
149
136
  crypto_verify/32/ref/verify_32.c \
150
137
  crypto_verify/64/verify_64_api.c \
151
- crypto_verify/64/ref/api.h \
152
138
  crypto_verify/64/ref/verify_64.c \
153
139
  randombytes/randombytes.c \
154
140
  sodium/core.c \
@@ -172,13 +158,12 @@ endif
172
158
 
173
159
  if HAVE_TI_MODE
174
160
  libsodium_la_SOURCES += \
175
- crypto_scalarmult/curve25519/donna_c64/api.h \
176
- crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c \
177
- crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c
161
+ crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.c \
162
+ crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.h
178
163
  else
179
164
  libsodium_la_SOURCES += \
180
- crypto_scalarmult/curve25519/ref10/api.h \
181
- crypto_scalarmult/curve25519/ref10/base_curve25519_ref10.c \
165
+ crypto_scalarmult/curve25519/ref10/curve25519_ref10.c \
166
+ crypto_scalarmult/curve25519/ref10/curve25519_ref10.h \
182
167
  crypto_scalarmult/curve25519/ref10/fe.h \
183
168
  crypto_scalarmult/curve25519/ref10/fe_0_curve25519_ref10.c \
184
169
  crypto_scalarmult/curve25519/ref10/fe_1_curve25519_ref10.c \
@@ -193,17 +178,39 @@ libsodium_la_SOURCES += \
193
178
  crypto_scalarmult/curve25519/ref10/fe_sub_curve25519_ref10.c \
194
179
  crypto_scalarmult/curve25519/ref10/fe_tobytes_curve25519_ref10.c \
195
180
  crypto_scalarmult/curve25519/ref10/montgomery.h \
196
- crypto_scalarmult/curve25519/ref10/pow225521.h \
197
- crypto_scalarmult/curve25519/ref10/scalarmult_curve25519_ref10.c
181
+ crypto_scalarmult/curve25519/ref10/pow225521.h
182
+ endif
183
+
184
+ noinst_HEADERS = \
185
+ crypto_scalarmult/curve25519/sandy2x/consts.S \
186
+ crypto_scalarmult/curve25519/sandy2x/fe51_mul.S \
187
+ crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S \
188
+ crypto_scalarmult/curve25519/sandy2x/fe51_pack.S \
189
+ crypto_scalarmult/curve25519/sandy2x/ladder.S \
190
+ crypto_scalarmult/curve25519/sandy2x/ladder_base.S
191
+
192
+ if HAVE_AVX_ASM
193
+ libsodium_la_SOURCES += \
194
+ crypto_scalarmult/curve25519/sandy2x/consts_namespace.h \
195
+ crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.c \
196
+ crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.h \
197
+ crypto_scalarmult/curve25519/sandy2x/fe.h \
198
+ crypto_scalarmult/curve25519/sandy2x/fe51.h \
199
+ crypto_scalarmult/curve25519/sandy2x/fe51_invert.c \
200
+ crypto_scalarmult/curve25519/sandy2x/fe51_namespace.h \
201
+ crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c \
202
+ crypto_scalarmult/curve25519/sandy2x/ladder.h \
203
+ crypto_scalarmult/curve25519/sandy2x/ladder_base.h \
204
+ crypto_scalarmult/curve25519/sandy2x/ladder_base_namespace.h \
205
+ crypto_scalarmult/curve25519/sandy2x/ladder_namespace.h \
206
+ crypto_scalarmult/curve25519/sandy2x/sandy2x.S
198
207
  endif
199
208
 
200
209
  if HAVE_AMD64_ASM
201
210
  libsodium_la_SOURCES += \
202
- crypto_stream/salsa20/amd64_xmm6/api.h \
203
211
  crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S
204
212
  else
205
213
  libsodium_la_SOURCES += \
206
- crypto_stream/salsa20/ref/api.h \
207
214
  crypto_stream/salsa20/ref/stream_salsa20_ref.c \
208
215
  crypto_stream/salsa20/ref/xor_salsa20_ref.c
209
216
  endif
@@ -212,22 +219,11 @@ if !MINIMAL
212
219
  libsodium_la_SOURCES += \
213
220
  crypto_core/salsa2012/ref/core_salsa2012.c \
214
221
  crypto_core/salsa2012/core_salsa2012_api.c \
215
- crypto_core/salsa2012/ref/api.h \
216
222
  crypto_core/salsa208/ref/core_salsa208.c \
217
223
  crypto_core/salsa208/core_salsa208_api.c \
218
- crypto_core/salsa208/ref/api.h \
219
- crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c \
220
- crypto_sign/edwards25519sha512batch/ref/api.h \
221
- crypto_sign/edwards25519sha512batch/ref/fe25519.h \
222
- crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c \
223
- crypto_sign/edwards25519sha512batch/ref/ge25519.h \
224
- crypto_sign/edwards25519sha512batch/ref/ge25519_edwards25519sha512batch.c \
225
- crypto_sign/edwards25519sha512batch/ref/sc25519.h \
226
- crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.c \
227
- crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c \
224
+ crypto_sign/ed25519/ref10/obsolete.c \
228
225
  crypto_stream/aes128ctr/portable/afternm_aes128ctr.c \
229
226
  crypto_stream/aes128ctr/stream_aes128ctr_api.c \
230
- crypto_stream/aes128ctr/portable/api.h \
231
227
  crypto_stream/aes128ctr/portable/beforenm_aes128ctr.c \
232
228
  crypto_stream/aes128ctr/portable/common.h \
233
229
  crypto_stream/aes128ctr/portable/common_aes128ctr.c \
@@ -239,11 +235,9 @@ libsodium_la_SOURCES += \
239
235
  crypto_stream/aes128ctr/portable/types.h \
240
236
  crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c \
241
237
  crypto_stream/salsa2012/stream_salsa2012_api.c \
242
- crypto_stream/salsa2012/ref/api.h \
243
238
  crypto_stream/salsa2012/ref/stream_salsa2012.c \
244
239
  crypto_stream/salsa2012/ref/xor_salsa2012.c \
245
240
  crypto_stream/salsa208/stream_salsa208_api.c \
246
- crypto_stream/salsa208/ref/api.h \
247
241
  crypto_stream/salsa208/ref/stream_salsa208.c \
248
242
  crypto_stream/salsa208/ref/xor_salsa208.c
249
243
  endif
@@ -283,13 +277,17 @@ libsse2_la_LDFLAGS = $(libsodium_la_LDFLAGS)
283
277
  libsse2_la_CPPFLAGS = $(libsodium_la_CPPFLAGS) \
284
278
  @CFLAGS_SSE2@
285
279
  libsse2_la_SOURCES = \
286
- crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c
280
+ crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c \
281
+ crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c \
282
+ crypto_onetimeauth/poly1305/sse2/poly1305_sse2.h
287
283
 
288
284
  libssse3_la_LDFLAGS = $(libsodium_la_LDFLAGS)
289
285
  libssse3_la_CPPFLAGS = $(libsodium_la_CPPFLAGS) \
290
286
  @CFLAGS_SSE2@ @CFLAGS_SSSE3@
291
287
  libssse3_la_SOURCES = \
292
- crypto_generichash/blake2/ref/blake2b-compress-ssse3.c
288
+ crypto_generichash/blake2/ref/blake2b-compress-ssse3.c \
289
+ crypto_stream/chacha20/vec/stream_chacha20_vec.h \
290
+ crypto_stream/chacha20/vec/stream_chacha20_vec.c
293
291
 
294
292
  libsse41_la_LDFLAGS = $(libsodium_la_LDFLAGS)
295
293
  libsse41_la_CPPFLAGS = $(libsodium_la_CPPFLAGS) \