rbnacl-libsodium 0.4.5 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (282) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbnacl/libsodium/version.rb +1 -1
  3. data/vendor/libsodium/AUTHORS +14 -9
  4. data/vendor/libsodium/ChangeLog +26 -0
  5. data/vendor/libsodium/LICENSE +1 -1
  6. data/vendor/libsodium/Makefile.am +1 -0
  7. data/vendor/libsodium/README.markdown +185 -46
  8. data/vendor/libsodium/THANKS +10 -0
  9. data/vendor/libsodium/builds/msvc/properties/Common.props +21 -0
  10. data/vendor/libsodium/builds/msvc/properties/DLL.props +16 -0
  11. data/vendor/libsodium/builds/msvc/properties/Debug.props +29 -0
  12. data/vendor/libsodium/builds/msvc/properties/DebugDEXE.props +21 -0
  13. data/vendor/libsodium/builds/msvc/properties/DebugDLL.props +20 -0
  14. data/vendor/libsodium/builds/msvc/properties/DebugLEXE.props +20 -0
  15. data/vendor/libsodium/builds/msvc/properties/DebugLIB.props +20 -0
  16. data/vendor/libsodium/builds/msvc/properties/DebugLTCG.props +19 -0
  17. data/vendor/libsodium/builds/msvc/properties/DebugSEXE.props +21 -0
  18. data/vendor/libsodium/builds/msvc/properties/EXE.props +17 -0
  19. data/vendor/libsodium/builds/msvc/properties/LIB.props +16 -0
  20. data/vendor/libsodium/builds/msvc/properties/LTCG.props +13 -0
  21. data/vendor/libsodium/builds/msvc/properties/Link.props +21 -0
  22. data/vendor/libsodium/builds/msvc/properties/Messages.props +15 -0
  23. data/vendor/libsodium/builds/msvc/properties/Output.props +30 -0
  24. data/vendor/libsodium/builds/msvc/properties/Release.props +41 -0
  25. data/vendor/libsodium/builds/msvc/properties/ReleaseDEXE.props +20 -0
  26. data/vendor/libsodium/builds/msvc/properties/ReleaseDLL.props +19 -0
  27. data/vendor/libsodium/builds/msvc/properties/ReleaseLEXE.props +20 -0
  28. data/vendor/libsodium/builds/msvc/properties/ReleaseLIB.props +19 -0
  29. data/vendor/libsodium/builds/msvc/properties/ReleaseLTCG.props +19 -0
  30. data/vendor/libsodium/builds/msvc/properties/ReleaseSEXE.props +20 -0
  31. data/vendor/libsodium/builds/msvc/properties/Win32.props +20 -0
  32. data/vendor/libsodium/builds/msvc/properties/x64.props +23 -0
  33. data/vendor/libsodium/builds/msvc/resource.h +0 -0
  34. data/vendor/libsodium/builds/msvc/resource.rc +0 -0
  35. data/vendor/libsodium/builds/msvc/version.h +29 -0
  36. data/vendor/libsodium/builds/msvc/vs2010/libsodium.import.props +52 -0
  37. data/vendor/libsodium/builds/msvc/vs2010/libsodium.import.xml +17 -0
  38. data/vendor/libsodium/builds/msvc/vs2010/libsodium.sln +79 -0
  39. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.props +43 -0
  40. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +345 -0
  41. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +1037 -0
  42. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.xml +15 -0
  43. data/vendor/libsodium/builds/msvc/vs2010/test/test.props +37 -0
  44. data/vendor/libsodium/builds/msvc/vs2010/test/test.runner.bat +78 -0
  45. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +220 -0
  46. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +168 -0
  47. data/vendor/libsodium/builds/msvc/vs2012/libsodium.import.props +52 -0
  48. data/vendor/libsodium/builds/msvc/vs2012/libsodium.import.xml +17 -0
  49. data/vendor/libsodium/builds/msvc/vs2012/libsodium.sln +79 -0
  50. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.props +43 -0
  51. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +345 -0
  52. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +1037 -0
  53. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.xml +15 -0
  54. data/vendor/libsodium/builds/msvc/vs2012/test/test.props +37 -0
  55. data/vendor/libsodium/builds/msvc/vs2012/test/test.runner.bat +78 -0
  56. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +220 -0
  57. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +168 -0
  58. data/vendor/libsodium/builds/msvc/vs2013/libsodium.import.props +52 -0
  59. data/vendor/libsodium/builds/msvc/vs2013/libsodium.import.xml +17 -0
  60. data/vendor/libsodium/builds/msvc/vs2013/libsodium.sln +81 -0
  61. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.props +43 -0
  62. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +345 -0
  63. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +1037 -0
  64. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.xml +15 -0
  65. data/vendor/libsodium/builds/msvc/vs2013/test/test.props +37 -0
  66. data/vendor/libsodium/builds/msvc/vs2013/test/test.runner.bat +78 -0
  67. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +220 -0
  68. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +168 -0
  69. data/vendor/libsodium/configure.ac +87 -68
  70. data/vendor/libsodium/dist-build/Makefile.am +10 -0
  71. data/vendor/libsodium/dist-build/android-arm.sh +3 -0
  72. data/vendor/libsodium/dist-build/android-armv7.sh +3 -0
  73. data/vendor/libsodium/dist-build/android-build.sh +37 -0
  74. data/vendor/libsodium/dist-build/android-mips.sh +3 -0
  75. data/vendor/libsodium/dist-build/android-x86.sh +3 -0
  76. data/vendor/libsodium/dist-build/emscripten.sh +13 -0
  77. data/vendor/libsodium/dist-build/{iphone.sh → ios.sh} +2 -2
  78. data/vendor/libsodium/dist-build/msys2-win32.sh +10 -0
  79. data/vendor/libsodium/dist-build/msys2-win64.sh +10 -0
  80. data/vendor/libsodium/libsodium.vcxproj +25 -13
  81. data/vendor/libsodium/libsodium.vcxproj.filters +60 -24
  82. data/vendor/libsodium/msvc-scripts/process.bat +3 -7
  83. data/vendor/libsodium/packaging/nuget/package.bat +13 -0
  84. data/vendor/libsodium/packaging/nuget/package.config +4 -0
  85. data/vendor/libsodium/packaging/nuget/package.gsl +255 -0
  86. data/vendor/libsodium/packaging/nuget/package.nuspec +93 -0
  87. data/vendor/libsodium/packaging/nuget/package.targets +128 -0
  88. data/vendor/libsodium/packaging/nuget/package.xml +22 -0
  89. data/vendor/libsodium/src/libsodium/Makefile.am +32 -20
  90. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.c +0 -5
  91. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/{ref → cp}/api.h +0 -1
  92. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/hmac_hmacsha256.c +110 -0
  93. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/{ref → cp}/verify_hmacsha256.c +0 -0
  94. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512_api.c +11 -0
  95. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/api.h +9 -0
  96. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/hmac_hmacsha512.c +110 -0
  97. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c +10 -0
  98. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.c +0 -5
  99. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/{ref → cp}/api.h +0 -1
  100. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.c +54 -0
  101. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/{ref → cp}/verify_hmacsha512256.c +2 -1
  102. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +94 -0
  103. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c +0 -5
  104. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/api.h +0 -1
  105. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/core_hsalsa20_api.c +0 -5
  106. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/api.h +0 -1
  107. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/core_salsa20_api.c +0 -5
  108. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/api.h +0 -1
  109. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/core_salsa2012_api.c +0 -5
  110. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/api.h +0 -1
  111. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/core_salsa208_api.c +0 -5
  112. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/api.h +0 -1
  113. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.c +15 -5
  114. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/api.h +0 -2
  115. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2.h +14 -6
  116. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +95 -0
  117. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/generichash_blake2b.c +50 -3
  118. data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +4 -10
  119. data/vendor/libsodium/src/libsodium/crypto_hash/crypto_hash.c +11 -0
  120. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/{ref → cp}/api.h +3 -1
  121. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +294 -0
  122. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256_api.c +0 -5
  123. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/{ref → cp}/api.h +3 -1
  124. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +321 -0
  125. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.c +0 -5
  126. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c +51 -127
  127. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h +12 -0
  128. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +221 -0
  129. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +209 -0
  130. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.c +0 -5
  131. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c +1 -140
  132. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/crypto_scrypt-common.c +250 -0
  133. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/crypto_scrypt.h +100 -0
  134. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/nosse/pwhash_scryptxsalsa208sha256_nosse.c +302 -0
  135. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/pbkdf2-sha256.c +94 -0
  136. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/pbkdf2-sha256.h +45 -0
  137. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/pwhash_scryptxsalsa208sha256.c +172 -0
  138. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/scrypt_platform.c +96 -0
  139. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sse/pwhash_scryptxsalsa208sha256_sse.c +391 -0
  140. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sysendian.h +146 -0
  141. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/api.h +2 -2
  142. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +39 -9
  143. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/api.h +2 -2
  144. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c +6 -0
  145. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +94 -0
  146. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/api.h +0 -1
  147. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.c +3 -3
  148. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/api.h +0 -1
  149. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c +3 -3
  150. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/api.h +0 -1
  151. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_scalarmult_base.c +6 -0
  152. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +5 -3
  153. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +28 -18
  154. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +14 -9
  155. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c +0 -5
  156. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/api.h +0 -1
  157. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c +0 -5
  158. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +21 -21
  159. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/api.h +0 -1
  160. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128.h +6 -0
  161. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +42 -42
  162. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr_api.c +0 -5
  163. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-be.h +4 -4
  164. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-le.h +4 -4
  165. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c +15 -14
  166. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/api.h +0 -1
  167. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h +1 -1
  168. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/stream_aes256estream_api.c +0 -5
  169. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S +153 -160
  170. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/api.h +2 -5
  171. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +9 -3
  172. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +9 -3
  173. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20_api.c +0 -5
  174. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/api.h +0 -1
  175. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012_api.c +0 -5
  176. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/api.h +0 -1
  177. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208_api.c +0 -5
  178. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/api.h +0 -1
  179. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20_api.c +0 -5
  180. data/vendor/libsodium/src/libsodium/crypto_verify/64/ref/api.h +2 -0
  181. data/vendor/libsodium/src/libsodium/crypto_verify/64/ref/verify_64.c +72 -0
  182. data/vendor/libsodium/src/libsodium/crypto_verify/64/verify_64_api.c +6 -0
  183. data/vendor/libsodium/src/libsodium/include/Makefile.am +6 -7
  184. data/vendor/libsodium/src/libsodium/include/sodium.h +4 -3
  185. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth.h +3 -0
  186. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h +31 -9
  187. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h +58 -0
  188. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h +26 -9
  189. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +13 -0
  190. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +38 -24
  191. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_hsalsa20.h +6 -11
  192. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa20.h +6 -11
  193. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa2012.h +6 -11
  194. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa208.h +6 -11
  195. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash.h +7 -8
  196. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +36 -16
  197. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash.h +13 -4
  198. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +25 -7
  199. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +25 -7
  200. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +3 -0
  201. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +5 -5
  202. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_donna.h +3 -0
  203. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptxsalsa208sha256.h +48 -0
  204. data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h +31 -0
  205. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +17 -0
  206. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +21 -11
  207. data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash.h +3 -0
  208. data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash_siphash24.h +8 -7
  209. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +3 -0
  210. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +16 -17
  211. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +18 -14
  212. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h +3 -0
  213. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h +18 -18
  214. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes256estream.h +19 -18
  215. data/vendor/libsodium/src/libsodium/include/sodium/{crypto_stream_salsa20.h.in → crypto_stream_salsa20.h} +8 -19
  216. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h +8 -8
  217. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h +8 -8
  218. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +10 -11
  219. data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_16.h +1 -4
  220. data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_32.h +1 -4
  221. data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_64.h +22 -0
  222. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +3 -0
  223. data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +27 -0
  224. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +15 -3
  225. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +3 -1
  226. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +18 -7
  227. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +57 -9
  228. data/vendor/libsodium/src/libsodium/sodium/compat.c +62 -0
  229. data/vendor/libsodium/src/libsodium/sodium/core.c +2 -0
  230. data/vendor/libsodium/src/libsodium/sodium/runtime.c +134 -0
  231. data/vendor/libsodium/src/libsodium/sodium/utils.c +100 -8
  232. data/vendor/libsodium/test/default/Makefile.am +63 -3
  233. data/vendor/libsodium/test/default/auth6.c +21 -0
  234. data/vendor/libsodium/test/default/auth6.exp +8 -0
  235. data/vendor/libsodium/test/default/auth7.c +37 -0
  236. data/vendor/libsodium/test/default/auth7.exp +0 -0
  237. data/vendor/libsodium/test/default/box_easy.c +59 -0
  238. data/vendor/libsodium/test/default/box_easy.exp +19 -0
  239. data/vendor/libsodium/test/default/box_easy2.c +31 -0
  240. data/vendor/libsodium/test/default/box_easy2.exp +1 -0
  241. data/vendor/libsodium/test/default/cmptest.h +7 -1
  242. data/vendor/libsodium/test/default/generichash3.c +36 -0
  243. data/vendor/libsodium/test/default/generichash3.exp +64 -0
  244. data/vendor/libsodium/test/default/pwhash.c +59 -0
  245. data/vendor/libsodium/test/default/pwhash.exp +2 -0
  246. data/vendor/libsodium/test/default/scalarmult7.c +0 -2
  247. data/vendor/libsodium/test/default/scalarmult8.c +0 -2
  248. data/vendor/libsodium/test/default/secretbox_easy.c +51 -0
  249. data/vendor/libsodium/test/default/secretbox_easy.exp +19 -0
  250. data/vendor/libsodium/test/default/secretbox_easy2.c +27 -0
  251. data/vendor/libsodium/test/default/secretbox_easy2.exp +1 -0
  252. data/vendor/libsodium/test/default/sign.c +1106 -0
  253. data/vendor/libsodium/test/default/sign.exp +3 -0
  254. data/vendor/libsodium/test/default/sodium_utils.c +8 -0
  255. data/vendor/libsodium/test/default/sodium_utils.exp +2 -1
  256. data/vendor/libsodium/test/default/sodium_version.c +1 -1
  257. data/vendor/libsodium/test/default/verify1.c +34 -0
  258. data/vendor/libsodium/test/default/verify1.exp +6 -0
  259. metadata +138 -33
  260. data/vendor/libsodium/dist-build/android.sh +0 -48
  261. data/vendor/libsodium/dist-build/msys.sh +0 -9
  262. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/hmac_hmacsha256.c +0 -83
  263. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/hmac_hmacsha512256.c +0 -86
  264. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/ref/hash_sha256.c +0 -69
  265. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/ref/hash_sha512.c +0 -71
  266. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/checksum +0 -1
  267. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/hashblocks_sha256_api.c +0 -16
  268. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/api.h +0 -9
  269. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/blocks_sha256.c +0 -212
  270. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/checksum +0 -1
  271. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/hashblocks_sha512_api.c +0 -16
  272. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/api.h +0 -9
  273. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/blocks_sha512.c +0 -239
  274. data/vendor/libsodium/src/libsodium/crypto_hashblocks/try.c +0 -78
  275. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/api.h +0 -8
  276. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305_53.c +0 -1661
  277. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/verify_poly1305_53.c +0 -10
  278. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h +0 -772
  279. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha256.h +0 -32
  280. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha512.h +0 -32
  281. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_53.h +0 -34
  282. data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in +0 -44
