rbnacl-libsodium 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) 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/ChangeLog +20 -1
  5. data/vendor/libsodium/Makefile.in +39 -27
  6. data/vendor/libsodium/README.markdown +2 -2
  7. data/vendor/libsodium/THANKS +2 -0
  8. data/vendor/libsodium/aclocal.m4 +36 -33
  9. data/vendor/libsodium/autom4te.cache/output.1 +1118 -841
  10. data/vendor/libsodium/autom4te.cache/output.4 +17517 -0
  11. data/vendor/libsodium/autom4te.cache/requests +760 -531
  12. data/vendor/libsodium/autom4te.cache/traces.1 +13 -14
  13. data/vendor/libsodium/autom4te.cache/traces.4 +2951 -0
  14. data/vendor/libsodium/build-aux/compile +1 -1
  15. data/vendor/libsodium/build-aux/config.guess +13 -160
  16. data/vendor/libsodium/build-aux/config.sub +25 -11
  17. data/vendor/libsodium/build-aux/depcomp +1 -1
  18. data/vendor/libsodium/build-aux/install-sh +170 -196
  19. data/vendor/libsodium/build-aux/ltmain.sh +3459 -2026
  20. data/vendor/libsodium/build-aux/missing +1 -1
  21. data/vendor/libsodium/build-aux/test-driver +12 -3
  22. data/vendor/libsodium/builds/msvc/version.h +2 -2
  23. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +1 -4
  24. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +3 -8
  25. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +11 -2
  26. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +11 -2
  27. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +2 -5
  28. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +3 -8
  29. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +11 -2
  30. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +11 -2
  31. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +1 -4
  32. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +3 -8
  33. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +11 -2
  34. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +11 -2
  35. data/vendor/libsodium/builds/msvc/vs2015/libsodium.import.props +52 -0
  36. data/vendor/libsodium/{packaging/nuget/package.xml → builds/msvc/vs2015/libsodium.import.xml} +2 -7
  37. data/vendor/libsodium/builds/msvc/vs2015/libsodium.sln +81 -0
  38. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.props +43 -0
  39. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +352 -0
  40. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +1073 -0
  41. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.xml +15 -0
  42. data/vendor/libsodium/builds/msvc/vs2015/test/test.props +43 -0
  43. data/vendor/libsodium/builds/msvc/vs2015/test/test.runner.bat +78 -0
  44. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj +241 -0
  45. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj.filters +189 -0
  46. data/vendor/libsodium/configure +1117 -840
  47. data/vendor/libsodium/configure.ac +4 -4
  48. data/vendor/libsodium/dist-build/Makefile.am +2 -2
  49. data/vendor/libsodium/dist-build/Makefile.in +19 -7
  50. data/vendor/libsodium/dist-build/android-arm.sh +3 -2
  51. data/vendor/libsodium/dist-build/android-armv7-a.sh +4 -0
  52. data/vendor/libsodium/dist-build/android-build.sh +4 -5
  53. data/vendor/libsodium/dist-build/android-mips32.sh +4 -0
  54. data/vendor/libsodium/dist-build/android-x86.sh +3 -2
  55. data/vendor/libsodium/dist-build/emscripten.sh +4 -5
  56. data/vendor/libsodium/dist-build/ios.sh +56 -25
  57. data/vendor/libsodium/dist-build/osx.sh +20 -0
  58. data/vendor/libsodium/libsodium.vcxproj +1 -0
  59. data/vendor/libsodium/libsodium.vcxproj.filters +3 -0
  60. data/vendor/libsodium/m4/libtool.m4 +1366 -1030
  61. data/vendor/libsodium/m4/ltoptions.m4 +90 -37
  62. data/vendor/libsodium/m4/ltsugar.m4 +4 -3
  63. data/vendor/libsodium/m4/ltversion.m4 +6 -6
  64. data/vendor/libsodium/m4/lt~obsolete.m4 +4 -3
  65. data/vendor/libsodium/msvc-scripts/Makefile.in +17 -5
  66. data/vendor/libsodium/msvc-scripts/process.bat +2 -2
  67. data/vendor/libsodium/packaging/nuget/package.config +1 -1
  68. data/vendor/libsodium/src/Makefile.in +17 -5
  69. data/vendor/libsodium/src/libsodium/Makefile.am +7 -2
  70. data/vendor/libsodium/src/libsodium/Makefile.in +83 -55
  71. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.c +5 -0
  72. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c +1 -1
  73. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512_api.c +5 -0
  74. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c +1 -1
  75. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.c +5 -0
  76. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c +1 -1
  77. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_seal.c +67 -0
  78. data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +8 -1
  79. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256_api.c +5 -0
  80. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.c +5 -0
  81. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.c +12 -6
  82. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +11 -0
  83. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +60 -25
  84. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +12 -12
  85. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +11 -3
  86. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +1 -1
  87. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +1 -4
  88. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/api.h +1 -0
  89. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +13 -3
  90. data/vendor/libsodium/src/libsodium/include/Makefile.in +18 -6
  91. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h +9 -5
  92. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h +9 -5
  93. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h +6 -2
  94. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +15 -0
  95. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash.h +2 -0
  96. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +1 -1
  97. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +2 -0
  98. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +2 -0
  99. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +2 -0
  100. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +6 -0
  101. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +6 -6
  102. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +2 -2
  103. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +82 -3
  104. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +85 -33
  105. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +80 -42
  106. data/vendor/libsodium/src/libsodium/sodium/utils.c +16 -13
  107. data/vendor/libsodium/test/Makefile.am +1 -1
  108. data/vendor/libsodium/test/Makefile.in +18 -6
  109. data/vendor/libsodium/test/default/Makefile.am +9 -3
  110. data/vendor/libsodium/test/default/Makefile.in +72 -38
  111. data/vendor/libsodium/test/default/auth.c +8 -0
  112. data/vendor/libsodium/test/default/auth5.c +0 -2
  113. data/vendor/libsodium/test/default/auth7.c +0 -2
  114. data/vendor/libsodium/test/default/box8.c +0 -2
  115. data/vendor/libsodium/test/default/box_easy2.c +1 -1
  116. data/vendor/libsodium/test/default/box_seal.c +43 -0
  117. data/vendor/libsodium/test/default/box_seal.exp +4 -0
  118. data/vendor/libsodium/test/default/cmptest.h +1 -0
  119. data/vendor/libsodium/test/default/generichash2.c +1 -0
  120. data/vendor/libsodium/test/default/hash.c +2 -0
  121. data/vendor/libsodium/test/default/onetimeauth.c +1 -0
  122. data/vendor/libsodium/test/default/onetimeauth7.c +0 -2
  123. data/vendor/libsodium/test/default/pre.js.inc +0 -27
  124. data/vendor/libsodium/test/default/pwhash.c +18 -5
  125. data/vendor/libsodium/test/default/randombytes.c +44 -2
  126. data/vendor/libsodium/test/default/secretbox8.c +0 -2
  127. data/vendor/libsodium/test/default/sodium_utils2.c +5 -1
  128. data/vendor/libsodium/test/default/sodium_utils3.c +1 -1
  129. data/vendor/libsodium/test/default/stream.c +13 -1
  130. data/vendor/libsodium/test/default/stream.exp +1 -0
  131. data/vendor/libsodium/test/default/stream2.c +13 -1
  132. data/vendor/libsodium/test/default/stream2.exp +1 -0
  133. data/vendor/libsodium/test/quirks/quirks.h +26 -0
  134. metadata +23 -12
  135. data/vendor/libsodium/builds/msvc/resource.h +0 -0
  136. data/vendor/libsodium/builds/msvc/resource.rc +0 -0
  137. data/vendor/libsodium/dist-build/android-armv7.sh +0 -3
  138. data/vendor/libsodium/dist-build/android-mips.sh +0 -3
  139. data/vendor/libsodium/packaging/nuget/package.nuspec +0 -95
  140. data/vendor/libsodium/packaging/nuget/package.targets +0 -128
  141. data/vendor/libsodium/test/quirks/windows/windows-quirks.h +0 -18
@@ -18,6 +18,7 @@ libsodium_la_SOURCES = \
18
18
  crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c \
19
19
  crypto_box/crypto_box.c \
20
20
  crypto_box/crypto_box_easy.c \
21
+ crypto_box/crypto_box_seal.c \
21
22
  crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c \
22
23
  crypto_box/curve25519xsalsa20poly1305/ref/api.h \
23
24
  crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c \
@@ -149,13 +150,17 @@ libsodium_la_SOURCES = \
149
150
  crypto_verify/64/ref/api.h \
150
151
  crypto_verify/64/ref/verify_64.c \
151
152
  randombytes/randombytes.c \
152
- randombytes/salsa20/randombytes_salsa20_random.c \
153
- randombytes/sysrandom/randombytes_sysrandom.c \
154
153
  sodium/core.c \
155
154
  sodium/runtime.c \
156
155
  sodium/utils.c \
157
156
  sodium/version.c
158
157
 
158
+ if !EMSCRIPTEN
159
+ libsodium_la_SOURCES += \
160
+ randombytes/salsa20/randombytes_salsa20_random.c \
161
+ randombytes/sysrandom/randombytes_sysrandom.c
162
+ endif
163
+
159
164
  if HAVE_TI_MODE
160
165
  libsodium_la_SOURCES += \
161
166
  crypto_scalarmult/curve25519/donna_c64/api.h \
@@ -1,7 +1,7 @@
1
- # Makefile.in generated by automake 1.14.1 from Makefile.am.
1
+ # Makefile.in generated by automake 1.15 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
+ # Copyright (C) 1994-2014 Free Software Foundation, Inc.
5
5
 
6
6
  # This Makefile.in is free software; the Free Software Foundation
7
7
  # gives unlimited permission to copy and/or distribute it,
@@ -16,7 +16,17 @@
16
16
 
17
17
 
18
18
  VPATH = @srcdir@
19
- am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19
+ am__is_gnu_make = { \
20
+ if test -z '$(MAKELEVEL)'; then \
21
+ false; \
22
+ elif test -n '$(MAKE_HOST)'; then \
23
+ true; \
24
+ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
25
+ true; \
26
+ else \
27
+ false; \
28
+ fi; \
29
+ }
20
30
  am__make_running_with_option = \
21
31
  case $${target_option-} in \
22
32
  ?) ;; \
@@ -79,12 +89,16 @@ PRE_UNINSTALL = :
79
89
  POST_UNINSTALL = :
80
90
  build_triplet = @build@
81
91
  host_triplet = @host@
82
- @HAVE_TI_MODE_TRUE@am__append_1 = \
92
+ @EMSCRIPTEN_FALSE@am__append_1 = \
93
+ @EMSCRIPTEN_FALSE@ randombytes/salsa20/randombytes_salsa20_random.c \
94
+ @EMSCRIPTEN_FALSE@ randombytes/sysrandom/randombytes_sysrandom.c
95
+
96
+ @HAVE_TI_MODE_TRUE@am__append_2 = \
83
97
  @HAVE_TI_MODE_TRUE@ crypto_scalarmult/curve25519/donna_c64/api.h \
84
98
  @HAVE_TI_MODE_TRUE@ crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c \
85
99
  @HAVE_TI_MODE_TRUE@ crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c
86
100
 
87
- @HAVE_TI_MODE_FALSE@am__append_2 = \
101
+ @HAVE_TI_MODE_FALSE@am__append_3 = \
88
102
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/api.h \
89
103
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/base_curve25519_ref10.c \
90
104
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/fe.h \
@@ -104,16 +118,16 @@ host_triplet = @host@
104
118
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/pow225521.h \
105
119
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/scalarmult_curve25519_ref10.c
106
120
 
107
- @HAVE_AMD64_ASM_TRUE@am__append_3 = \
121
+ @HAVE_AMD64_ASM_TRUE@am__append_4 = \
108
122
  @HAVE_AMD64_ASM_TRUE@ crypto_stream/salsa20/amd64_xmm6/api.h \
109
123
  @HAVE_AMD64_ASM_TRUE@ crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S
110
124
 
111
- @HAVE_AMD64_ASM_FALSE@am__append_4 = \
125
+ @HAVE_AMD64_ASM_FALSE@am__append_5 = \
112
126
  @HAVE_AMD64_ASM_FALSE@ crypto_stream/salsa20/ref/api.h \
113
127
  @HAVE_AMD64_ASM_FALSE@ crypto_stream/salsa20/ref/stream_salsa20_ref.c \
114
128
  @HAVE_AMD64_ASM_FALSE@ crypto_stream/salsa20/ref/xor_salsa20_ref.c
115
129
 
116
- @MINIMAL_FALSE@am__append_5 = \
130
+ @MINIMAL_FALSE@am__append_6 = \
117
131
  @MINIMAL_FALSE@ crypto_core/salsa2012/ref/core_salsa2012.c \
118
132
  @MINIMAL_FALSE@ crypto_core/salsa2012/core_salsa2012_api.c \
119
133
  @MINIMAL_FALSE@ crypto_core/salsa2012/ref/api.h \
@@ -151,10 +165,8 @@ host_triplet = @host@
151
165
  @MINIMAL_FALSE@ crypto_stream/salsa208/ref/stream_salsa208.c \
152
166
  @MINIMAL_FALSE@ crypto_stream/salsa208/ref/xor_salsa208.c
153
167
 
154
- @HAVE_LD_OUTPUT_DEF_TRUE@am__append_6 = -Wl,--output-def,libsodium-$(DLL_VERSION).def
168
+ @HAVE_LD_OUTPUT_DEF_TRUE@am__append_7 = -Wl,--output-def,libsodium-$(DLL_VERSION).def
155
169
  subdir = src/libsodium
156
- DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
157
- $(top_srcdir)/build-aux/depcomp
158
170
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
159
171
  am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
160
172
  $(top_srcdir)/m4/ax_check_link_flag.m4 \
@@ -164,6 +176,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
164
176
  $(top_srcdir)/configure.ac
165
177
  am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
166
178
  $(ACLOCAL_M4)
179
+ DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
167
180
  mkinstalldirs = $(install_sh) -d
168
181
  CONFIG_CLEAN_FILES =
169
182
  CONFIG_CLEAN_VPATH_FILES =
@@ -213,6 +226,7 @@ am__libsodium_la_SOURCES_DIST = \
213
226
  crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.c \
214
227
  crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c \
215
228
  crypto_box/crypto_box.c crypto_box/crypto_box_easy.c \
229
+ crypto_box/crypto_box_seal.c \
216
230
  crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c \
217
231
  crypto_box/curve25519xsalsa20poly1305/ref/api.h \
218
232
  crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c \
@@ -336,9 +350,9 @@ am__libsodium_la_SOURCES_DIST = \
336
350
  crypto_verify/32/ref/verify_32.c \
337
351
  crypto_verify/64/verify_64_api.c crypto_verify/64/ref/api.h \
338
352
  crypto_verify/64/ref/verify_64.c randombytes/randombytes.c \
353
+ sodium/core.c sodium/runtime.c sodium/utils.c sodium/version.c \
339
354
  randombytes/salsa20/randombytes_salsa20_random.c \
340
- randombytes/sysrandom/randombytes_sysrandom.c sodium/core.c \
341
- sodium/runtime.c sodium/utils.c sodium/version.c \
355
+ randombytes/sysrandom/randombytes_sysrandom.c \
342
356
  crypto_scalarmult/curve25519/donna_c64/api.h \
343
357
  crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c \
344
358
  crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c \
@@ -402,9 +416,11 @@ am__libsodium_la_SOURCES_DIST = \
402
416
  crypto_stream/salsa208/ref/stream_salsa208.c \
403
417
  crypto_stream/salsa208/ref/xor_salsa208.c
404
418
  am__dirstamp = $(am__leading_dot)dirstamp
405
- @HAVE_TI_MODE_TRUE@am__objects_1 = crypto_scalarmult/curve25519/donna_c64/libsodium_la-base_curve25519_donna_c64.lo \
419
+ @EMSCRIPTEN_FALSE@am__objects_1 = randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo \
420
+ @EMSCRIPTEN_FALSE@ randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo
421
+ @HAVE_TI_MODE_TRUE@am__objects_2 = crypto_scalarmult/curve25519/donna_c64/libsodium_la-base_curve25519_donna_c64.lo \
406
422
  @HAVE_TI_MODE_TRUE@ crypto_scalarmult/curve25519/donna_c64/libsodium_la-smult_curve25519_donna_c64.lo
407
- @HAVE_TI_MODE_FALSE@am__objects_2 = crypto_scalarmult/curve25519/ref10/libsodium_la-base_curve25519_ref10.lo \
423
+ @HAVE_TI_MODE_FALSE@am__objects_3 = crypto_scalarmult/curve25519/ref10/libsodium_la-base_curve25519_ref10.lo \
408
424
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/libsodium_la-fe_0_curve25519_ref10.lo \
409
425
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/libsodium_la-fe_1_curve25519_ref10.lo \
410
426
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/libsodium_la-fe_add_curve25519_ref10.lo \
@@ -418,10 +434,10 @@ am__dirstamp = $(am__leading_dot)dirstamp
418
434
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/libsodium_la-fe_sub_curve25519_ref10.lo \
419
435
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/libsodium_la-fe_tobytes_curve25519_ref10.lo \
420
436
  @HAVE_TI_MODE_FALSE@ crypto_scalarmult/curve25519/ref10/libsodium_la-scalarmult_curve25519_ref10.lo
421
- @HAVE_AMD64_ASM_TRUE@am__objects_3 = crypto_stream/salsa20/amd64_xmm6/libsodium_la-stream_salsa20_amd64_xmm6.lo
422
- @HAVE_AMD64_ASM_FALSE@am__objects_4 = crypto_stream/salsa20/ref/libsodium_la-stream_salsa20_ref.lo \
437
+ @HAVE_AMD64_ASM_TRUE@am__objects_4 = crypto_stream/salsa20/amd64_xmm6/libsodium_la-stream_salsa20_amd64_xmm6.lo
438
+ @HAVE_AMD64_ASM_FALSE@am__objects_5 = crypto_stream/salsa20/ref/libsodium_la-stream_salsa20_ref.lo \
423
439
  @HAVE_AMD64_ASM_FALSE@ crypto_stream/salsa20/ref/libsodium_la-xor_salsa20_ref.lo
424
- @MINIMAL_FALSE@am__objects_5 = crypto_core/salsa2012/ref/libsodium_la-core_salsa2012.lo \
440
+ @MINIMAL_FALSE@am__objects_6 = crypto_core/salsa2012/ref/libsodium_la-core_salsa2012.lo \
425
441
  @MINIMAL_FALSE@ crypto_core/salsa2012/libsodium_la-core_salsa2012_api.lo \
426
442
  @MINIMAL_FALSE@ crypto_core/salsa208/ref/libsodium_la-core_salsa208.lo \
427
443
  @MINIMAL_FALSE@ crypto_core/salsa208/libsodium_la-core_salsa208_api.lo \
@@ -457,6 +473,7 @@ am_libsodium_la_OBJECTS = crypto_aead/chacha20poly1305/sodium/libsodium_la-aead_
457
473
  crypto_auth/hmacsha512256/cp/libsodium_la-verify_hmacsha512256.lo \
458
474
  crypto_box/libsodium_la-crypto_box.lo \
459
475
  crypto_box/libsodium_la-crypto_box_easy.lo \
476
+ crypto_box/libsodium_la-crypto_box_seal.lo \
460
477
  crypto_box/curve25519xsalsa20poly1305/libsodium_la-box_curve25519xsalsa20poly1305_api.lo \
461
478
  crypto_box/curve25519xsalsa20poly1305/ref/libsodium_la-after_curve25519xsalsa20poly1305.lo \
462
479
  crypto_box/curve25519xsalsa20poly1305/ref/libsodium_la-before_curve25519xsalsa20poly1305.lo \
@@ -551,12 +568,10 @@ am_libsodium_la_OBJECTS = crypto_aead/chacha20poly1305/sodium/libsodium_la-aead_
551
568
  crypto_verify/64/libsodium_la-verify_64_api.lo \
552
569
  crypto_verify/64/ref/libsodium_la-verify_64.lo \
553
570
  randombytes/libsodium_la-randombytes.lo \
554
- randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo \
555
- randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo \
556
571
  sodium/libsodium_la-core.lo sodium/libsodium_la-runtime.lo \
557
572
  sodium/libsodium_la-utils.lo sodium/libsodium_la-version.lo \
558
573
  $(am__objects_1) $(am__objects_2) $(am__objects_3) \
559
- $(am__objects_4) $(am__objects_5)
574
+ $(am__objects_4) $(am__objects_5) $(am__objects_6)
560
575
  libsodium_la_OBJECTS = $(am_libsodium_la_OBJECTS)
561
576
  AM_V_lt = $(am__v_lt_@AM_V@)
562
577
  am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
@@ -653,6 +668,8 @@ am__define_uniq_tagged_files = \
653
668
  ETAGS = etags
654
669
  CTAGS = ctags
655
670
  DIST_SUBDIRS = $(SUBDIRS)
671
+ am__DIST_COMMON = $(srcdir)/Makefile.in \
672
+ $(top_srcdir)/build-aux/depcomp
656
673
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
657
674
  am__relativize = \
658
675
  dir0=`pwd`; \
@@ -830,6 +847,7 @@ libsodium_la_SOURCES = \
830
847
  crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.c \
831
848
  crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c \
832
849
  crypto_box/crypto_box.c crypto_box/crypto_box_easy.c \
850
+ crypto_box/crypto_box_seal.c \
833
851
  crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c \
834
852
  crypto_box/curve25519xsalsa20poly1305/ref/api.h \
835
853
  crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c \
@@ -953,13 +971,11 @@ libsodium_la_SOURCES = \
953
971
  crypto_verify/32/ref/verify_32.c \
954
972
  crypto_verify/64/verify_64_api.c crypto_verify/64/ref/api.h \
955
973
  crypto_verify/64/ref/verify_64.c randombytes/randombytes.c \
956
- randombytes/salsa20/randombytes_salsa20_random.c \
957
- randombytes/sysrandom/randombytes_sysrandom.c sodium/core.c \
958
- sodium/runtime.c sodium/utils.c sodium/version.c \
974
+ sodium/core.c sodium/runtime.c sodium/utils.c sodium/version.c \
959
975
  $(am__append_1) $(am__append_2) $(am__append_3) \
960
- $(am__append_4) $(am__append_5)
976
+ $(am__append_4) $(am__append_5) $(am__append_6)
961
977
  libsodium_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -no-undefined \
962
- $(LIBTOOL_EXTRA_FLAGS) $(am__append_6)
978
+ $(LIBTOOL_EXTRA_FLAGS) $(am__append_7)
963
979
  libsodium_la_CPPFLAGS = \
964
980
  $(LTDLINCL) \
965
981
  -I$(srcdir)/include/sodium \
@@ -987,7 +1003,6 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
987
1003
  echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/libsodium/Makefile'; \
988
1004
  $(am__cd) $(top_srcdir) && \
989
1005
  $(AUTOMAKE) --foreign src/libsodium/Makefile
990
- .PRECIOUS: Makefile
991
1006
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
992
1007
  @case '$?' in \
993
1008
  *config.status*) \
@@ -1131,6 +1146,9 @@ crypto_box/libsodium_la-crypto_box.lo: crypto_box/$(am__dirstamp) \
1131
1146
  crypto_box/libsodium_la-crypto_box_easy.lo: \
1132
1147
  crypto_box/$(am__dirstamp) \
1133
1148
  crypto_box/$(DEPDIR)/$(am__dirstamp)
1149
+ crypto_box/libsodium_la-crypto_box_seal.lo: \
1150
+ crypto_box/$(am__dirstamp) \
1151
+ crypto_box/$(DEPDIR)/$(am__dirstamp)
1134
1152
  crypto_box/curve25519xsalsa20poly1305/$(am__dirstamp):
1135
1153
  @$(MKDIR_P) crypto_box/curve25519xsalsa20poly1305
1136
1154
  @: > crypto_box/curve25519xsalsa20poly1305/$(am__dirstamp)
@@ -1674,6 +1692,20 @@ randombytes/$(DEPDIR)/$(am__dirstamp):
1674
1692
  @: > randombytes/$(DEPDIR)/$(am__dirstamp)
1675
1693
  randombytes/libsodium_la-randombytes.lo: randombytes/$(am__dirstamp) \
1676
1694
  randombytes/$(DEPDIR)/$(am__dirstamp)
1695
+ sodium/$(am__dirstamp):
1696
+ @$(MKDIR_P) sodium
1697
+ @: > sodium/$(am__dirstamp)
1698
+ sodium/$(DEPDIR)/$(am__dirstamp):
1699
+ @$(MKDIR_P) sodium/$(DEPDIR)
1700
+ @: > sodium/$(DEPDIR)/$(am__dirstamp)
1701
+ sodium/libsodium_la-core.lo: sodium/$(am__dirstamp) \
1702
+ sodium/$(DEPDIR)/$(am__dirstamp)
1703
+ sodium/libsodium_la-runtime.lo: sodium/$(am__dirstamp) \
1704
+ sodium/$(DEPDIR)/$(am__dirstamp)
1705
+ sodium/libsodium_la-utils.lo: sodium/$(am__dirstamp) \
1706
+ sodium/$(DEPDIR)/$(am__dirstamp)
1707
+ sodium/libsodium_la-version.lo: sodium/$(am__dirstamp) \
1708
+ sodium/$(DEPDIR)/$(am__dirstamp)
1677
1709
  randombytes/salsa20/$(am__dirstamp):
1678
1710
  @$(MKDIR_P) randombytes/salsa20
1679
1711
  @: > randombytes/salsa20/$(am__dirstamp)
@@ -1692,20 +1724,6 @@ randombytes/sysrandom/$(DEPDIR)/$(am__dirstamp):
1692
1724
  randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo: \
1693
1725
  randombytes/sysrandom/$(am__dirstamp) \
1694
1726
  randombytes/sysrandom/$(DEPDIR)/$(am__dirstamp)
1695
- sodium/$(am__dirstamp):
1696
- @$(MKDIR_P) sodium
1697
- @: > sodium/$(am__dirstamp)
1698
- sodium/$(DEPDIR)/$(am__dirstamp):
1699
- @$(MKDIR_P) sodium/$(DEPDIR)
1700
- @: > sodium/$(DEPDIR)/$(am__dirstamp)
1701
- sodium/libsodium_la-core.lo: sodium/$(am__dirstamp) \
1702
- sodium/$(DEPDIR)/$(am__dirstamp)
1703
- sodium/libsodium_la-runtime.lo: sodium/$(am__dirstamp) \
1704
- sodium/$(DEPDIR)/$(am__dirstamp)
1705
- sodium/libsodium_la-utils.lo: sodium/$(am__dirstamp) \
1706
- sodium/$(DEPDIR)/$(am__dirstamp)
1707
- sodium/libsodium_la-version.lo: sodium/$(am__dirstamp) \
1708
- sodium/$(DEPDIR)/$(am__dirstamp)
1709
1727
  crypto_scalarmult/curve25519/donna_c64/$(am__dirstamp):
1710
1728
  @$(MKDIR_P) crypto_scalarmult/curve25519/donna_c64
1711
1729
  @: > crypto_scalarmult/curve25519/donna_c64/$(am__dirstamp)
@@ -2095,6 +2113,7 @@ distclean-compile:
2095
2113
  @AMDEP_TRUE@@am__include@ @am__quote@crypto_auth/hmacsha512256/cp/$(DEPDIR)/libsodium_la-verify_hmacsha512256.Plo@am__quote@
2096
2114
  @AMDEP_TRUE@@am__include@ @am__quote@crypto_box/$(DEPDIR)/libsodium_la-crypto_box.Plo@am__quote@
2097
2115
  @AMDEP_TRUE@@am__include@ @am__quote@crypto_box/$(DEPDIR)/libsodium_la-crypto_box_easy.Plo@am__quote@
2116
+ @AMDEP_TRUE@@am__include@ @am__quote@crypto_box/$(DEPDIR)/libsodium_la-crypto_box_seal.Plo@am__quote@
2098
2117
  @AMDEP_TRUE@@am__include@ @am__quote@crypto_box/curve25519xsalsa20poly1305/$(DEPDIR)/libsodium_la-box_curve25519xsalsa20poly1305_api.Plo@am__quote@
2099
2118
  @AMDEP_TRUE@@am__include@ @am__quote@crypto_box/curve25519xsalsa20poly1305/ref/$(DEPDIR)/libsodium_la-after_curve25519xsalsa20poly1305.Plo@am__quote@
2100
2119
  @AMDEP_TRUE@@am__include@ @am__quote@crypto_box/curve25519xsalsa20poly1305/ref/$(DEPDIR)/libsodium_la-before_curve25519xsalsa20poly1305.Plo@am__quote@
@@ -2384,6 +2403,13 @@ crypto_box/libsodium_la-crypto_box_easy.lo: crypto_box/crypto_box_easy.c
2384
2403
  @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
2385
2404
  @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crypto_box/libsodium_la-crypto_box_easy.lo `test -f 'crypto_box/crypto_box_easy.c' || echo '$(srcdir)/'`crypto_box/crypto_box_easy.c
2386
2405
 
2406
+ crypto_box/libsodium_la-crypto_box_seal.lo: crypto_box/crypto_box_seal.c
2407
+ @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crypto_box/libsodium_la-crypto_box_seal.lo -MD -MP -MF crypto_box/$(DEPDIR)/libsodium_la-crypto_box_seal.Tpo -c -o crypto_box/libsodium_la-crypto_box_seal.lo `test -f 'crypto_box/crypto_box_seal.c' || echo '$(srcdir)/'`crypto_box/crypto_box_seal.c
2408
+ @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) crypto_box/$(DEPDIR)/libsodium_la-crypto_box_seal.Tpo crypto_box/$(DEPDIR)/libsodium_la-crypto_box_seal.Plo
2409
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_box/crypto_box_seal.c' object='crypto_box/libsodium_la-crypto_box_seal.lo' libtool=yes @AMDEPBACKSLASH@
2410
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
2411
+ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crypto_box/libsodium_la-crypto_box_seal.lo `test -f 'crypto_box/crypto_box_seal.c' || echo '$(srcdir)/'`crypto_box/crypto_box_seal.c
2412
+
2387
2413
  crypto_box/curve25519xsalsa20poly1305/libsodium_la-box_curve25519xsalsa20poly1305_api.lo: crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c
2388
2414
  @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crypto_box/curve25519xsalsa20poly1305/libsodium_la-box_curve25519xsalsa20poly1305_api.lo -MD -MP -MF crypto_box/curve25519xsalsa20poly1305/$(DEPDIR)/libsodium_la-box_curve25519xsalsa20poly1305_api.Tpo -c -o crypto_box/curve25519xsalsa20poly1305/libsodium_la-box_curve25519xsalsa20poly1305_api.lo `test -f 'crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c' || echo '$(srcdir)/'`crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c
2389
2415
  @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) crypto_box/curve25519xsalsa20poly1305/$(DEPDIR)/libsodium_la-box_curve25519xsalsa20poly1305_api.Tpo crypto_box/curve25519xsalsa20poly1305/$(DEPDIR)/libsodium_la-box_curve25519xsalsa20poly1305_api.Plo
@@ -3042,20 +3068,6 @@ randombytes/libsodium_la-randombytes.lo: randombytes/randombytes.c
3042
3068
  @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
3043
3069
  @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o randombytes/libsodium_la-randombytes.lo `test -f 'randombytes/randombytes.c' || echo '$(srcdir)/'`randombytes/randombytes.c
3044
3070
 
3045
- randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo: randombytes/salsa20/randombytes_salsa20_random.c
3046
- @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo -MD -MP -MF randombytes/salsa20/$(DEPDIR)/libsodium_la-randombytes_salsa20_random.Tpo -c -o randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo `test -f 'randombytes/salsa20/randombytes_salsa20_random.c' || echo '$(srcdir)/'`randombytes/salsa20/randombytes_salsa20_random.c
3047
- @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) randombytes/salsa20/$(DEPDIR)/libsodium_la-randombytes_salsa20_random.Tpo randombytes/salsa20/$(DEPDIR)/libsodium_la-randombytes_salsa20_random.Plo
3048
- @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='randombytes/salsa20/randombytes_salsa20_random.c' object='randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo' libtool=yes @AMDEPBACKSLASH@
3049
- @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
3050
- @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo `test -f 'randombytes/salsa20/randombytes_salsa20_random.c' || echo '$(srcdir)/'`randombytes/salsa20/randombytes_salsa20_random.c
3051
-
3052
- randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo: randombytes/sysrandom/randombytes_sysrandom.c
3053
- @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo -MD -MP -MF randombytes/sysrandom/$(DEPDIR)/libsodium_la-randombytes_sysrandom.Tpo -c -o randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo `test -f 'randombytes/sysrandom/randombytes_sysrandom.c' || echo '$(srcdir)/'`randombytes/sysrandom/randombytes_sysrandom.c
3054
- @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) randombytes/sysrandom/$(DEPDIR)/libsodium_la-randombytes_sysrandom.Tpo randombytes/sysrandom/$(DEPDIR)/libsodium_la-randombytes_sysrandom.Plo
3055
- @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='randombytes/sysrandom/randombytes_sysrandom.c' object='randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo' libtool=yes @AMDEPBACKSLASH@
3056
- @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
3057
- @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo `test -f 'randombytes/sysrandom/randombytes_sysrandom.c' || echo '$(srcdir)/'`randombytes/sysrandom/randombytes_sysrandom.c
3058
-
3059
3071
  sodium/libsodium_la-core.lo: sodium/core.c
3060
3072
  @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sodium/libsodium_la-core.lo -MD -MP -MF sodium/$(DEPDIR)/libsodium_la-core.Tpo -c -o sodium/libsodium_la-core.lo `test -f 'sodium/core.c' || echo '$(srcdir)/'`sodium/core.c
3061
3073
  @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sodium/$(DEPDIR)/libsodium_la-core.Tpo sodium/$(DEPDIR)/libsodium_la-core.Plo
@@ -3084,6 +3096,20 @@ sodium/libsodium_la-version.lo: sodium/version.c
3084
3096
  @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
3085
3097
  @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sodium/libsodium_la-version.lo `test -f 'sodium/version.c' || echo '$(srcdir)/'`sodium/version.c
3086
3098
 
3099
+ randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo: randombytes/salsa20/randombytes_salsa20_random.c
3100
+ @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo -MD -MP -MF randombytes/salsa20/$(DEPDIR)/libsodium_la-randombytes_salsa20_random.Tpo -c -o randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo `test -f 'randombytes/salsa20/randombytes_salsa20_random.c' || echo '$(srcdir)/'`randombytes/salsa20/randombytes_salsa20_random.c
3101
+ @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) randombytes/salsa20/$(DEPDIR)/libsodium_la-randombytes_salsa20_random.Tpo randombytes/salsa20/$(DEPDIR)/libsodium_la-randombytes_salsa20_random.Plo
3102
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='randombytes/salsa20/randombytes_salsa20_random.c' object='randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo' libtool=yes @AMDEPBACKSLASH@
3103
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
3104
+ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o randombytes/salsa20/libsodium_la-randombytes_salsa20_random.lo `test -f 'randombytes/salsa20/randombytes_salsa20_random.c' || echo '$(srcdir)/'`randombytes/salsa20/randombytes_salsa20_random.c
3105
+
3106
+ randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo: randombytes/sysrandom/randombytes_sysrandom.c
3107
+ @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo -MD -MP -MF randombytes/sysrandom/$(DEPDIR)/libsodium_la-randombytes_sysrandom.Tpo -c -o randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo `test -f 'randombytes/sysrandom/randombytes_sysrandom.c' || echo '$(srcdir)/'`randombytes/sysrandom/randombytes_sysrandom.c
3108
+ @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) randombytes/sysrandom/$(DEPDIR)/libsodium_la-randombytes_sysrandom.Tpo randombytes/sysrandom/$(DEPDIR)/libsodium_la-randombytes_sysrandom.Plo
3109
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='randombytes/sysrandom/randombytes_sysrandom.c' object='randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo' libtool=yes @AMDEPBACKSLASH@
3110
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
3111
+ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo `test -f 'randombytes/sysrandom/randombytes_sysrandom.c' || echo '$(srcdir)/'`randombytes/sysrandom/randombytes_sysrandom.c
3112
+
3087
3113
  crypto_scalarmult/curve25519/donna_c64/libsodium_la-base_curve25519_donna_c64.lo: crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c
3088
3114
  @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsodium_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crypto_scalarmult/curve25519/donna_c64/libsodium_la-base_curve25519_donna_c64.lo -MD -MP -MF crypto_scalarmult/curve25519/donna_c64/$(DEPDIR)/libsodium_la-base_curve25519_donna_c64.Tpo -c -o crypto_scalarmult/curve25519/donna_c64/libsodium_la-base_curve25519_donna_c64.lo `test -f 'crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c' || echo '$(srcdir)/'`crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c
3089
3115
  @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) crypto_scalarmult/curve25519/donna_c64/$(DEPDIR)/libsodium_la-base_curve25519_donna_c64.Tpo crypto_scalarmult/curve25519/donna_c64/$(DEPDIR)/libsodium_la-base_curve25519_donna_c64.Plo
@@ -3896,6 +3922,8 @@ uninstall-am: uninstall-defexecDATA uninstall-libLTLIBRARIES
3896
3922
  pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
3897
3923
  uninstall-defexecDATA uninstall-libLTLIBRARIES
3898
3924
 
3925
+ .PRECIOUS: Makefile
3926
+
3899
3927
  @HAVE_LD_OUTPUT_DEF_TRUE@libsodium-$(DLL_VERSION).def: libsodium.la
3900
3928
 
3901
3929
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
@@ -9,3 +9,8 @@ size_t
9
9
  crypto_auth_hmacsha256_keybytes(void) {
10
10
  return crypto_auth_hmacsha256_KEYBYTES;
11
11
  }
12
+
13
+ size_t
14
+ crypto_auth_hmacsha256_statebytes(void) {
15
+ return sizeof(crypto_auth_hmacsha256_state);
16
+ }
@@ -6,6 +6,6 @@ int crypto_auth_verify(const unsigned char *h,const unsigned char *in,unsigned l
6
6
  {
7
7
  unsigned char correct[32];
8
8
  crypto_auth(correct,in,inlen,k);
9
- return crypto_verify_32(h,correct) | (-(h - correct == 0)) |
9
+ return crypto_verify_32(h,correct) | (-(h == correct)) |
10
10
  sodium_memcmp(correct,h,32);
11
11
  }
@@ -9,3 +9,8 @@ size_t
9
9
  crypto_auth_hmacsha512_keybytes(void) {
10
10
  return crypto_auth_hmacsha512_KEYBYTES;
11
11
  }
12
+
13
+ size_t
14
+ crypto_auth_hmacsha512_statebytes(void) {
15
+ return sizeof(crypto_auth_hmacsha512_state);
16
+ }
@@ -7,6 +7,6 @@ int crypto_auth_verify(const unsigned char *h, const unsigned char *in,
7
7
  {
8
8
  unsigned char correct[64];
9
9
  crypto_auth(correct,in,inlen,k);
10
- return crypto_verify_64(h,correct) | (-(h - correct == 0)) |
10
+ return crypto_verify_64(h,correct) | (-(h == correct)) |
11
11
  sodium_memcmp(correct,h,64);
12
12
  }
@@ -9,3 +9,8 @@ size_t
9
9
  crypto_auth_hmacsha512256_keybytes(void) {
10
10
  return crypto_auth_hmacsha512256_KEYBYTES;
11
11
  }
12
+
13
+ size_t
14
+ crypto_auth_hmacsha512256_statebytes(void) {
15
+ return sizeof(crypto_auth_hmacsha512256_state);
16
+ }
@@ -7,6 +7,6 @@ int crypto_auth_verify(const unsigned char *h, const unsigned char *in,
7
7
  {
8
8
  unsigned char correct[32];
9
9
  crypto_auth(correct,in,inlen,k);
10
- return crypto_verify_32(h,correct) | (-(h - correct == 0)) |
10
+ return crypto_verify_32(h,correct) | (-(h == correct)) |
11
11
  sodium_memcmp(correct,h,32);
12
12
  }
@@ -0,0 +1,67 @@
1
+
2
+ #include <string.h>
3
+
4
+ #include "crypto_box.h"
5
+ #include "crypto_generichash.h"
6
+ #include "utils.h"
7
+
8
+ static int
9
+ _crypto_box_seal_nonce(unsigned char *nonce,
10
+ const unsigned char *pk1, const unsigned char *pk2)
11
+ {
12
+ crypto_generichash_state st;
13
+
14
+ crypto_generichash_init(&st, NULL, 0U, crypto_box_NONCEBYTES);
15
+ crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES);
16
+ crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES);
17
+ crypto_generichash_final(&st, nonce, crypto_box_NONCEBYTES);
18
+
19
+ return 0;
20
+ }
21
+
22
+ int
23
+ crypto_box_seal(unsigned char *c, const unsigned char *m,
24
+ unsigned long long mlen, const unsigned char *pk)
25
+ {
26
+ unsigned char nonce[crypto_box_NONCEBYTES];
27
+ unsigned char epk[crypto_box_PUBLICKEYBYTES];
28
+ unsigned char esk[crypto_box_SECRETKEYBYTES];
29
+ int ret;
30
+
31
+ if (crypto_box_keypair(epk, esk) != 0) {
32
+ return -1; /* LCOV_EXCL_LINE */
33
+ }
34
+ memcpy(c, epk, crypto_box_PUBLICKEYBYTES);
35
+ _crypto_box_seal_nonce(nonce, epk, pk);
36
+ ret = crypto_box_easy(c + crypto_box_PUBLICKEYBYTES, m, mlen,
37
+ nonce, pk, esk);
38
+ sodium_memzero(nonce, sizeof nonce);
39
+ sodium_memzero(epk, sizeof epk);
40
+ sodium_memzero(esk, sizeof esk);
41
+
42
+ return ret;
43
+ }
44
+
45
+ int
46
+ crypto_box_seal_open(unsigned char *m, const unsigned char *c,
47
+ unsigned long long clen,
48
+ const unsigned char *pk, const unsigned char *sk)
49
+ {
50
+ unsigned char nonce[crypto_box_NONCEBYTES];
51
+
52
+ if (clen < crypto_box_SEALBYTES) {
53
+ return -1;
54
+ }
55
+ _crypto_box_seal_nonce(nonce, c, pk);
56
+
57
+ (void) sizeof(int[crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES ? 1 : -1]);
58
+ return crypto_box_open_easy(m, c + crypto_box_PUBLICKEYBYTES,
59
+ clen - crypto_box_PUBLICKEYBYTES,
60
+ nonce, c, sk);
61
+ }
62
+
63
+ size_t
64
+ crypto_box_sealbytes(void)
65
+ {
66
+ return crypto_box_SEALBYTES;
67
+ }