rbnacl-libsodium 1.0.13 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +5 -0
  3. data/lib/rbnacl/libsodium.rb +1 -0
  4. data/lib/rbnacl/libsodium/version.rb +1 -1
  5. data/vendor/libsodium/AUTHORS +2 -2
  6. data/vendor/libsodium/ChangeLog +64 -0
  7. data/vendor/libsodium/Makefile.am +1 -0
  8. data/vendor/libsodium/README.markdown +1 -3
  9. data/vendor/libsodium/THANKS +13 -3
  10. data/vendor/libsodium/builds/Makefile.am +65 -0
  11. data/vendor/libsodium/builds/msvc/resource.rc +2 -2
  12. data/vendor/libsodium/builds/msvc/version.h +3 -3
  13. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +168 -173
  14. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +382 -394
  15. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +168 -173
  16. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +382 -394
  17. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +168 -173
  18. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +382 -394
  19. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +168 -173
  20. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +382 -394
  21. data/vendor/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj +168 -173
  22. data/vendor/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj.filters +382 -394
  23. data/vendor/libsodium/configure.ac +59 -10
  24. data/vendor/libsodium/contrib/Findsodium.cmake +2 -0
  25. data/vendor/libsodium/dist-build/emscripten-symbols.def +72 -32
  26. data/vendor/libsodium/dist-build/emscripten.sh +33 -6
  27. data/vendor/libsodium/dist-build/generate-emscripten-symbols.sh +52 -38
  28. data/vendor/libsodium/dist-build/ios.sh +2 -2
  29. data/vendor/libsodium/libsodium.vcxproj +168 -173
  30. data/vendor/libsodium/libsodium.vcxproj.filters +220 -235
  31. data/vendor/libsodium/m4/ax_check_catchable_abrt.m4 +57 -0
  32. data/vendor/libsodium/m4/ax_check_gnu_make.m4 +2 -2
  33. data/vendor/libsodium/m4/ax_pthread.m4 +2 -2
  34. data/vendor/libsodium/msvc-scripts/process.bat +3 -3
  35. data/vendor/libsodium/packaging/dotnet-core/README.md +5 -5
  36. data/vendor/libsodium/packaging/dotnet-core/libsodium.props +5 -2
  37. data/vendor/libsodium/packaging/dotnet-core/prepare.py +13 -31
  38. data/vendor/libsodium/packaging/dotnet-core/recipes/linux-x64 +4 -0
  39. data/vendor/libsodium/packaging/nuget/package.config +1 -1
  40. data/vendor/libsodium/src/libsodium/Makefile.am +11 -12
  41. data/vendor/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +11 -4
  42. data/vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +17 -4
  43. data/vendor/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c +8 -1
  44. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box.c +6 -0
  45. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +5 -4
  46. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c +11 -4
  47. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c +6 -0
  48. data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +78 -17
  49. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-ref.c +74 -64
  50. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512_cp.c +2 -0
  51. data/vendor/libsodium/src/libsodium/crypto_kx/crypto_kx.c +7 -0
  52. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +1 -1
  53. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +1 -0
  54. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c +17 -17
  55. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c +53 -48
  56. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.h +37 -11
  57. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.c +23 -179
  58. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx2.c +4 -12
  59. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx512f.c +244 -0
  60. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c +3 -12
  61. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c +4 -12
  62. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.c +1 -5
  63. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.h +1 -1
  64. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-avx512f.h +145 -0
  65. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2i.c +91 -14
  66. data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2id.c +35 -14
  67. data/vendor/libsodium/src/libsodium/crypto_pwhash/crypto_pwhash.c +41 -4
  68. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c +31 -17
  69. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +4 -0
  70. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c +5 -1
  71. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +30 -1
  72. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +8 -0
  73. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c +3 -3
  74. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c +6 -0
  75. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +5 -4
  76. data/vendor/libsodium/src/libsodium/crypto_secretbox/xchacha20poly1305/secretbox_xchacha20poly1305.c +11 -4
  77. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c +6 -0
  78. data/vendor/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c +311 -0
  79. data/vendor/libsodium/src/libsodium/crypto_sign/crypto_sign.c +6 -0
  80. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ed25519_ref10.h +3 -0
  81. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +9 -2
  82. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c +1 -1
  83. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +6 -5
  84. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519.c +6 -0
  85. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.c +3 -2
  86. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.c +3 -2
  87. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/u0.h +1 -1
  88. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c +3 -2
  89. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.c +12 -0
  90. data/vendor/libsodium/src/libsodium/crypto_stream/crypto_stream.c +6 -0
  91. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20.c +7 -1
  92. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/u0.h +1 -1
  93. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012.c +6 -0
  94. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208.c +6 -0
  95. data/vendor/libsodium/src/libsodium/crypto_stream/xchacha20/stream_xchacha20.c +6 -0
  96. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20.c +6 -0
  97. data/vendor/libsodium/src/libsodium/crypto_verify/sodium/verify.c +66 -29
  98. data/vendor/libsodium/src/libsodium/include/Makefile.am +1 -1
  99. data/vendor/libsodium/src/libsodium/include/sodium.h +2 -2
  100. data/vendor/libsodium/src/libsodium/include/sodium/core.h +9 -0
  101. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_aes256gcm.h +26 -0
  102. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h +16 -4
  103. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_xchacha20poly1305.h +10 -4
  104. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +4 -0
  105. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xchacha20poly1305.h +6 -0
  106. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +24 -15
  107. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa208.h +8 -4
  108. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash.h +40 -18
  109. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2i.h +8 -2
  110. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2id.h +8 -2
  111. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +11 -3
  112. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +4 -0
  113. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xchacha20poly1305.h +6 -0
  114. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +17 -8
  115. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h +102 -0
  116. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +4 -0
  117. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +4 -0
  118. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +1 -0
  119. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h +4 -0
  120. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h +10 -0
  121. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h +4 -0
  122. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h +4 -0
  123. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h +15 -5
  124. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xchacha20.h +4 -0
  125. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +4 -0
  126. data/vendor/libsodium/src/libsodium/include/sodium/export.h +9 -0
  127. data/vendor/libsodium/src/libsodium/include/sodium/private/common.h +11 -0
  128. data/vendor/libsodium/src/libsodium/include/sodium/private/curve25519_ref10.h +2 -30
  129. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +2 -0
  130. data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +12 -9
  131. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +36 -0
  132. data/vendor/libsodium/src/libsodium/randombytes/nativeclient/randombytes_nativeclient.c +3 -2
  133. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +18 -14
  134. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +11 -10
  135. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +20 -8
  136. data/vendor/libsodium/src/libsodium/sodium/codecs.c +333 -0
  137. data/vendor/libsodium/src/libsodium/sodium/core.c +36 -4
  138. data/vendor/libsodium/src/libsodium/sodium/runtime.c +18 -0
  139. data/vendor/libsodium/src/libsodium/sodium/utils.c +87 -100
  140. data/vendor/libsodium/test/constcheck.sh +19 -0
  141. data/vendor/libsodium/test/default/Makefile.am +39 -7
  142. data/vendor/libsodium/test/default/aead_aes256gcm.c +6 -0
  143. data/vendor/libsodium/test/default/aead_chacha20poly1305.c +16 -0
  144. data/vendor/libsodium/test/default/aead_xchacha20poly1305.c +25 -15
  145. data/vendor/libsodium/test/default/auth.c +13 -0
  146. data/vendor/libsodium/test/default/auth.exp +8 -0
  147. data/vendor/libsodium/test/default/box.c +3 -0
  148. data/vendor/libsodium/test/default/box2.c +2 -0
  149. data/vendor/libsodium/test/default/box_easy.c +1 -4
  150. data/vendor/libsodium/test/default/box_easy2.c +7 -3
  151. data/vendor/libsodium/test/default/chacha20.c +9 -2
  152. data/vendor/libsodium/test/default/cmptest.h +47 -1
  153. data/vendor/libsodium/test/default/codecs.c +226 -0
  154. data/vendor/libsodium/test/default/codecs.exp +28 -0
  155. data/vendor/libsodium/test/default/core3.c +42 -15
  156. data/vendor/libsodium/test/default/ed25519_convert.c +17 -0
  157. data/vendor/libsodium/test/default/kdf.c +8 -4
  158. data/vendor/libsodium/test/default/keygen.c +5 -2
  159. data/vendor/libsodium/test/default/kx.c +30 -0
  160. data/vendor/libsodium/test/default/metamorphic.c +187 -0
  161. data/vendor/libsodium/test/default/metamorphic.exp +1 -0
  162. data/vendor/libsodium/test/default/misuse.c +145 -0
  163. data/vendor/libsodium/test/default/misuse.exp +0 -0
  164. data/vendor/libsodium/test/default/onetimeauth.c +2 -0
  165. data/vendor/libsodium/test/default/{pwhash.c → pwhash_argon2i.c} +133 -106
  166. data/vendor/libsodium/test/default/{pwhash.exp → pwhash_argon2i.exp} +0 -1
  167. data/vendor/libsodium/test/default/pwhash_argon2id.c +254 -144
  168. data/vendor/libsodium/test/default/pwhash_argon2id.exp +2 -3
  169. data/vendor/libsodium/test/default/pwhash_scrypt.c +61 -18
  170. data/vendor/libsodium/test/default/pwhash_scrypt.exp +6 -0
  171. data/vendor/libsodium/test/default/randombytes.c +8 -3
  172. data/vendor/libsodium/test/default/secretbox.c +8 -0
  173. data/vendor/libsodium/test/default/secretbox2.c +5 -0
  174. data/vendor/libsodium/test/default/secretbox_easy.c +19 -1
  175. data/vendor/libsodium/test/default/secretbox_easy.exp +2 -0
  176. data/vendor/libsodium/test/default/secretbox_easy2.c +4 -0
  177. data/vendor/libsodium/test/default/secretstream.c +280 -0
  178. data/vendor/libsodium/test/default/secretstream.exp +1 -0
  179. data/vendor/libsodium/test/default/sign.c +31 -0
  180. data/vendor/libsodium/test/default/sodium_core.c +23 -1
  181. data/vendor/libsodium/test/default/sodium_core.exp +1 -1
  182. data/vendor/libsodium/test/default/sodium_utils.c +45 -56
  183. data/vendor/libsodium/test/default/sodium_utils.exp +0 -8
  184. data/vendor/libsodium/test/default/stream.c +2 -0
  185. data/vendor/libsodium/test/default/stream2.c +1 -0
  186. data/vendor/libsodium/test/default/xchacha20.c +58 -7
  187. metadata +21 -18
  188. data/vendor/libsodium/dist-build/emscripten-wasm.sh +0 -132
  189. data/vendor/libsodium/m4/pkg.m4 +0 -214
  190. data/vendor/libsodium/packaging/dotnet-core/desktop.targets +0 -16
  191. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/afternm_aes128ctr.c +0 -174
  192. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/beforenm_aes128ctr.c +0 -66
  193. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/common.h +0 -766
  194. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/consts.h +0 -28
  195. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/consts_aes128ctr.c +0 -28
  196. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/int128.h +0 -50
  197. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/int128_aes128ctr.c +0 -149
  198. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/stream_aes128ctr_nacl.c +0 -31
  199. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/xor_afternm_aes128ctr.c +0 -195
  200. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr.c +0 -19
  201. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h +0 -65
@@ -1190,6 +1190,35 @@ int main(void)
1190
1190
  i, pk) != -1) {
1191
1191
  printf("detached signature verification should have failed\n");
1192
1192
  }
1193
+ assert(crypto_sign_detached(sig, NULL,
1194
+ (const unsigned char *)test_data[i].m, i, skpk) == 0);
1195
+
1196
+ sodium_hex2bin(pk, crypto_sign_PUBLICKEYBYTES,
1197
+ "3eee494fb9eac773144e34b0c755affaf33ea782c0722e5ea8b150e61209ab36",
1198
+ crypto_sign_PUBLICKEYBYTES * 2, NULL, NULL, NULL);
1199
+ if (crypto_sign_verify_detached(sig,
1200
+ (const unsigned char *)test_data[i].m,
1201
+ i, pk) != -1) {
1202
+ printf("signature with an invalid public key should have failed\n");
1203
+ }
1204
+
1205
+ sodium_hex2bin(pk, crypto_sign_PUBLICKEYBYTES,
1206
+ "0200000000000000000000000000000000000000000000000000000000000000",
1207
+ crypto_sign_PUBLICKEYBYTES * 2, NULL, NULL, NULL);
1208
+ if (crypto_sign_verify_detached(sig,
1209
+ (const unsigned char *)test_data[i].m,
1210
+ i, pk) != -1) {
1211
+ printf("signature with an invalid public key should have failed\n");
1212
+ }
1213
+
1214
+ sodium_hex2bin(pk, crypto_sign_PUBLICKEYBYTES,
1215
+ "0500000000000000000000000000000000000000000000000000000000000000",
1216
+ crypto_sign_PUBLICKEYBYTES * 2, NULL, NULL, NULL);
1217
+ if (crypto_sign_verify_detached(sig,
1218
+ (const unsigned char *)test_data[i].m,
1219
+ i, pk) != -1) {
1220
+ printf("signature with an invalid public key should have failed\n");
1221
+ }
1193
1222
 
1194
1223
  if (crypto_sign_seed_keypair(pk, sk, keypair_seed) != 0) {
1195
1224
  printf("crypto_sign_seed_keypair() failure\n");
@@ -1271,9 +1300,11 @@ int main(void)
1271
1300
  assert(crypto_sign_seedbytes() > 0U);
1272
1301
  assert(crypto_sign_publickeybytes() > 0U);
1273
1302
  assert(crypto_sign_secretkeybytes() > 0U);
1303
+ assert(crypto_sign_messagebytes_max() > 0U);
1274
1304
  assert(strcmp(crypto_sign_primitive(), "ed25519") == 0);
1275
1305
  assert(crypto_sign_bytes() == crypto_sign_ed25519_bytes());
1276
1306
  assert(crypto_sign_seedbytes() == crypto_sign_ed25519_seedbytes());
1307
+ assert(crypto_sign_messagebytes_max() == crypto_sign_ed25519_messagebytes_max());
1277
1308
  assert(crypto_sign_publickeybytes()
1278
1309
  == crypto_sign_ed25519_publickeybytes());
1279
1310
  assert(crypto_sign_secretkeybytes()
@@ -2,18 +2,40 @@
2
2
  #define TEST_NAME "sodium_core"
3
3
  #include "cmptest.h"
4
4
 
5
+ static void
6
+ misuse_handler(void)
7
+ {
8
+ printf("misuse_handler()\n");
9
+ exit(0);
10
+ }
11
+
5
12
  int
6
13
  main(void)
7
14
  {
8
- printf("%d\n", sodium_init());
15
+ sodium_set_misuse_handler(NULL);
16
+ sodium_set_misuse_handler(misuse_handler);
17
+ sodium_set_misuse_handler(NULL);
18
+
19
+ assert(sodium_init() == 1);
9
20
 
10
21
  (void) sodium_runtime_has_neon();
11
22
  (void) sodium_runtime_has_sse2();
12
23
  (void) sodium_runtime_has_sse3();
13
24
  (void) sodium_runtime_has_ssse3();
14
25
  (void) sodium_runtime_has_sse41();
26
+ (void) sodium_runtime_has_avx();
27
+ (void) sodium_runtime_has_avx2();
28
+ (void) sodium_runtime_has_avx512f();
15
29
  (void) sodium_runtime_has_pclmul();
16
30
  (void) sodium_runtime_has_aesni();
17
31
 
32
+ sodium_set_misuse_handler(misuse_handler);
33
+ #ifndef __EMSCRIPTEN__
34
+ sodium_misuse();
35
+ printf("Misuse handler returned\n");
36
+ #else
37
+ printf("misuse_handler()\n");
38
+ #endif
39
+
18
40
  return 0;
19
41
  }
@@ -1 +1 @@
1
- 1
1
+ misuse_handler()
@@ -4,20 +4,21 @@
4
4
  int
5
5
  main(void)
6
6
  {
7
- unsigned char buf_add[1000];
8
- unsigned char buf1[1000];
9
- unsigned char buf2[1000];
10
- unsigned char buf1_rev[1000];
11
- unsigned char buf2_rev[1000];
12
- char buf3[33];
13
- unsigned char buf4[4];
14
- unsigned char nonce[24];
15
- char nonce_hex[49];
16
- const char * hex;
17
- const char * hex_end;
18
- size_t bin_len;
19
- unsigned int i;
20
- unsigned int j;
7
+ unsigned char buf_add[1000];
8
+ unsigned char buf1[1000];
9
+ unsigned char buf2[1000];
10
+ unsigned char buf1_rev[1000];
11
+ unsigned char buf2_rev[1000];
12
+ char buf3[33];
13
+ unsigned char nonce[24];
14
+ char nonce_hex[49];
15
+ unsigned char *bin_padded;
16
+ size_t bin_len, bin_len2;
17
+ size_t bin_padded_len;
18
+ size_t bin_padded_maxlen;
19
+ size_t blocksize;
20
+ unsigned int i;
21
+ unsigned int j;
21
22
 
22
23
  randombytes_buf(buf1, sizeof buf1);
23
24
  memcpy(buf2, buf1, sizeof buf2);
@@ -29,48 +30,6 @@ main(void)
29
30
  printf("%d\n", sodium_memcmp(buf1, buf2, 0U));
30
31
  sodium_memzero(buf2, sizeof buf2 / 2);
31
32
  printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1));
32
- printf("%s\n",
33
- sodium_bin2hex(buf3, 33U, (const unsigned char *) "0123456789ABCDEF",
34
- 16U));
35
- hex = "Cafe : 6942";
36
- sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len,
37
- &hex_end);
38
- printf("%lu:%02x%02x%02x%02x\n", (unsigned long) bin_len, buf4[0], buf4[1],
39
- buf4[2], buf4[3]);
40
- printf("dt1: %ld\n", (long) (hex_end - hex));
41
-
42
- hex = "Cafe : 6942";
43
- sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, NULL);
44
- printf("%lu:%02x%02x%02x%02x\n", (unsigned long) bin_len, buf4[2], buf4[3],
45
- buf4[2], buf4[3]);
46
-
47
- hex = "deadbeef";
48
- if (sodium_hex2bin(buf1, 1U, hex, 8U, NULL, &bin_len, &hex_end) != -1) {
49
- printf("sodium_hex2bin() overflow not detected\n");
50
- }
51
- printf("dt2: %ld\n", (long) (hex_end - hex));
52
-
53
- hex = "de:ad:be:eff";
54
- if (sodium_hex2bin(buf1, 4U, hex, 12U, ":", &bin_len, &hex_end) != -1) {
55
- printf(
56
- "sodium_hex2bin() with an odd input length and a short output "
57
- "buffer\n");
58
- }
59
- printf("dt3: %ld\n", (long) (hex_end - hex));
60
-
61
- hex = "de:ad:be:eff";
62
- if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", &bin_len, &hex_end) !=
63
- 0) {
64
- printf("sodium_hex2bin() with an odd input length\n");
65
- }
66
- printf("dt4: %ld\n", (long) (hex_end - hex));
67
-
68
- hex = "de:ad:be:eff";
69
- if (sodium_hex2bin(buf1, sizeof buf1, hex, 13U, ":", &bin_len, &hex_end) !=
70
- 0) {
71
- printf("sodium_hex2bin() with an odd input length\n");
72
- }
73
- printf("dt5: %ld\n", (long) (hex_end - hex));
74
33
 
75
34
  memset(nonce, 0, sizeof nonce);
76
35
  sodium_increment(nonce, sizeof nonce);
@@ -184,5 +143,35 @@ main(void)
184
143
  printf("%s\n",
185
144
  sodium_bin2hex(nonce_hex, sizeof nonce_hex, nonce, sizeof nonce));
186
145
 
146
+ for (i = 0; i < 2000U; i++) {
147
+ bin_len = randombytes_uniform(200U);
148
+ blocksize = 1U + randombytes_uniform(100U);
149
+ bin_padded_maxlen = bin_len + (blocksize - bin_len % blocksize);
150
+ bin_padded = (unsigned char *) sodium_malloc(bin_padded_maxlen);
151
+ randombytes_buf(bin_padded, bin_padded_maxlen);
152
+
153
+ assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,
154
+ blocksize, bin_padded_maxlen - 1U) == -1);
155
+ assert(sodium_pad(NULL, bin_padded, bin_len,
156
+ blocksize, bin_padded_maxlen + 1U) == 0);
157
+ assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,
158
+ blocksize, bin_padded_maxlen + 1U) == 0);
159
+ assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,
160
+ 0U, bin_padded_maxlen) == -1);
161
+ assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,
162
+ blocksize, bin_padded_maxlen) == 0);
163
+ assert(bin_padded_len == bin_padded_maxlen);
164
+
165
+ assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len,
166
+ bin_padded_len + 1U) == -1);
167
+ assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len,
168
+ 0U) == -1);
169
+ assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len,
170
+ blocksize) == 0);
171
+ assert(bin_len2 == bin_len);
172
+
173
+ sodium_free(bin_padded);
174
+ }
175
+
187
176
  return 0;
188
177
  }
@@ -3,14 +3,6 @@
3
3
  -1
4
4
  0
5
5
  0
6
- 30313233343536373839414243444546
7
- 4:cafe6942
8
- dt1: 11
9
- 4:69426942
10
- dt2: 2
11
- dt3: 11
12
- dt4: 11
13
- dt5: 11
14
6
  010000000000000000000000000000000000000000000000
15
7
  000000000000000000000000000000000000000000000000
16
8
  010100000000000000000000000000000000000000000000
@@ -55,9 +55,11 @@ main(void)
55
55
 
56
56
  assert(crypto_stream_keybytes() > 0U);
57
57
  assert(crypto_stream_noncebytes() > 0U);
58
+ assert(crypto_stream_messagebytes_max() > 0U);
58
59
  assert(strcmp(crypto_stream_primitive(), "xsalsa20") == 0);
59
60
  assert(crypto_stream_keybytes() == crypto_stream_xsalsa20_keybytes());
60
61
  assert(crypto_stream_noncebytes() == crypto_stream_xsalsa20_noncebytes());
62
+ assert(crypto_stream_messagebytes_max() == crypto_stream_xsalsa20_messagebytes_max());
61
63
 
62
64
  return 0;
63
65
  }
@@ -41,6 +41,7 @@ main(void)
41
41
 
42
42
  assert(crypto_stream_salsa20_keybytes() > 0U);
43
43
  assert(crypto_stream_salsa20_noncebytes() > 0U);
44
+ assert(crypto_stream_salsa20_messagebytes_max() > 0U);
44
45
 
45
46
  return 0;
46
47
  }
@@ -8,6 +8,12 @@ typedef struct HChaCha20TV_ {
8
8
  const char out[crypto_core_hchacha20_OUTPUTBYTES * 2 + 1];
9
9
  } HChaCha20TV;
10
10
 
11
+ static const unsigned char small_order_p[crypto_scalarmult_BYTES] = {
12
+ 0xe0, 0xeb, 0x7a, 0x7c, 0x3b, 0x41, 0xb8, 0xae, 0x16, 0x56, 0xe3,
13
+ 0xfa, 0xf1, 0x9f, 0xc4, 0x6a, 0xda, 0x09, 0x8d, 0xeb, 0x9c, 0x32,
14
+ 0xb1, 0xfd, 0x86, 0x62, 0x05, 0x16, 0x5f, 0x49, 0xb8, 0x00
15
+ };
16
+
11
17
  static void
12
18
  tv_hchacha20(void)
13
19
  {
@@ -29,7 +35,7 @@ tv_hchacha20(void)
29
35
  unsigned char *in;
30
36
  unsigned char *out;
31
37
  unsigned char *out2;
32
- int i;
38
+ size_t i;
33
39
 
34
40
  constant = (unsigned char *) sodium_malloc(crypto_core_hchacha20_CONSTBYTES);
35
41
  key = (unsigned char *) sodium_malloc(crypto_core_hchacha20_KEYBYTES);
@@ -102,7 +108,7 @@ tv_stream_xchacha20(void)
102
108
  unsigned char *out;
103
109
  unsigned char *out2;
104
110
  size_t out_len;
105
- int i;
111
+ size_t i;
106
112
 
107
113
  key = (unsigned char *) sodium_malloc(crypto_stream_xchacha20_KEYBYTES);
108
114
  nonce = (unsigned char *) sodium_malloc(crypto_stream_xchacha20_NONCEBYTES);
@@ -164,6 +170,11 @@ tv_stream_xchacha20(void)
164
170
  hex = (char *) sodium_malloc(192 * 2 + 1);
165
171
  sodium_bin2hex(hex, 192 * 2 + 1, out, 192);
166
172
  printf("%s\n", hex);
173
+
174
+ memset(key, 0, crypto_stream_xchacha20_KEYBYTES);
175
+ crypto_stream_xchacha20_keygen(key);
176
+ assert(sodium_is_zero(key, crypto_stream_xchacha20_KEYBYTES) == 0);
177
+
167
178
  sodium_free(hex);
168
179
  sodium_free(out);
169
180
  sodium_free(out2);
@@ -173,6 +184,7 @@ tv_stream_xchacha20(void)
173
184
 
174
185
  assert(crypto_stream_xchacha20_keybytes() == crypto_stream_xchacha20_KEYBYTES);
175
186
  assert(crypto_stream_xchacha20_noncebytes() == crypto_stream_xchacha20_NONCEBYTES);
187
+ assert(crypto_stream_xchacha20_messagebytes_max() == crypto_stream_xchacha20_MESSAGEBYTES_MAX);
176
188
 
177
189
  printf("tv_stream_xchacha20: ok\n");
178
190
  }
@@ -206,9 +218,8 @@ tv_secretbox_xchacha20poly1305(void)
206
218
  unsigned char *out;
207
219
  unsigned char *out2;
208
220
  size_t m_len;
209
- size_t out_len;
210
221
  size_t n;
211
- int i;
222
+ size_t i;
212
223
 
213
224
  key = (unsigned char *) sodium_malloc
214
225
  (crypto_secretbox_xchacha20poly1305_KEYBYTES);
@@ -229,10 +240,17 @@ tv_secretbox_xchacha20poly1305(void)
229
240
  (crypto_secretbox_xchacha20poly1305_MACBYTES + m_len);
230
241
  sodium_hex2bin(out, crypto_secretbox_xchacha20poly1305_MACBYTES + m_len,
231
242
  tv->out, strlen(tv->out), NULL, NULL, NULL);
232
- crypto_secretbox_xchacha20poly1305_easy(out2, m, m_len, nonce, key);
243
+ assert(crypto_secretbox_xchacha20poly1305_easy(out2, m, 0, nonce, key) == 0);
244
+ assert(crypto_secretbox_xchacha20poly1305_easy(out2, m, m_len, nonce, key) == 0);
233
245
  assert(memcmp(out, out2,
234
246
  crypto_secretbox_xchacha20poly1305_MACBYTES + m_len) == 0);
235
247
  n = randombytes_uniform(crypto_secretbox_xchacha20poly1305_MACBYTES + m_len);
248
+ assert(crypto_secretbox_xchacha20poly1305_open_easy
249
+ (out2, out2, crypto_secretbox_xchacha20poly1305_MACBYTES - 1,
250
+ nonce, key) == -1);
251
+ assert(crypto_secretbox_xchacha20poly1305_open_easy
252
+ (out2, out2, 0,
253
+ nonce, key) == -1);
236
254
  out2[n]++;
237
255
  assert(crypto_secretbox_xchacha20poly1305_open_easy
238
256
  (out2, out2, crypto_secretbox_xchacha20poly1305_MACBYTES + m_len,
@@ -246,10 +264,18 @@ tv_secretbox_xchacha20poly1305(void)
246
264
  assert(crypto_secretbox_xchacha20poly1305_open_easy
247
265
  (out2, out2, crypto_secretbox_xchacha20poly1305_MACBYTES + m_len,
248
266
  nonce, key) == 0);
267
+ assert(crypto_secretbox_xchacha20poly1305_open_easy
268
+ (out2, out2, crypto_secretbox_xchacha20poly1305_MACBYTES - 1,
269
+ nonce, key) == -1);
270
+ assert(crypto_secretbox_xchacha20poly1305_open_easy
271
+ (out2, out2, 0, nonce, key) == -1);
249
272
  assert(memcmp(m, out2, m_len) == 0);
250
273
  assert(crypto_secretbox_xchacha20poly1305_open_detached
251
274
  (out2, out + crypto_secretbox_xchacha20poly1305_MACBYTES, out,
252
275
  m_len, nonce, key) == 0);
276
+ assert(crypto_secretbox_xchacha20poly1305_open_detached
277
+ (NULL, out + crypto_secretbox_xchacha20poly1305_MACBYTES, out,
278
+ m_len, nonce, key) == 0);
253
279
  crypto_secretbox_xchacha20poly1305_detached
254
280
  (out2 + crypto_secretbox_xchacha20poly1305_MACBYTES, out2, m,
255
281
  m_len, nonce, key);
@@ -300,8 +326,18 @@ tv_box_xchacha20poly1305(void)
300
326
  randombytes_buf(nonce, crypto_box_curve25519xchacha20poly1305_NONCEBYTES);
301
327
  randombytes_buf(m, m_len);
302
328
  assert(crypto_box_curve25519xchacha20poly1305_keypair(pk, sk) == 0);
329
+ assert(crypto_box_curve25519xchacha20poly1305_easy(out, m, 0, nonce,
330
+ pk, sk) == 0);
303
331
  assert(crypto_box_curve25519xchacha20poly1305_easy(out, m, m_len, nonce,
304
332
  pk, sk) == 0);
333
+ assert(crypto_box_curve25519xchacha20poly1305_open_easy
334
+ (m2, out, crypto_box_curve25519xchacha20poly1305_MACBYTES + m_len,
335
+ nonce, small_order_p, sk) == -1);
336
+ assert(crypto_box_curve25519xchacha20poly1305_open_easy
337
+ (m2, out, crypto_box_curve25519xchacha20poly1305_MACBYTES - 1,
338
+ nonce, pk, sk) == -1);
339
+ assert(crypto_box_curve25519xchacha20poly1305_open_easy
340
+ (m2, out, 0, nonce, pk, sk) == -1);
305
341
  assert(crypto_box_curve25519xchacha20poly1305_open_easy
306
342
  (m2, out, crypto_box_curve25519xchacha20poly1305_MACBYTES + m_len,
307
343
  nonce, pk, sk) == 0);
@@ -310,9 +346,18 @@ tv_box_xchacha20poly1305(void)
310
346
 
311
347
  out = (unsigned char *) sodium_malloc
312
348
  (crypto_box_curve25519xchacha20poly1305_MACBYTES + m_len);
349
+ assert(crypto_box_curve25519xchacha20poly1305_beforenm(pc, small_order_p, sk) == -1);
313
350
  assert(crypto_box_curve25519xchacha20poly1305_beforenm(pc, pk, sk) == 0);
351
+ assert(crypto_box_curve25519xchacha20poly1305_easy_afternm
352
+ (out, m, 0, nonce, pc) == 0);
314
353
  assert(crypto_box_curve25519xchacha20poly1305_easy_afternm
315
354
  (out, m, m_len, nonce, pc) == 0);
355
+ assert(crypto_box_curve25519xchacha20poly1305_open_easy_afternm
356
+ (m2, out, crypto_box_curve25519xchacha20poly1305_MACBYTES - 1,
357
+ nonce, pc) == -1);
358
+ assert(crypto_box_curve25519xchacha20poly1305_open_easy_afternm
359
+ (m2, out, 0,
360
+ nonce, pc) == -1);
316
361
  assert(crypto_box_curve25519xchacha20poly1305_open_easy_afternm
317
362
  (m2, out, crypto_box_curve25519xchacha20poly1305_MACBYTES + m_len,
318
363
  nonce, pc) == 0);
@@ -320,8 +365,12 @@ tv_box_xchacha20poly1305(void)
320
365
  sodium_free(out);
321
366
 
322
367
  out = (unsigned char *) sodium_malloc(m_len);
368
+ assert(crypto_box_curve25519xchacha20poly1305_detached(out, mac, m, m_len,
369
+ nonce, small_order_p, sk) == -1);
323
370
  assert(crypto_box_curve25519xchacha20poly1305_detached(out, mac, m, m_len,
324
371
  nonce, pk, sk) == 0);
372
+ assert(crypto_box_curve25519xchacha20poly1305_open_detached
373
+ (m2, out, mac, m_len, nonce, small_order_p, sk) == -1);
325
374
  assert(crypto_box_curve25519xchacha20poly1305_open_detached
326
375
  (m2, out, mac, m_len, nonce, pk, sk) == 0);
327
376
  sodium_free(out);
@@ -342,8 +391,8 @@ tv_box_xchacha20poly1305(void)
342
391
 
343
392
  seed = (unsigned char *) sodium_malloc
344
393
  (crypto_box_curve25519xchacha20poly1305_SEEDBYTES);
345
- for (i = 0; i < crypto_box_curve25519xchacha20poly1305_SEEDBYTES; i++) {
346
- seed[i] = i;
394
+ for (i = 0; i <(int) crypto_box_curve25519xchacha20poly1305_SEEDBYTES; i++) {
395
+ seed[i] = (unsigned char) i;
347
396
  }
348
397
  crypto_box_curve25519xchacha20poly1305_seed_keypair(pk, sk, seed);
349
398
  sodium_bin2hex(hex, sizeof hex, pk, crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES);
@@ -360,6 +409,8 @@ tv_box_xchacha20poly1305(void)
360
409
  assert(crypto_box_curve25519xchacha20poly1305_secretkeybytes() == crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES);
361
410
  assert(crypto_box_curve25519xchacha20poly1305_beforenmbytes() == crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES);
362
411
  assert(crypto_box_curve25519xchacha20poly1305_noncebytes() == crypto_box_curve25519xchacha20poly1305_NONCEBYTES);
412
+ assert(crypto_box_curve25519xchacha20poly1305_macbytes() == crypto_box_curve25519xchacha20poly1305_MACBYTES);
413
+ assert(crypto_box_curve25519xchacha20poly1305_messagebytes_max() == crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX);
363
414
 
364
415
  printf("tv_box_xchacha20poly1305: ok\n");
365
416
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbnacl-libsodium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artiom Di
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-15 00:00:00.000000000 Z
12
+ date: 2017-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rbnacl
@@ -99,6 +99,7 @@ files:
99
99
  - vendor/libsodium/build-aux/ltmain.sh
100
100
  - vendor/libsodium/build-aux/missing
101
101
  - vendor/libsodium/build-aux/test-driver
102
+ - vendor/libsodium/builds/Makefile.am
102
103
  - vendor/libsodium/builds/msvc/build/buildall.bat
103
104
  - vendor/libsodium/builds/msvc/build/buildbase.bat
104
105
  - vendor/libsodium/builds/msvc/properties/Common.props
@@ -179,7 +180,6 @@ files:
179
180
  - vendor/libsodium/dist-build/android-x86.sh
180
181
  - vendor/libsodium/dist-build/android-x86_64.sh
181
182
  - vendor/libsodium/dist-build/emscripten-symbols.def
182
- - vendor/libsodium/dist-build/emscripten-wasm.sh
183
183
  - vendor/libsodium/dist-build/emscripten.sh
184
184
  - vendor/libsodium/dist-build/generate-emscripten-symbols.sh
185
185
  - vendor/libsodium/dist-build/ios.sh
@@ -195,6 +195,7 @@ files:
195
195
  - vendor/libsodium/libsodium.vcxproj
196
196
  - vendor/libsodium/libsodium.vcxproj.filters
197
197
  - vendor/libsodium/logo.png
198
+ - vendor/libsodium/m4/ax_check_catchable_abrt.m4
198
199
  - vendor/libsodium/m4/ax_check_catchable_segv.m4
199
200
  - vendor/libsodium/m4/ax_check_compile_flag.m4
200
201
  - vendor/libsodium/m4/ax_check_define.m4
@@ -208,14 +209,12 @@ files:
208
209
  - vendor/libsodium/m4/ltsugar.m4
209
210
  - vendor/libsodium/m4/ltversion.m4
210
211
  - vendor/libsodium/m4/lt~obsolete.m4
211
- - vendor/libsodium/m4/pkg.m4
212
212
  - vendor/libsodium/msvc-scripts/Makefile.am
213
213
  - vendor/libsodium/msvc-scripts/Makefile.in
214
214
  - vendor/libsodium/msvc-scripts/process.bat
215
215
  - vendor/libsodium/msvc-scripts/rep.vbs
216
216
  - vendor/libsodium/msvc-scripts/sodium.props
217
217
  - vendor/libsodium/packaging/dotnet-core/README.md
218
- - vendor/libsodium/packaging/dotnet-core/desktop.targets
219
218
  - vendor/libsodium/packaging/dotnet-core/libsodium.props
220
219
  - vendor/libsodium/packaging/dotnet-core/prepare.py
221
220
  - vendor/libsodium/packaging/dotnet-core/recipes/alpine-x64
@@ -223,6 +222,7 @@ files:
223
222
  - vendor/libsodium/packaging/dotnet-core/recipes/centos-x64
224
223
  - vendor/libsodium/packaging/dotnet-core/recipes/debian-x64
225
224
  - vendor/libsodium/packaging/dotnet-core/recipes/fedora-x64
225
+ - vendor/libsodium/packaging/dotnet-core/recipes/linux-x64
226
226
  - vendor/libsodium/packaging/dotnet-core/recipes/opensuse-x64
227
227
  - vendor/libsodium/packaging/dotnet-core/recipes/pack
228
228
  - vendor/libsodium/packaging/dotnet-core/recipes/test
@@ -291,6 +291,7 @@ files:
291
291
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.c
292
292
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.h
293
293
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx2.c
294
+ - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx512f.c
294
295
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c
295
296
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c
296
297
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.c
@@ -298,6 +299,7 @@ files:
298
299
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.c
299
300
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.h
300
301
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-avx2.h
302
+ - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-avx512f.h
301
303
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ref.h
302
304
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ssse3.h
303
305
  - vendor/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2i.c
@@ -341,6 +343,7 @@ files:
341
343
  - vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c
342
344
  - vendor/libsodium/src/libsodium/crypto_secretbox/xchacha20poly1305/secretbox_xchacha20poly1305.c
343
345
  - vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c
346
+ - vendor/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c
344
347
  - vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
345
348
  - vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c
346
349
  - vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash_ref.h
@@ -354,16 +357,6 @@ files:
354
357
  - vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c
355
358
  - vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c
356
359
  - vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519.c
357
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/afternm_aes128ctr.c
358
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/beforenm_aes128ctr.c
359
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/common.h
360
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/consts.h
361
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/consts_aes128ctr.c
362
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/int128.h
363
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/int128_aes128ctr.c
364
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/stream_aes128ctr_nacl.c
365
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/nacl/xor_afternm_aes128ctr.c
366
- - vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr.c
367
360
  - vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.c
368
361
  - vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.h
369
362
  - vendor/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.c
@@ -437,13 +430,13 @@ files:
437
430
  - vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h
438
431
  - vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xchacha20poly1305.h
439
432
  - vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h
433
+ - vendor/libsodium/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h
440
434
  - vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash.h
441
435
  - vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash_siphash24.h
442
436
  - vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h
443
437
  - vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h
444
438
  - vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h
445
439
  - vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h
446
- - vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
447
440
  - vendor/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h
448
441
  - vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h
449
442
  - vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h
@@ -470,12 +463,14 @@ files:
470
463
  - vendor/libsodium/src/libsodium/randombytes/randombytes.c
471
464
  - vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c
472
465
  - vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c
466
+ - vendor/libsodium/src/libsodium/sodium/codecs.c
473
467
  - vendor/libsodium/src/libsodium/sodium/core.c
474
468
  - vendor/libsodium/src/libsodium/sodium/runtime.c
475
469
  - vendor/libsodium/src/libsodium/sodium/utils.c
476
470
  - vendor/libsodium/src/libsodium/sodium/version.c
477
471
  - vendor/libsodium/test/Makefile.am
478
472
  - vendor/libsodium/test/Makefile.in
473
+ - vendor/libsodium/test/constcheck.sh
479
474
  - vendor/libsodium/test/default/Makefile.am
480
475
  - vendor/libsodium/test/default/Makefile.in
481
476
  - vendor/libsodium/test/default/aead_aes256gcm.c
@@ -515,6 +510,8 @@ files:
515
510
  - vendor/libsodium/test/default/chacha20.c
516
511
  - vendor/libsodium/test/default/chacha20.exp
517
512
  - vendor/libsodium/test/default/cmptest.h
513
+ - vendor/libsodium/test/default/codecs.c
514
+ - vendor/libsodium/test/default/codecs.exp
518
515
  - vendor/libsodium/test/default/core1.c
519
516
  - vendor/libsodium/test/default/core1.exp
520
517
  - vendor/libsodium/test/default/core2.c
@@ -548,6 +545,10 @@ files:
548
545
  - vendor/libsodium/test/default/keygen.exp
549
546
  - vendor/libsodium/test/default/kx.c
550
547
  - vendor/libsodium/test/default/kx.exp
548
+ - vendor/libsodium/test/default/metamorphic.c
549
+ - vendor/libsodium/test/default/metamorphic.exp
550
+ - vendor/libsodium/test/default/misuse.c
551
+ - vendor/libsodium/test/default/misuse.exp
551
552
  - vendor/libsodium/test/default/nacl-test-wrapper.sh
552
553
  - vendor/libsodium/test/default/onetimeauth.c
553
554
  - vendor/libsodium/test/default/onetimeauth.exp
@@ -556,8 +557,8 @@ files:
556
557
  - vendor/libsodium/test/default/onetimeauth7.c
557
558
  - vendor/libsodium/test/default/onetimeauth7.exp
558
559
  - vendor/libsodium/test/default/pre.js.inc
559
- - vendor/libsodium/test/default/pwhash.c
560
- - vendor/libsodium/test/default/pwhash.exp
560
+ - vendor/libsodium/test/default/pwhash_argon2i.c
561
+ - vendor/libsodium/test/default/pwhash_argon2i.exp
561
562
  - vendor/libsodium/test/default/pwhash_argon2id.c
562
563
  - vendor/libsodium/test/default/pwhash_argon2id.exp
563
564
  - vendor/libsodium/test/default/pwhash_scrypt.c
@@ -588,6 +589,8 @@ files:
588
589
  - vendor/libsodium/test/default/secretbox_easy.exp
589
590
  - vendor/libsodium/test/default/secretbox_easy2.c
590
591
  - vendor/libsodium/test/default/secretbox_easy2.exp
592
+ - vendor/libsodium/test/default/secretstream.c
593
+ - vendor/libsodium/test/default/secretstream.exp
591
594
  - vendor/libsodium/test/default/shorthash.c
592
595
  - vendor/libsodium/test/default/shorthash.exp
593
596
  - vendor/libsodium/test/default/sign.c