@@ -9,6 +9,5 @@
9
9
  #define crypto_stream_KEYBYTES crypto_stream_aes256estream_KEYBYTES
10
10
  #define crypto_stream_NONCEBYTES crypto_stream_aes256estream_NONCEBYTES
11
11
  #define crypto_stream_BEFORENMBYTES crypto_stream_aes256estream_BEFORENMBYTES
12
- #define crypto_stream_PRIMITIVE "aes256estream"
13
12
  #define crypto_stream_IMPLEMENTATION crypto_stream_aes256estream_IMPLEMENTATION
14
13
  #define crypto_stream_VERSION crypto_stream_aes256estream_VERSION
@@ -12,7 +12,7 @@ typedef uint32_t u32;
12
12
  #define Nb 4
13
13
 
14
14
  #pragma pack(push, 1)
15
- __attribute__((aligned(64))) typedef struct ECRYPT_ctx
15
+ typedef struct ECRYPT_ctx
16
16
  {
17
17
  u32 round_key[Nr+1][4];
18
18
  u32 counter[4];
@@ -14,8 +14,3 @@ size_t
14
14
  crypto_stream_aes256estream_beforenmbytes(void) {
15
15
  return crypto_stream_aes256estream_BEFORENMBYTES;
16
16
  }
17
-
18
- const char *
19
- crypto_stream_aes256estream_primitive(void) {
20
- return "aes256estream";
21
- }
@@ -3,21 +3,25 @@
3
3
  .text
4
4
  .p2align 5
5
5
 
6
+ .globl crypto_stream_salsa20
6
7
  .globl _crypto_stream_salsa20
7
- .globl crypto_stream_salsa20
8
- _crypto_stream_salsa20:
8
+ #ifdef __ELF__
9
+ .type crypto_stream_salsa20, @function
10
+ .type _crypto_stream_salsa20, @function
11
+ #endif
9
12
  crypto_stream_salsa20:
13
+ _crypto_stream_salsa20:
10
14
  mov %rsp,%r11
11
15
  and $31,%r11
12
- add $480,%r11
16
+ add $512,%r11
13
17
  sub %r11,%rsp
14
- movq %r11,352(%rsp)
15
- movq %r12,360(%rsp)
16
- movq %r13,368(%rsp)
17
- movq %r14,376(%rsp)
18
- movq %r15,384(%rsp)
19
- movq %rbx,392(%rsp)
20
- movq %rbp,400(%rsp)
18
+ movq %r11,416(%rsp)
19
+ movq %r12,424(%rsp)
20
+ movq %r13,432(%rsp)
21
+ movq %r14,440(%rsp)
22
+ movq %r15,448(%rsp)
23
+ movq %rbx,456(%rsp)
24
+ movq %rbp,464(%rsp)
21
25
  mov %rsi,%r9
22
26
  mov %rdi,%rdi
23
27
  mov %rdi,%rsi
@@ -25,7 +29,6 @@ mov %rdx,%rdx
25
29
  mov %rcx,%r10
26
30
  cmp $0,%r9
27
31
  jbe ._done
28
-
29
32
  mov $0,%rax
30
33
  mov %r9,%rcx
31
34
  rep stosb
@@ -35,21 +38,26 @@ jmp ._start
35
38
  .text
36
39
  .p2align 5
37
40
 
41
+ .globl crypto_stream_salsa20_xor
38
42
  .globl _crypto_stream_salsa20_xor
39
- .globl crypto_stream_salsa20_xor
40
- _crypto_stream_salsa20_xor:
43
+ #ifdef __ELF__
44
+ .type crypto_stream_salsa20_xor, @function
45
+ .type _crypto_stream_salsa20_xor, @function
46
+ #endif
41
47
  crypto_stream_salsa20_xor:
48
+ _crypto_stream_salsa20_xor:
49
+
42
50
  mov %rsp,%r11
43
51
  and $31,%r11
44
- add $480,%r11
52
+ add $512,%r11
45
53
  sub %r11,%rsp
46
- movq %r11,352(%rsp)
47
- movq %r12,360(%rsp)
48
- movq %r13,368(%rsp)
49
- movq %r14,376(%rsp)
50
- movq %r15,384(%rsp)
51
- movq %rbx,392(%rsp)
52
- movq %rbp,400(%rsp)
54
+ movq %r11,416(%rsp)
55
+ movq %r12,424(%rsp)
56
+ movq %r13,432(%rsp)
57
+ movq %r14,440(%rsp)
58
+ movq %r15,448(%rsp)
59
+ movq %rbx,456(%rsp)
60
+ movq %rbp,464(%rsp)
53
61
  mov %rdi,%rdi
54
62
  mov %rsi,%rsi
55
63
  mov %rdx,%r9
@@ -63,125 +71,119 @@ movl 20(%r10),%ecx
63
71
  movl 0(%r10),%r8d
64
72
  movl 0(%rdx),%eax
65
73
  movl 16(%r10),%r11d
66
- movl %ecx,0(%rsp)
67
- movl %r8d,4+0(%rsp)
68
- movl %eax,8+0(%rsp)
69
- movl %r11d,12+0(%rsp)
74
+ movl %ecx,64(%rsp)
75
+ movl %r8d,4+64(%rsp)
76
+ movl %eax,8+64(%rsp)
77
+ movl %r11d,12+64(%rsp)
70
78
  mov $0,%rcx
71
79
  movl 24(%r10),%r8d
72
80
  movl 4(%r10),%eax
73
81
  movl 4(%rdx),%edx
74
- movl %ecx,16(%rsp)
75
- movl %r8d,4+16(%rsp)
76
- movl %eax,8+16(%rsp)
77
- movl %edx,12+16(%rsp)
82
+ movq %rcx,472(%rsp)
83
+ movl %ecx,80(%rsp)
84
+ movl %r8d,4+80(%rsp)
85
+ movl %eax,8+80(%rsp)
86
+ movl %edx,12+80(%rsp)
78
87
  movl 12(%r10),%edx
79
88
  mov $0,%rcx
80
89
  movl 28(%r10),%r8d
81
90
  movl 8(%r10),%eax
82
- movl %edx,32(%rsp)
83
- movl %ecx,4+32(%rsp)
84
- movl %r8d,8+32(%rsp)
85
- movl %eax,12+32(%rsp)
91
+ movl %edx,96(%rsp)
92
+ movl %ecx,4+96(%rsp)
93
+ movl %r8d,8+96(%rsp)
94
+ movl %eax,12+96(%rsp)
86
95
  mov $1634760805,%rdx
87
96
  mov $857760878,%rcx
88
97
  mov $2036477234,%r8
89
98
  mov $1797285236,%rax
90
- movl %edx,48(%rsp)
91
- movl %ecx,4+48(%rsp)
92
- movl %r8d,8+48(%rsp)
93
- movl %eax,12+48(%rsp)
99
+ movl %edx,112(%rsp)
100
+ movl %ecx,4+112(%rsp)
101
+ movl %r8d,8+112(%rsp)
102
+ movl %eax,12+112(%rsp)
94
103
  cmp $256,%r9
95
104
  jb ._bytesbetween1and255
96
-
97
- movdqa 48(%rsp),%xmm0
105
+ movdqa 112(%rsp),%xmm0
98
106
  pshufd $0x55,%xmm0,%xmm1
99
107
  pshufd $0xaa,%xmm0,%xmm2
100
108
  pshufd $0xff,%xmm0,%xmm3
101
109
  pshufd $0x00,%xmm0,%xmm0
102
- movdqa %xmm1,64(%rsp)
103
- movdqa %xmm2,80(%rsp)
104
- movdqa %xmm3,96(%rsp)
105
- movdqa %xmm0,112(%rsp)
106
- movdqa 0(%rsp),%xmm0
107
- pshufd $0xaa,%xmm0,%xmm1
108
- pshufd $0xff,%xmm0,%xmm2
109
- pshufd $0x00,%xmm0,%xmm3
110
- pshufd $0x55,%xmm0,%xmm0
111
110
  movdqa %xmm1,128(%rsp)
112
111
  movdqa %xmm2,144(%rsp)
113
112
  movdqa %xmm3,160(%rsp)
114
113
  movdqa %xmm0,176(%rsp)
115
- movdqa 16(%rsp),%xmm0
114
+ movdqa 64(%rsp),%xmm0
115
+ pshufd $0xaa,%xmm0,%xmm1
116
+ pshufd $0xff,%xmm0,%xmm2
117
+ pshufd $0x00,%xmm0,%xmm3
118
+ pshufd $0x55,%xmm0,%xmm0
119
+ movdqa %xmm1,192(%rsp)
120
+ movdqa %xmm2,208(%rsp)
121
+ movdqa %xmm3,224(%rsp)
122
+ movdqa %xmm0,240(%rsp)
123
+ movdqa 80(%rsp),%xmm0
116
124
  pshufd $0xff,%xmm0,%xmm1
117
125
  pshufd $0x55,%xmm0,%xmm2
118
126
  pshufd $0xaa,%xmm0,%xmm0
119
- movdqa %xmm1,192(%rsp)
120
- movdqa %xmm2,208(%rsp)
121
- movdqa %xmm0,224(%rsp)
122
- movdqa 32(%rsp),%xmm0
127
+ movdqa %xmm1,256(%rsp)
128
+ movdqa %xmm2,272(%rsp)
129
+ movdqa %xmm0,288(%rsp)
130
+ movdqa 96(%rsp),%xmm0
123
131
  pshufd $0x00,%xmm0,%xmm1
124
132
  pshufd $0xaa,%xmm0,%xmm2
125
133
  pshufd $0xff,%xmm0,%xmm0
126
- movdqa %xmm1,240(%rsp)
127
- movdqa %xmm2,256(%rsp)
128
- movdqa %xmm0,272(%rsp)
134
+ movdqa %xmm1,304(%rsp)
135
+ movdqa %xmm2,320(%rsp)
136
+ movdqa %xmm0,336(%rsp)
129
137
 
130
138
  ._bytesatleast256:
131
- movl 16(%rsp),%edx
132
- movl 4+32(%rsp),%ecx
133
- movl %edx,288(%rsp)
134
- movl %ecx,304(%rsp)
139
+ movq 472(%rsp),%rdx
140
+ mov %rdx,%rcx
141
+ shr $32,%rcx
142
+ movl %edx,352(%rsp)
143
+ movl %ecx,368(%rsp)
135
144
  add $1,%rdx
136
- shl $32,%rcx
137
- add %rcx,%rdx
138
145
  mov %rdx,%rcx
139
146
  shr $32,%rcx
140
- movl %edx,4+288(%rsp)
141
- movl %ecx,4+304(%rsp)
147
+ movl %edx,4+352(%rsp)
148
+ movl %ecx,4+368(%rsp)
142
149
  add $1,%rdx
143
- shl $32,%rcx
144
- add %rcx,%rdx
145
150
  mov %rdx,%rcx
146
151
  shr $32,%rcx
147
- movl %edx,8+288(%rsp)
148
- movl %ecx,8+304(%rsp)
152
+ movl %edx,8+352(%rsp)
153
+ movl %ecx,8+368(%rsp)
149
154
  add $1,%rdx
150
- shl $32,%rcx
151
- add %rcx,%rdx
152
155
  mov %rdx,%rcx
153
156
  shr $32,%rcx
154
- movl %edx,12+288(%rsp)
155
- movl %ecx,12+304(%rsp)
157
+ movl %edx,12+352(%rsp)
158
+ movl %ecx,12+368(%rsp)
156
159
  add $1,%rdx
157
- shl $32,%rcx
158
- add %rcx,%rdx
159
160
  mov %rdx,%rcx
160
161
  shr $32,%rcx
161
- movl %edx,16(%rsp)
162
- movl %ecx,4+32(%rsp)
163
- movq %r9,408(%rsp)
162
+ movl %edx,80(%rsp)
163
+ movl %ecx,4+96(%rsp)
164
+ movq %rdx,472(%rsp)
165
+ movq %r9,480(%rsp)
164
166
  mov $20,%rdx
165
- movdqa 64(%rsp),%xmm0
166
- movdqa 80(%rsp),%xmm1
167
- movdqa 96(%rsp),%xmm2
168
- movdqa 256(%rsp),%xmm3
169
- movdqa 272(%rsp),%xmm4
170
- movdqa 128(%rsp),%xmm5
171
- movdqa 144(%rsp),%xmm6
172
- movdqa 176(%rsp),%xmm7
173
- movdqa 192(%rsp),%xmm8
174
- movdqa 208(%rsp),%xmm9
175
- movdqa 224(%rsp),%xmm10
176
- movdqa 304(%rsp),%xmm11
177
- movdqa 112(%rsp),%xmm12
178
- movdqa 160(%rsp),%xmm13
179
- movdqa 240(%rsp),%xmm14
180
- movdqa 288(%rsp),%xmm15
167
+ movdqa 128(%rsp),%xmm0
168
+ movdqa 144(%rsp),%xmm1
169
+ movdqa 160(%rsp),%xmm2
170
+ movdqa 320(%rsp),%xmm3
171
+ movdqa 336(%rsp),%xmm4
172
+ movdqa 192(%rsp),%xmm5
173
+ movdqa 208(%rsp),%xmm6
174
+ movdqa 240(%rsp),%xmm7
175
+ movdqa 256(%rsp),%xmm8
176
+ movdqa 272(%rsp),%xmm9
177
+ movdqa 288(%rsp),%xmm10
178
+ movdqa 368(%rsp),%xmm11
179
+ movdqa 176(%rsp),%xmm12
180
+ movdqa 224(%rsp),%xmm13
181
+ movdqa 304(%rsp),%xmm14
182
+ movdqa 352(%rsp),%xmm15
181
183
 
182
184
  ._mainloop1:
183
- movdqa %xmm1,320(%rsp)
184
- movdqa %xmm2,336(%rsp)
185
+ movdqa %xmm1,384(%rsp)
186
+ movdqa %xmm2,400(%rsp)
185
187
  movdqa %xmm13,%xmm1
186
188
  paddd %xmm12,%xmm1
187
189
  movdqa %xmm1,%xmm2
@@ -231,8 +233,8 @@ pslld $18,%xmm1
231
233
  pxor %xmm1,%xmm12
232
234
  psrld $14,%xmm2
233
235
  pxor %xmm2,%xmm12
234
- movdqa 320(%rsp),%xmm1
235
- movdqa %xmm12,320(%rsp)
236
+ movdqa 384(%rsp),%xmm1
237
+ movdqa %xmm12,384(%rsp)
236
238
  movdqa %xmm9,%xmm2
237
239
  paddd %xmm7,%xmm2
238
240
  movdqa %xmm2,%xmm12
@@ -247,8 +249,8 @@ pslld $7,%xmm2
247
249
  pxor %xmm2,%xmm3
248
250
  psrld $25,%xmm12
249
251
  pxor %xmm12,%xmm3
250
- movdqa 336(%rsp),%xmm2
251
- movdqa %xmm0,336(%rsp)
252
+ movdqa 400(%rsp),%xmm2
253
+ movdqa %xmm0,400(%rsp)
252
254
  movdqa %xmm6,%xmm0
253
255
  paddd %xmm2,%xmm0
254
256
  movdqa %xmm0,%xmm12
@@ -291,8 +293,8 @@ pslld $18,%xmm0
291
293
  pxor %xmm0,%xmm1
292
294
  psrld $14,%xmm12
293
295
  pxor %xmm12,%xmm1
294
- movdqa 320(%rsp),%xmm0
295
- movdqa %xmm1,320(%rsp)
296
+ movdqa 384(%rsp),%xmm0
297
+ movdqa %xmm1,384(%rsp)
296
298
  movdqa %xmm4,%xmm1
297
299
  paddd %xmm0,%xmm1
298
300
  movdqa %xmm1,%xmm12
@@ -307,8 +309,8 @@ pslld $18,%xmm1
307
309
  pxor %xmm1,%xmm2
308
310
  psrld $14,%xmm12
309
311
  pxor %xmm12,%xmm2
310
- movdqa 336(%rsp),%xmm12
311
- movdqa %xmm2,336(%rsp)
312
+ movdqa 400(%rsp),%xmm12
313
+ movdqa %xmm2,400(%rsp)
312
314
  movdqa %xmm14,%xmm1
313
315
  paddd %xmm12,%xmm1
314
316
  movdqa %xmm1,%xmm2
@@ -351,8 +353,8 @@ pslld $18,%xmm1
351
353
  pxor %xmm1,%xmm0
352
354
  psrld $14,%xmm2
353
355
  pxor %xmm2,%xmm0
354
- movdqa 320(%rsp),%xmm1
355
- movdqa %xmm0,320(%rsp)
356
+ movdqa 384(%rsp),%xmm1
357
+ movdqa %xmm0,384(%rsp)
356
358
  movdqa %xmm8,%xmm0
357
359
  paddd %xmm14,%xmm0
358
360
  movdqa %xmm0,%xmm2
@@ -367,8 +369,8 @@ pslld $7,%xmm0
367
369
  pxor %xmm0,%xmm6
368
370
  psrld $25,%xmm2
369
371
  pxor %xmm2,%xmm6
370
- movdqa 336(%rsp),%xmm2
371
- movdqa %xmm12,336(%rsp)
372
+ movdqa 400(%rsp),%xmm2
373
+ movdqa %xmm12,400(%rsp)
372
374
  movdqa %xmm3,%xmm0
373
375
  paddd %xmm2,%xmm0
374
376
  movdqa %xmm0,%xmm12
@@ -418,15 +420,14 @@ pslld $18,%xmm0
418
420
  pxor %xmm0,%xmm2
419
421
  psrld $14,%xmm12
420
422
  pxor %xmm12,%xmm2
421
- movdqa 320(%rsp),%xmm12
422
- movdqa 336(%rsp),%xmm0
423
+ movdqa 384(%rsp),%xmm12
424
+ movdqa 400(%rsp),%xmm0
423
425
  sub $2,%rdx
424
426
  ja ._mainloop1
425
-
426
- paddd 112(%rsp),%xmm12
427
- paddd 176(%rsp),%xmm7
428
- paddd 224(%rsp),%xmm10
429
- paddd 272(%rsp),%xmm4
427
+ paddd 176(%rsp),%xmm12
428
+ paddd 240(%rsp),%xmm7
429
+ paddd 288(%rsp),%xmm10
430
+ paddd 336(%rsp),%xmm4
430
431
  movd %xmm12,%rdx
431
432
  movd %xmm7,%rcx
432
433
  movd %xmm10,%r8
@@ -487,10 +488,10 @@ movl %edx,192(%rdi)
487
488
  movl %ecx,196(%rdi)
488
489
  movl %r8d,200(%rdi)
489
490
  movl %r9d,204(%rdi)
490
- paddd 240(%rsp),%xmm14
491
- paddd 64(%rsp),%xmm0
492
- paddd 128(%rsp),%xmm5
493
- paddd 192(%rsp),%xmm8
491
+ paddd 304(%rsp),%xmm14
492
+ paddd 128(%rsp),%xmm0
493
+ paddd 192(%rsp),%xmm5
494
+ paddd 256(%rsp),%xmm8
494
495
  movd %xmm14,%rdx
495
496
  movd %xmm0,%rcx
496
497
  movd %xmm5,%r8
@@ -551,10 +552,10 @@ movl %edx,208(%rdi)
551
552
  movl %ecx,212(%rdi)
552
553
  movl %r8d,216(%rdi)
553
554
  movl %r9d,220(%rdi)
554
- paddd 288(%rsp),%xmm15
555
- paddd 304(%rsp),%xmm11
556
- paddd 80(%rsp),%xmm1
557
- paddd 144(%rsp),%xmm6
555
+ paddd 352(%rsp),%xmm15
556
+ paddd 368(%rsp),%xmm11
557
+ paddd 144(%rsp),%xmm1
558
+ paddd 208(%rsp),%xmm6
558
559
  movd %xmm15,%rdx
559
560
  movd %xmm11,%rcx
560
561
  movd %xmm1,%r8
@@ -615,10 +616,10 @@ movl %edx,224(%rdi)
615
616
  movl %ecx,228(%rdi)
616
617
  movl %r8d,232(%rdi)
617
618
  movl %r9d,236(%rdi)
618
- paddd 160(%rsp),%xmm13
619
- paddd 208(%rsp),%xmm9
620
- paddd 256(%rsp),%xmm3
621
- paddd 96(%rsp),%xmm2
619
+ paddd 224(%rsp),%xmm13
620
+ paddd 272(%rsp),%xmm9
621
+ paddd 320(%rsp),%xmm3
622
+ paddd 160(%rsp),%xmm2
622
623
  movd %xmm13,%rdx
623
624
  movd %xmm9,%rcx
624
625
  movd %xmm3,%r8
@@ -679,33 +680,31 @@ movl %edx,240(%rdi)
679
680
  movl %ecx,244(%rdi)
680
681
  movl %r8d,248(%rdi)
681
682
  movl %r9d,252(%rdi)
682
- movq 408(%rsp),%r9
683
+ movq 480(%rsp),%r9
683
684
  sub $256,%r9
684
685
  add $256,%rsi
685
686
  add $256,%rdi
686
687
  cmp $256,%r9
687
688
  jae ._bytesatleast256
688
-
689
689
  cmp $0,%r9
690
690
  jbe ._done
691
691
 
692
692
  ._bytesbetween1and255:
693
693
  cmp $64,%r9
694
694
  jae ._nocopy
695
-
696
695
  mov %rdi,%rdx
697
- leaq 416(%rsp),%rdi
696
+ leaq 0(%rsp),%rdi
698
697
  mov %r9,%rcx
699
698
  rep movsb
700
- leaq 416(%rsp),%rdi
701
- leaq 416(%rsp),%rsi
699
+ leaq 0(%rsp),%rdi
700
+ leaq 0(%rsp),%rsi
702
701
 
703
702
  ._nocopy:
704
- movq %r9,408(%rsp)
705
- movdqa 48(%rsp),%xmm0
706
- movdqa 0(%rsp),%xmm1
707
- movdqa 16(%rsp),%xmm2
708
- movdqa 32(%rsp),%xmm3
703
+ movq %r9,480(%rsp)
704
+ movdqa 112(%rsp),%xmm0
705
+ movdqa 64(%rsp),%xmm1
706
+ movdqa 80(%rsp),%xmm2
707
+ movdqa 96(%rsp),%xmm3
709
708
  movdqa %xmm1,%xmm4
710
709
  mov $20,%rcx
711
710
 
@@ -837,11 +836,10 @@ pxor %xmm5,%xmm0
837
836
  pshufd $0x39,%xmm3,%xmm3
838
837
  pxor %xmm6,%xmm0
839
838
  ja ._mainloop2
840
-
841
- paddd 48(%rsp),%xmm0
842
- paddd 0(%rsp),%xmm1
843
- paddd 16(%rsp),%xmm2
844
- paddd 32(%rsp),%xmm3
839
+ paddd 112(%rsp),%xmm0
840
+ paddd 64(%rsp),%xmm1
841
+ paddd 80(%rsp),%xmm2
842
+ paddd 96(%rsp),%xmm3
845
843
  movd %xmm0,%rcx
846
844
  movd %xmm1,%r8
847
845
  movd %xmm2,%r9
@@ -902,22 +900,17 @@ movl %ecx,60(%rdi)
902
900
  movl %r8d,44(%rdi)
903
901
  movl %r9d,28(%rdi)
904
902
  movl %eax,12(%rdi)
905
- movq 408(%rsp),%r9
906
- movl 16(%rsp),%ecx
907
- movl 4+32(%rsp),%r8d
903
+ movq 480(%rsp),%r9
904
+ movq 472(%rsp),%rcx
908
905
  add $1,%rcx
909
- shl $32,%r8
910
- add %r8,%rcx
911
906
  mov %rcx,%r8
912
907
  shr $32,%r8
913
- movl %ecx,16(%rsp)
914
- movl %r8d,4+32(%rsp)
908
+ movl %ecx,80(%rsp)
909
+ movl %r8d,4+96(%rsp)
910
+ movq %rcx,472(%rsp)
915
911
  cmp $64,%r9
916
-
917
912
  ja ._bytesatleast65
918
-
919
913
  jae ._bytesatleast64
920
-
921
914
  mov %rdi,%rsi
922
915
  mov %rdx,%rdi
923
916
  mov %r9,%rcx
@@ -925,16 +918,16 @@ rep movsb
925
918
 
926
919
  ._bytesatleast64:
927
920
  ._done:
928
- movq 352(%rsp),%r11
929
- movq 360(%rsp),%r12
930
- movq 368(%rsp),%r13
931
- movq 376(%rsp),%r14
932
- movq 384(%rsp),%r15
933
- movq 392(%rsp),%rbx
934
- movq 400(%rsp),%rbp
921
+ movq 416(%rsp),%r11
922
+ movq 424(%rsp),%r12
923
+ movq 432(%rsp),%r13
924
+ movq 440(%rsp),%r14
925
+ movq 448(%rsp),%r15
926
+ movq 456(%rsp),%rbx
927
+ movq 464(%rsp),%rbp
935
928
  add %r11,%rsp
936
929
  xor %rax,%rax
937
- xor %rdx,%rdx
930
+ mov %rsi,%rdx
938
931
  ret
939
932
 
940
933
  ._bytesatleast65: