rbnacl-libsodium 0.4.5a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +35 -0
  3. data/.gitmodules +3 -0
  4. data/CHANGES.md +3 -0
  5. data/Gemfile +6 -0
  6. data/LICENSE +21 -0
  7. data/README.md +23 -0
  8. data/Rakefile +1 -0
  9. data/ext/rbnacl/extconf.rb +30 -0
  10. data/lib/rbnacl/libsodium.rb +11 -0
  11. data/lib/rbnacl/libsodium/version.rb +5 -0
  12. data/rbnacl-libsodium.gemspec +25 -0
  13. data/vendor/libsodium/AUTHORS +101 -0
  14. data/vendor/libsodium/ChangeLog +68 -0
  15. data/vendor/libsodium/LICENSE +16 -0
  16. data/vendor/libsodium/Makefile.am +20 -0
  17. data/vendor/libsodium/README +1 -0
  18. data/vendor/libsodium/README.markdown +246 -0
  19. data/vendor/libsodium/THANKS +17 -0
  20. data/vendor/libsodium/autogen.sh +16 -0
  21. data/vendor/libsodium/configure.ac +405 -0
  22. data/vendor/libsodium/dist-build/android.sh +48 -0
  23. data/vendor/libsodium/dist-build/iphone.sh +16 -0
  24. data/vendor/libsodium/dist-build/msys.sh +9 -0
  25. data/vendor/libsodium/libsodium.pc.in +11 -0
  26. data/vendor/libsodium/libsodium.sln +38 -0
  27. data/vendor/libsodium/libsodium.vcxproj +508 -0
  28. data/vendor/libsodium/libsodium.vcxproj.filters +569 -0
  29. data/vendor/libsodium/logo.png +0 -0
  30. data/vendor/libsodium/m4/ax_check_compile_flag.m4 +73 -0
  31. data/vendor/libsodium/m4/ax_check_gnu_make.m4 +78 -0
  32. data/vendor/libsodium/m4/ax_check_link_flag.m4 +72 -0
  33. data/vendor/libsodium/m4/ld-output-def.m4 +29 -0
  34. data/vendor/libsodium/m4/pkg.m4 +214 -0
  35. data/vendor/libsodium/msvc-scripts/Makefile.am +4 -0
  36. data/vendor/libsodium/msvc-scripts/process.bat +8 -0
  37. data/vendor/libsodium/msvc-scripts/rep.vbs +12 -0
  38. data/vendor/libsodium/msvc-scripts/sodium.props +25 -0
  39. data/vendor/libsodium/src/Makefile.am +3 -0
  40. data/vendor/libsodium/src/libsodium/Makefile.am +232 -0
  41. data/vendor/libsodium/src/libsodium/crypto_auth/crypto_auth.c +34 -0
  42. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.c +16 -0
  43. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/checksum +1 -0
  44. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/api.h +10 -0
  45. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/hmac_hmacsha256.c +83 -0
  46. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/verify_hmacsha256.c +9 -0
  47. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.c +16 -0
  48. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/checksum +1 -0
  49. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/api.h +10 -0
  50. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/hmac_hmacsha512256.c +86 -0
  51. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/verify_hmacsha512256.c +9 -0
  52. data/vendor/libsodium/src/libsodium/crypto_auth/try.c +119 -0
  53. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box.c +95 -0
  54. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c +41 -0
  55. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/checksum +1 -0
  56. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c +22 -0
  57. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/api.h +19 -0
  58. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c +19 -0
  59. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c +27 -0
  60. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c +12 -0
  61. data/vendor/libsodium/src/libsodium/crypto_box/try.c +195 -0
  62. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/checksum +1 -0
  63. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/core_hsalsa20_api.c +26 -0
  64. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/api.h +11 -0
  65. data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.c +108 -0
  66. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/checksum +1 -0
  67. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/core_salsa20_api.c +26 -0
  68. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/api.h +11 -0
  69. data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/core_salsa20.c +134 -0
  70. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/checksum +1 -0
  71. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/core_salsa2012_api.c +26 -0
  72. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/api.h +11 -0
  73. data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/core_salsa2012.c +134 -0
  74. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/checksum +1 -0
  75. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/core_salsa208_api.c +26 -0
  76. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/api.h +11 -0
  77. data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/core_salsa208.c +134 -0
  78. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.c +31 -0
  79. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/api.h +4 -0
  80. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2-impl.h +132 -0
  81. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2.h +169 -0
  82. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +364 -0
  83. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2s-ref.c +355 -0
  84. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/generichash_blake2b.c +61 -0
  85. data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +84 -0
  86. data/vendor/libsodium/src/libsodium/crypto_hash/crypto_hash.c +9 -0
  87. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/checksum +1 -0
  88. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256_api.c +11 -0
  89. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/ref/api.h +8 -0
  90. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/ref/hash_sha256.c +69 -0
  91. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/checksum +1 -0
  92. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.c +11 -0
  93. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/ref/api.h +8 -0
  94. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/ref/hash_sha512.c +71 -0
  95. data/vendor/libsodium/src/libsodium/crypto_hash/try.c +76 -0
  96. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/checksum +1 -0
  97. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/hashblocks_sha256_api.c +16 -0
  98. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/api.h +9 -0
  99. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/blocks_sha256.c +212 -0
  100. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/checksum +1 -0
  101. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/hashblocks_sha512_api.c +16 -0
  102. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/api.h +9 -0
  103. data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/blocks_sha512.c +239 -0
  104. data/vendor/libsodium/src/libsodium/crypto_hashblocks/try.c +78 -0
  105. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.c +34 -0
  106. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/api.h +8 -0
  107. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305_53.c +1661 -0
  108. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/verify_poly1305_53.c +10 -0
  109. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/api.h +8 -0
  110. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c +151 -0
  111. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h +772 -0
  112. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/verify_poly1305_donna.c +10 -0
  113. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c +36 -0
  114. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.c +16 -0
  115. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c +152 -0
  116. data/vendor/libsodium/src/libsodium/crypto_scalarmult/crypto_scalarmult.c +34 -0
  117. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/checksum +1 -0
  118. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/api.h +9 -0
  119. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c +13 -0
  120. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +426 -0
  121. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/api.h +8 -0
  122. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/base_curve25519_ref.c +20 -0
  123. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/smult_curve25519_ref.c +268 -0
  124. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519_api.c +14 -0
  125. data/vendor/libsodium/src/libsodium/crypto_scalarmult/try.c +125 -0
  126. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c +48 -0
  127. data/vendor/libsodium/src/libsodium/crypto_secretbox/try.c +129 -0
  128. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/checksum +1 -0
  129. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/api.h +12 -0
  130. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c +35 -0
  131. data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.c +26 -0
  132. data/vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c +27 -0
  133. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/api.h +8 -0
  134. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24.c +91 -0
  135. data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c +11 -0
  136. data/vendor/libsodium/src/libsodium/crypto_sign/crypto_sign.c +61 -0
  137. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/description +1 -0
  138. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/api.h +14 -0
  139. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/base.h +1344 -0
  140. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/base2.h +40 -0
  141. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/d.h +1 -0
  142. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/d2.h +1 -0
  143. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe.h +56 -0
  144. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_0.c +19 -0
  145. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_1.c +19 -0
  146. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_add.c +57 -0
  147. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_cmov.c +63 -0
  148. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_copy.c +29 -0
  149. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_frombytes.c +73 -0
  150. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_invert.c +14 -0
  151. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_isnegative.c +16 -0
  152. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_isnonzero.c +19 -0
  153. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_mul.c +253 -0
  154. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_neg.c +45 -0
  155. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_pow22523.c +13 -0
  156. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sq.c +149 -0
  157. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sq2.c +160 -0
  158. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sub.c +57 -0
  159. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_tobytes.c +119 -0
  160. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge.h +95 -0
  161. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_add.c +11 -0
  162. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_add.h +97 -0
  163. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_double_scalarmult.c +96 -0
  164. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_frombytes.c +50 -0
  165. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_madd.c +11 -0
  166. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_madd.h +88 -0
  167. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_msub.c +11 -0
  168. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_msub.h +88 -0
  169. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p1p1_to_p2.c +12 -0
  170. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p1p1_to_p3.c +13 -0
  171. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_0.c +8 -0
  172. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_dbl.c +11 -0
  173. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_dbl.h +73 -0
  174. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_0.c +9 -0
  175. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_dbl.c +12 -0
  176. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_to_cached.c +17 -0
  177. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_to_p2.c +12 -0
  178. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c +14 -0
  179. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_precomp_0.c +8 -0
  180. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_scalarmult_base.c +105 -0
  181. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_sub.c +11 -0
  182. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_sub.h +97 -0
  183. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_tobytes.c +14 -0
  184. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +31 -0
  185. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +40 -0
  186. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/pow22523.h +160 -0
  187. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/pow225521.h +160 -0
  188. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc.h +15 -0
  189. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc_muladd.c +368 -0
  190. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc_reduce.c +275 -0
  191. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +38 -0
  192. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sqrtm1.h +1 -0
  193. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c +26 -0
  194. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/api.h +13 -0
  195. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/fe25519.h +54 -0
  196. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c +348 -0
  197. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/ge25519.h +34 -0
  198. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/ge25519_edwards25519sha512batch.c +230 -0
  199. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519.h +51 -0
  200. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.c +146 -0
  201. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c +102 -0
  202. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c +21 -0
  203. data/vendor/libsodium/src/libsodium/crypto_sign/try.c +87 -0
  204. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/checksum +1 -0
  205. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +159 -0
  206. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/api.h +14 -0
  207. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/beforenm_aes128ctr.c +59 -0
  208. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common.h +788 -0
  209. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common_aes128ctr.c +64 -0
  210. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/consts.h +28 -0
  211. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/consts_aes128ctr.c +14 -0
  212. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128.h +47 -0
  213. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128_aes128ctr.c +131 -0
  214. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c +28 -0
  215. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/types.h +10 -0
  216. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +181 -0
  217. data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr_api.c +21 -0
  218. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-be.h +274 -0
  219. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-le.h +274 -0
  220. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table.h +56 -0
  221. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c +238 -0
  222. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h +171 -0
  223. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/api.h +14 -0
  224. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h +27 -0
  225. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/stream_aes256estream_api.c +21 -0
  226. data/vendor/libsodium/src/libsodium/crypto_stream/crypto_stream.c +36 -0
  227. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/api.h +1 -0
  228. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S +950 -0
  229. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/checksum +1 -0
  230. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/api.h +8 -0
  231. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +55 -0
  232. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +58 -0
  233. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20_api.c +16 -0
  234. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/checksum +1 -0
  235. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/api.h +11 -0
  236. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.c +51 -0
  237. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.c +54 -0
  238. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012_api.c +16 -0
  239. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/checksum +1 -0
  240. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/api.h +10 -0
  241. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.c +51 -0
  242. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.c +54 -0
  243. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208_api.c +16 -0
  244. data/vendor/libsodium/src/libsodium/crypto_stream/try.c +122 -0
  245. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/checksum +1 -0
  246. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/api.h +11 -0
  247. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.c +24 -0
  248. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +25 -0
  249. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20_api.c +16 -0
  250. data/vendor/libsodium/src/libsodium/crypto_verify/16/checksum +1 -0
  251. data/vendor/libsodium/src/libsodium/crypto_verify/16/ref/api.h +2 -0
  252. data/vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c +24 -0
  253. data/vendor/libsodium/src/libsodium/crypto_verify/16/verify_16_api.c +6 -0
  254. data/vendor/libsodium/src/libsodium/crypto_verify/32/checksum +1 -0
  255. data/vendor/libsodium/src/libsodium/crypto_verify/32/ref/api.h +2 -0
  256. data/vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c +40 -0
  257. data/vendor/libsodium/src/libsodium/crypto_verify/32/verify_32_api.c +6 -0
  258. data/vendor/libsodium/src/libsodium/crypto_verify/try.c +76 -0
  259. data/vendor/libsodium/src/libsodium/include/Makefile.am +63 -0
  260. data/vendor/libsodium/src/libsodium/include/sodium.h +48 -0
  261. data/vendor/libsodium/src/libsodium/include/sodium/core.h +18 -0
  262. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth.h +36 -0
  263. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h +36 -0
  264. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h +36 -0
  265. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +83 -0
  266. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +72 -0
  267. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_hsalsa20.h +40 -0
  268. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa20.h +40 -0
  269. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa2012.h +40 -0
  270. data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa208.h +40 -0
  271. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash.h +70 -0
  272. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +87 -0
  273. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash.h +23 -0
  274. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +29 -0
  275. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +29 -0
  276. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha256.h +32 -0
  277. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha512.h +32 -0
  278. data/vendor/libsodium/src/libsodium/include/sodium/crypto_int32.h +8 -0
  279. data/vendor/libsodium/src/libsodium/include/sodium/crypto_int64.h +8 -0
  280. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +37 -0
  281. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +65 -0
  282. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_53.h +34 -0
  283. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_donna.h +34 -0
  284. data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult.h +36 -0
  285. data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in +44 -0
  286. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +47 -0
  287. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +44 -0
  288. data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash.h +33 -0
  289. data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash_siphash24.h +29 -0
  290. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +61 -0
  291. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +52 -0
  292. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +44 -0
  293. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h +46 -0
  294. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h +60 -0
  295. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes256estream.h +61 -0
  296. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h.in +54 -0
  297. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h +43 -0
  298. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h +43 -0
  299. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +44 -0
  300. data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint16.h +8 -0
  301. data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint32.h +8 -0
  302. data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint64.h +8 -0
  303. data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint8.h +8 -0
  304. data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_16.h +25 -0
  305. data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_32.h +25 -0
  306. data/vendor/libsodium/src/libsodium/include/sodium/export.h +32 -0
  307. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +53 -0
  308. data/vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h +45 -0
  309. data/vendor/libsodium/src/libsodium/include/sodium/randombytes_sysrandom.h +45 -0
  310. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +36 -0
  311. data/vendor/libsodium/src/libsodium/include/sodium/version.h.in +29 -0
  312. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +63 -0
  313. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +317 -0
  314. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +212 -0
  315. data/vendor/libsodium/src/libsodium/sodium/compat.c +248 -0
  316. data/vendor/libsodium/src/libsodium/sodium/core.c +21 -0
  317. data/vendor/libsodium/src/libsodium/sodium/utils.c +94 -0
  318. data/vendor/libsodium/src/libsodium/sodium/version.c +20 -0
  319. data/vendor/libsodium/test/Makefile.am +5 -0
  320. data/vendor/libsodium/test/default/Makefile.am +277 -0
  321. data/vendor/libsodium/test/default/auth.c +21 -0
  322. data/vendor/libsodium/test/default/auth.exp +4 -0
  323. data/vendor/libsodium/test/default/auth2.c +36 -0
  324. data/vendor/libsodium/test/default/auth2.exp +4 -0
  325. data/vendor/libsodium/test/default/auth3.c +36 -0
  326. data/vendor/libsodium/test/default/auth3.exp +1 -0
  327. data/vendor/libsodium/test/default/auth5.c +37 -0
  328. data/vendor/libsodium/test/default/auth5.exp +0 -0
  329. data/vendor/libsodium/test/default/box.c +65 -0
  330. data/vendor/libsodium/test/default/box.exp +19 -0
  331. data/vendor/libsodium/test/default/box2.c +66 -0
  332. data/vendor/libsodium/test/default/box2.exp +17 -0
  333. data/vendor/libsodium/test/default/box7.c +37 -0
  334. data/vendor/libsodium/test/default/box7.exp +0 -0
  335. data/vendor/libsodium/test/default/box8.c +44 -0
  336. data/vendor/libsodium/test/default/box8.exp +0 -0
  337. data/vendor/libsodium/test/default/cmptest.h +51 -0
  338. data/vendor/libsodium/test/default/core1.c +32 -0
  339. data/vendor/libsodium/test/default/core1.exp +4 -0
  340. data/vendor/libsodium/test/default/core2.c +35 -0
  341. data/vendor/libsodium/test/default/core2.exp +4 -0
  342. data/vendor/libsodium/test/default/core3.c +42 -0
  343. data/vendor/libsodium/test/default/core3.exp +1 -0
  344. data/vendor/libsodium/test/default/core4.c +35 -0
  345. data/vendor/libsodium/test/default/core4.exp +8 -0
  346. data/vendor/libsodium/test/default/core5.c +34 -0
  347. data/vendor/libsodium/test/default/core5.exp +4 -0
  348. data/vendor/libsodium/test/default/core6.c +49 -0
  349. data/vendor/libsodium/test/default/core6.exp +4 -0
  350. data/vendor/libsodium/test/default/generichash.c +27 -0
  351. data/vendor/libsodium/test/default/generichash.exp +64 -0
  352. data/vendor/libsodium/test/default/generichash2.c +31 -0
  353. data/vendor/libsodium/test/default/generichash2.exp +64 -0
  354. data/vendor/libsodium/test/default/hash.c +16 -0
  355. data/vendor/libsodium/test/default/hash.exp +1 -0
  356. data/vendor/libsodium/test/default/hash2.exp +1 -0
  357. data/vendor/libsodium/test/default/hash3.c +16 -0
  358. data/vendor/libsodium/test/default/hash3.exp +1 -0
  359. data/vendor/libsodium/test/default/onetimeauth.c +44 -0
  360. data/vendor/libsodium/test/default/onetimeauth.exp +2 -0
  361. data/vendor/libsodium/test/default/onetimeauth2.c +42 -0
  362. data/vendor/libsodium/test/default/onetimeauth2.exp +1 -0
  363. data/vendor/libsodium/test/default/onetimeauth7.c +37 -0
  364. data/vendor/libsodium/test/default/onetimeauth7.exp +0 -0
  365. data/vendor/libsodium/test/default/pre.js +33 -0
  366. data/vendor/libsodium/test/default/randombytes.c +16 -0
  367. data/vendor/libsodium/test/default/scalarmult.c +25 -0
  368. data/vendor/libsodium/test/default/scalarmult.exp +4 -0
  369. data/vendor/libsodium/test/default/scalarmult2.c +25 -0
  370. data/vendor/libsodium/test/default/scalarmult2.exp +4 -0
  371. data/vendor/libsodium/test/default/scalarmult5.c +32 -0
  372. data/vendor/libsodium/test/default/scalarmult5.exp +4 -0
  373. data/vendor/libsodium/test/default/scalarmult6.c +32 -0
  374. data/vendor/libsodium/test/default/scalarmult6.exp +4 -0
  375. data/vendor/libsodium/test/default/scalarmult7.c +34 -0
  376. data/vendor/libsodium/test/default/scalarmult7.exp +1 -0
  377. data/vendor/libsodium/test/default/scalarmult8.c +34 -0
  378. data/vendor/libsodium/test/default/scalarmult8.exp +1 -0
  379. data/vendor/libsodium/test/default/secretbox.c +58 -0
  380. data/vendor/libsodium/test/default/secretbox.exp +19 -0
  381. data/vendor/libsodium/test/default/secretbox2.c +59 -0
  382. data/vendor/libsodium/test/default/secretbox2.exp +17 -0
  383. data/vendor/libsodium/test/default/secretbox7.c +33 -0
  384. data/vendor/libsodium/test/default/secretbox7.exp +0 -0
  385. data/vendor/libsodium/test/default/secretbox8.c +40 -0
  386. data/vendor/libsodium/test/default/secretbox8.exp +0 -0
  387. data/vendor/libsodium/test/default/shorthash.c +23 -0
  388. data/vendor/libsodium/test/default/shorthash.exp +64 -0
  389. data/vendor/libsodium/test/default/sodium_core.c +11 -0
  390. data/vendor/libsodium/test/default/sodium_core.exp +1 -0
  391. data/vendor/libsodium/test/default/sodium_utils.c +27 -0
  392. data/vendor/libsodium/test/default/sodium_utils.exp +6 -0
  393. data/vendor/libsodium/test/default/sodium_version.c +13 -0
  394. data/vendor/libsodium/test/default/sodium_version.exp +3 -0
  395. data/vendor/libsodium/test/default/stream.c +30 -0
  396. data/vendor/libsodium/test/default/stream.exp +1 -0
  397. data/vendor/libsodium/test/default/stream2.c +28 -0
  398. data/vendor/libsodium/test/default/stream2.exp +1 -0
  399. data/vendor/libsodium/test/default/stream3.c +30 -0
  400. data/vendor/libsodium/test/default/stream3.exp +4 -0
  401. data/vendor/libsodium/test/default/stream4.c +55 -0
  402. data/vendor/libsodium/test/default/stream4.exp +17 -0
  403. data/vendor/libsodium/test/default/stream5.c +29 -0
  404. data/vendor/libsodium/test/default/stream5.exp +1 -0
  405. data/vendor/libsodium/test/default/stream6.c +54 -0
  406. data/vendor/libsodium/test/default/stream6.exp +17 -0
  407. data/vendor/libsodium/test/default/wintest.bat +56 -0
  408. data/vendor/libsodium/test/quirks/windows/windows-quirks.h +18 -0
  409. metadata +500 -0
@@ -0,0 +1,14 @@
1
+
2
+ #include "crypto_stream_aes256estream.h"
3
+
4
+ #define crypto_stream crypto_stream_aes256estream
5
+ #define crypto_stream_xor crypto_stream_aes256estream_xor
6
+ #define crypto_stream_beforenm crypto_stream_aes256estream_beforenm
7
+ #define crypto_stream_afternm crypto_stream_aes256estream_afternm
8
+ #define crypto_stream_xor_afternm crypto_stream_aes256estream_xor_afternm
9
+ #define crypto_stream_KEYBYTES crypto_stream_aes256estream_KEYBYTES
10
+ #define crypto_stream_NONCEBYTES crypto_stream_aes256estream_NONCEBYTES
11
+ #define crypto_stream_BEFORENMBYTES crypto_stream_aes256estream_BEFORENMBYTES
12
+ #define crypto_stream_PRIMITIVE "aes256estream"
13
+ #define crypto_stream_IMPLEMENTATION crypto_stream_aes256estream_IMPLEMENTATION
14
+ #define crypto_stream_VERSION crypto_stream_aes256estream_VERSION
@@ -0,0 +1,27 @@
1
+
2
+ #ifndef __ECRYPT_SYNC__
3
+ #define __ECRYPT_SYNC__
4
+
5
+ #include <stdint.h>
6
+
7
+ typedef uint8_t u8;
8
+ typedef uint32_t u32;
9
+
10
+ #define Nr 14
11
+ #define Nk 8
12
+ #define Nb 4
13
+
14
+ #pragma pack(push, 1)
15
+ __attribute__((aligned(64))) typedef struct ECRYPT_ctx
16
+ {
17
+ u32 round_key[Nr+1][4];
18
+ u32 counter[4];
19
+ u32 first_round_output_x0;
20
+ u32 second_round_output[4];
21
+ } ECRYPT_ctx;
22
+ #pragma pack(pop)
23
+
24
+ #define ECRYPT_encrypt_bytes(ctx, plaintext, ciphertext, msglen) \
25
+ ECRYPT_process_bytes(0, ctx, plaintext, ciphertext, msglen)
26
+
27
+ #endif
@@ -0,0 +1,21 @@
1
+ #include "crypto_stream_aes256estream.h"
2
+
3
+ size_t
4
+ crypto_stream_aes256estream_keybytes(void) {
5
+ return crypto_stream_aes256estream_KEYBYTES;
6
+ }
7
+
8
+ size_t
9
+ crypto_stream_aes256estream_noncebytes(void) {
10
+ return crypto_stream_aes256estream_NONCEBYTES;
11
+ }
12
+
13
+ size_t
14
+ crypto_stream_aes256estream_beforenmbytes(void) {
15
+ return crypto_stream_aes256estream_BEFORENMBYTES;
16
+ }
17
+
18
+ const char *
19
+ crypto_stream_aes256estream_primitive(void) {
20
+ return "aes256estream";
21
+ }
@@ -0,0 +1,36 @@
1
+
2
+ #include "crypto_stream.h"
3
+
4
+ size_t
5
+ crypto_stream_keybytes(void)
6
+ {
7
+ return crypto_stream_KEYBYTES;
8
+ }
9
+
10
+ size_t
11
+ crypto_stream_noncebytes(void)
12
+ {
13
+ return crypto_stream_NONCEBYTES;
14
+ }
15
+
16
+ const char *
17
+ crypto_stream_primitive(void)
18
+ {
19
+ return crypto_stream_PRIMITIVE;
20
+ }
21
+
22
+ int
23
+ crypto_stream(unsigned char *c, unsigned long long clen,
24
+ const unsigned char *n, const unsigned char *k)
25
+ {
26
+ return crypto_stream_xsalsa20(c, clen, n, k);
27
+ }
28
+
29
+
30
+ int
31
+ crypto_stream_xor(unsigned char *c, const unsigned char *m,
32
+ unsigned long long mlen, const unsigned char *n,
33
+ const unsigned char *k)
34
+ {
35
+ return crypto_stream_xsalsa20_xor(c, m, mlen, n, k);
36
+ }
@@ -0,0 +1 @@
1
+ #include "crypto_stream_salsa20.h"
@@ -0,0 +1,950 @@
1
+ #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
2
+
3
+ .text
4
+ .p2align 5
5
+
6
+ .globl _crypto_stream_salsa20
7
+ .globl crypto_stream_salsa20
8
+ _crypto_stream_salsa20:
9
+ crypto_stream_salsa20:
10
+ mov %rsp,%r11
11
+ and $31,%r11
12
+ add $480,%r11
13
+ 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)
21
+ mov %rsi,%r9
22
+ mov %rdi,%rdi
23
+ mov %rdi,%rsi
24
+ mov %rdx,%rdx
25
+ mov %rcx,%r10
26
+ cmp $0,%r9
27
+ jbe ._done
28
+
29
+ mov $0,%rax
30
+ mov %r9,%rcx
31
+ rep stosb
32
+ sub %r9,%rdi
33
+ jmp ._start
34
+
35
+ .text
36
+ .p2align 5
37
+
38
+ .globl _crypto_stream_salsa20_xor
39
+ .globl crypto_stream_salsa20_xor
40
+ _crypto_stream_salsa20_xor:
41
+ crypto_stream_salsa20_xor:
42
+ mov %rsp,%r11
43
+ and $31,%r11
44
+ add $480,%r11
45
+ 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)
53
+ mov %rdi,%rdi
54
+ mov %rsi,%rsi
55
+ mov %rdx,%r9
56
+ mov %rcx,%rdx
57
+ mov %r8,%r10
58
+ cmp $0,%r9
59
+ jbe ._done
60
+
61
+ ._start:
62
+ movl 20(%r10),%ecx
63
+ movl 0(%r10),%r8d
64
+ movl 0(%rdx),%eax
65
+ 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)
70
+ mov $0,%rcx
71
+ movl 24(%r10),%r8d
72
+ movl 4(%r10),%eax
73
+ 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)
78
+ movl 12(%r10),%edx
79
+ mov $0,%rcx
80
+ movl 28(%r10),%r8d
81
+ 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)
86
+ mov $1634760805,%rdx
87
+ mov $857760878,%rcx
88
+ mov $2036477234,%r8
89
+ 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)
94
+ cmp $256,%r9
95
+ jb ._bytesbetween1and255
96
+
97
+ movdqa 48(%rsp),%xmm0
98
+ pshufd $0x55,%xmm0,%xmm1
99
+ pshufd $0xaa,%xmm0,%xmm2
100
+ pshufd $0xff,%xmm0,%xmm3
101
+ 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
+ movdqa %xmm1,128(%rsp)
112
+ movdqa %xmm2,144(%rsp)
113
+ movdqa %xmm3,160(%rsp)
114
+ movdqa %xmm0,176(%rsp)
115
+ movdqa 16(%rsp),%xmm0
116
+ pshufd $0xff,%xmm0,%xmm1
117
+ pshufd $0x55,%xmm0,%xmm2
118
+ pshufd $0xaa,%xmm0,%xmm0
119
+ movdqa %xmm1,192(%rsp)
120
+ movdqa %xmm2,208(%rsp)
121
+ movdqa %xmm0,224(%rsp)
122
+ movdqa 32(%rsp),%xmm0
123
+ pshufd $0x00,%xmm0,%xmm1
124
+ pshufd $0xaa,%xmm0,%xmm2
125
+ pshufd $0xff,%xmm0,%xmm0
126
+ movdqa %xmm1,240(%rsp)
127
+ movdqa %xmm2,256(%rsp)
128
+ movdqa %xmm0,272(%rsp)
129
+
130
+ ._bytesatleast256:
131
+ movl 16(%rsp),%edx
132
+ movl 4+32(%rsp),%ecx
133
+ movl %edx,288(%rsp)
134
+ movl %ecx,304(%rsp)
135
+ add $1,%rdx
136
+ shl $32,%rcx
137
+ add %rcx,%rdx
138
+ mov %rdx,%rcx
139
+ shr $32,%rcx
140
+ movl %edx,4+288(%rsp)
141
+ movl %ecx,4+304(%rsp)
142
+ add $1,%rdx
143
+ shl $32,%rcx
144
+ add %rcx,%rdx
145
+ mov %rdx,%rcx
146
+ shr $32,%rcx
147
+ movl %edx,8+288(%rsp)
148
+ movl %ecx,8+304(%rsp)
149
+ add $1,%rdx
150
+ shl $32,%rcx
151
+ add %rcx,%rdx
152
+ mov %rdx,%rcx
153
+ shr $32,%rcx
154
+ movl %edx,12+288(%rsp)
155
+ movl %ecx,12+304(%rsp)
156
+ add $1,%rdx
157
+ shl $32,%rcx
158
+ add %rcx,%rdx
159
+ mov %rdx,%rcx
160
+ shr $32,%rcx
161
+ movl %edx,16(%rsp)
162
+ movl %ecx,4+32(%rsp)
163
+ movq %r9,408(%rsp)
164
+ 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
181
+
182
+ ._mainloop1:
183
+ movdqa %xmm1,320(%rsp)
184
+ movdqa %xmm2,336(%rsp)
185
+ movdqa %xmm13,%xmm1
186
+ paddd %xmm12,%xmm1
187
+ movdqa %xmm1,%xmm2
188
+ pslld $7,%xmm1
189
+ pxor %xmm1,%xmm14
190
+ psrld $25,%xmm2
191
+ pxor %xmm2,%xmm14
192
+ movdqa %xmm7,%xmm1
193
+ paddd %xmm0,%xmm1
194
+ movdqa %xmm1,%xmm2
195
+ pslld $7,%xmm1
196
+ pxor %xmm1,%xmm11
197
+ psrld $25,%xmm2
198
+ pxor %xmm2,%xmm11
199
+ movdqa %xmm12,%xmm1
200
+ paddd %xmm14,%xmm1
201
+ movdqa %xmm1,%xmm2
202
+ pslld $9,%xmm1
203
+ pxor %xmm1,%xmm15
204
+ psrld $23,%xmm2
205
+ pxor %xmm2,%xmm15
206
+ movdqa %xmm0,%xmm1
207
+ paddd %xmm11,%xmm1
208
+ movdqa %xmm1,%xmm2
209
+ pslld $9,%xmm1
210
+ pxor %xmm1,%xmm9
211
+ psrld $23,%xmm2
212
+ pxor %xmm2,%xmm9
213
+ movdqa %xmm14,%xmm1
214
+ paddd %xmm15,%xmm1
215
+ movdqa %xmm1,%xmm2
216
+ pslld $13,%xmm1
217
+ pxor %xmm1,%xmm13
218
+ psrld $19,%xmm2
219
+ pxor %xmm2,%xmm13
220
+ movdqa %xmm11,%xmm1
221
+ paddd %xmm9,%xmm1
222
+ movdqa %xmm1,%xmm2
223
+ pslld $13,%xmm1
224
+ pxor %xmm1,%xmm7
225
+ psrld $19,%xmm2
226
+ pxor %xmm2,%xmm7
227
+ movdqa %xmm15,%xmm1
228
+ paddd %xmm13,%xmm1
229
+ movdqa %xmm1,%xmm2
230
+ pslld $18,%xmm1
231
+ pxor %xmm1,%xmm12
232
+ psrld $14,%xmm2
233
+ pxor %xmm2,%xmm12
234
+ movdqa 320(%rsp),%xmm1
235
+ movdqa %xmm12,320(%rsp)
236
+ movdqa %xmm9,%xmm2
237
+ paddd %xmm7,%xmm2
238
+ movdqa %xmm2,%xmm12
239
+ pslld $18,%xmm2
240
+ pxor %xmm2,%xmm0
241
+ psrld $14,%xmm12
242
+ pxor %xmm12,%xmm0
243
+ movdqa %xmm5,%xmm2
244
+ paddd %xmm1,%xmm2
245
+ movdqa %xmm2,%xmm12
246
+ pslld $7,%xmm2
247
+ pxor %xmm2,%xmm3
248
+ psrld $25,%xmm12
249
+ pxor %xmm12,%xmm3
250
+ movdqa 336(%rsp),%xmm2
251
+ movdqa %xmm0,336(%rsp)
252
+ movdqa %xmm6,%xmm0
253
+ paddd %xmm2,%xmm0
254
+ movdqa %xmm0,%xmm12
255
+ pslld $7,%xmm0
256
+ pxor %xmm0,%xmm4
257
+ psrld $25,%xmm12
258
+ pxor %xmm12,%xmm4
259
+ movdqa %xmm1,%xmm0
260
+ paddd %xmm3,%xmm0
261
+ movdqa %xmm0,%xmm12
262
+ pslld $9,%xmm0
263
+ pxor %xmm0,%xmm10
264
+ psrld $23,%xmm12
265
+ pxor %xmm12,%xmm10
266
+ movdqa %xmm2,%xmm0
267
+ paddd %xmm4,%xmm0
268
+ movdqa %xmm0,%xmm12
269
+ pslld $9,%xmm0
270
+ pxor %xmm0,%xmm8
271
+ psrld $23,%xmm12
272
+ pxor %xmm12,%xmm8
273
+ movdqa %xmm3,%xmm0
274
+ paddd %xmm10,%xmm0
275
+ movdqa %xmm0,%xmm12
276
+ pslld $13,%xmm0
277
+ pxor %xmm0,%xmm5
278
+ psrld $19,%xmm12
279
+ pxor %xmm12,%xmm5
280
+ movdqa %xmm4,%xmm0
281
+ paddd %xmm8,%xmm0
282
+ movdqa %xmm0,%xmm12
283
+ pslld $13,%xmm0
284
+ pxor %xmm0,%xmm6
285
+ psrld $19,%xmm12
286
+ pxor %xmm12,%xmm6
287
+ movdqa %xmm10,%xmm0
288
+ paddd %xmm5,%xmm0
289
+ movdqa %xmm0,%xmm12
290
+ pslld $18,%xmm0
291
+ pxor %xmm0,%xmm1
292
+ psrld $14,%xmm12
293
+ pxor %xmm12,%xmm1
294
+ movdqa 320(%rsp),%xmm0
295
+ movdqa %xmm1,320(%rsp)
296
+ movdqa %xmm4,%xmm1
297
+ paddd %xmm0,%xmm1
298
+ movdqa %xmm1,%xmm12
299
+ pslld $7,%xmm1
300
+ pxor %xmm1,%xmm7
301
+ psrld $25,%xmm12
302
+ pxor %xmm12,%xmm7
303
+ movdqa %xmm8,%xmm1
304
+ paddd %xmm6,%xmm1
305
+ movdqa %xmm1,%xmm12
306
+ pslld $18,%xmm1
307
+ pxor %xmm1,%xmm2
308
+ psrld $14,%xmm12
309
+ pxor %xmm12,%xmm2
310
+ movdqa 336(%rsp),%xmm12
311
+ movdqa %xmm2,336(%rsp)
312
+ movdqa %xmm14,%xmm1
313
+ paddd %xmm12,%xmm1
314
+ movdqa %xmm1,%xmm2
315
+ pslld $7,%xmm1
316
+ pxor %xmm1,%xmm5
317
+ psrld $25,%xmm2
318
+ pxor %xmm2,%xmm5
319
+ movdqa %xmm0,%xmm1
320
+ paddd %xmm7,%xmm1
321
+ movdqa %xmm1,%xmm2
322
+ pslld $9,%xmm1
323
+ pxor %xmm1,%xmm10
324
+ psrld $23,%xmm2
325
+ pxor %xmm2,%xmm10
326
+ movdqa %xmm12,%xmm1
327
+ paddd %xmm5,%xmm1
328
+ movdqa %xmm1,%xmm2
329
+ pslld $9,%xmm1
330
+ pxor %xmm1,%xmm8
331
+ psrld $23,%xmm2
332
+ pxor %xmm2,%xmm8
333
+ movdqa %xmm7,%xmm1
334
+ paddd %xmm10,%xmm1
335
+ movdqa %xmm1,%xmm2
336
+ pslld $13,%xmm1
337
+ pxor %xmm1,%xmm4
338
+ psrld $19,%xmm2
339
+ pxor %xmm2,%xmm4
340
+ movdqa %xmm5,%xmm1
341
+ paddd %xmm8,%xmm1
342
+ movdqa %xmm1,%xmm2
343
+ pslld $13,%xmm1
344
+ pxor %xmm1,%xmm14
345
+ psrld $19,%xmm2
346
+ pxor %xmm2,%xmm14
347
+ movdqa %xmm10,%xmm1
348
+ paddd %xmm4,%xmm1
349
+ movdqa %xmm1,%xmm2
350
+ pslld $18,%xmm1
351
+ pxor %xmm1,%xmm0
352
+ psrld $14,%xmm2
353
+ pxor %xmm2,%xmm0
354
+ movdqa 320(%rsp),%xmm1
355
+ movdqa %xmm0,320(%rsp)
356
+ movdqa %xmm8,%xmm0
357
+ paddd %xmm14,%xmm0
358
+ movdqa %xmm0,%xmm2
359
+ pslld $18,%xmm0
360
+ pxor %xmm0,%xmm12
361
+ psrld $14,%xmm2
362
+ pxor %xmm2,%xmm12
363
+ movdqa %xmm11,%xmm0
364
+ paddd %xmm1,%xmm0
365
+ movdqa %xmm0,%xmm2
366
+ pslld $7,%xmm0
367
+ pxor %xmm0,%xmm6
368
+ psrld $25,%xmm2
369
+ pxor %xmm2,%xmm6
370
+ movdqa 336(%rsp),%xmm2
371
+ movdqa %xmm12,336(%rsp)
372
+ movdqa %xmm3,%xmm0
373
+ paddd %xmm2,%xmm0
374
+ movdqa %xmm0,%xmm12
375
+ pslld $7,%xmm0
376
+ pxor %xmm0,%xmm13
377
+ psrld $25,%xmm12
378
+ pxor %xmm12,%xmm13
379
+ movdqa %xmm1,%xmm0
380
+ paddd %xmm6,%xmm0
381
+ movdqa %xmm0,%xmm12
382
+ pslld $9,%xmm0
383
+ pxor %xmm0,%xmm15
384
+ psrld $23,%xmm12
385
+ pxor %xmm12,%xmm15
386
+ movdqa %xmm2,%xmm0
387
+ paddd %xmm13,%xmm0
388
+ movdqa %xmm0,%xmm12
389
+ pslld $9,%xmm0
390
+ pxor %xmm0,%xmm9
391
+ psrld $23,%xmm12
392
+ pxor %xmm12,%xmm9
393
+ movdqa %xmm6,%xmm0
394
+ paddd %xmm15,%xmm0
395
+ movdqa %xmm0,%xmm12
396
+ pslld $13,%xmm0
397
+ pxor %xmm0,%xmm11
398
+ psrld $19,%xmm12
399
+ pxor %xmm12,%xmm11
400
+ movdqa %xmm13,%xmm0
401
+ paddd %xmm9,%xmm0
402
+ movdqa %xmm0,%xmm12
403
+ pslld $13,%xmm0
404
+ pxor %xmm0,%xmm3
405
+ psrld $19,%xmm12
406
+ pxor %xmm12,%xmm3
407
+ movdqa %xmm15,%xmm0
408
+ paddd %xmm11,%xmm0
409
+ movdqa %xmm0,%xmm12
410
+ pslld $18,%xmm0
411
+ pxor %xmm0,%xmm1
412
+ psrld $14,%xmm12
413
+ pxor %xmm12,%xmm1
414
+ movdqa %xmm9,%xmm0
415
+ paddd %xmm3,%xmm0
416
+ movdqa %xmm0,%xmm12
417
+ pslld $18,%xmm0
418
+ pxor %xmm0,%xmm2
419
+ psrld $14,%xmm12
420
+ pxor %xmm12,%xmm2
421
+ movdqa 320(%rsp),%xmm12
422
+ movdqa 336(%rsp),%xmm0
423
+ sub $2,%rdx
424
+ ja ._mainloop1
425
+
426
+ paddd 112(%rsp),%xmm12
427
+ paddd 176(%rsp),%xmm7
428
+ paddd 224(%rsp),%xmm10
429
+ paddd 272(%rsp),%xmm4
430
+ movd %xmm12,%rdx
431
+ movd %xmm7,%rcx
432
+ movd %xmm10,%r8
433
+ movd %xmm4,%r9
434
+ pshufd $0x39,%xmm12,%xmm12
435
+ pshufd $0x39,%xmm7,%xmm7
436
+ pshufd $0x39,%xmm10,%xmm10
437
+ pshufd $0x39,%xmm4,%xmm4
438
+ xorl 0(%rsi),%edx
439
+ xorl 4(%rsi),%ecx
440
+ xorl 8(%rsi),%r8d
441
+ xorl 12(%rsi),%r9d
442
+ movl %edx,0(%rdi)
443
+ movl %ecx,4(%rdi)
444
+ movl %r8d,8(%rdi)
445
+ movl %r9d,12(%rdi)
446
+ movd %xmm12,%rdx
447
+ movd %xmm7,%rcx
448
+ movd %xmm10,%r8
449
+ movd %xmm4,%r9
450
+ pshufd $0x39,%xmm12,%xmm12
451
+ pshufd $0x39,%xmm7,%xmm7
452
+ pshufd $0x39,%xmm10,%xmm10
453
+ pshufd $0x39,%xmm4,%xmm4
454
+ xorl 64(%rsi),%edx
455
+ xorl 68(%rsi),%ecx
456
+ xorl 72(%rsi),%r8d
457
+ xorl 76(%rsi),%r9d
458
+ movl %edx,64(%rdi)
459
+ movl %ecx,68(%rdi)
460
+ movl %r8d,72(%rdi)
461
+ movl %r9d,76(%rdi)
462
+ movd %xmm12,%rdx
463
+ movd %xmm7,%rcx
464
+ movd %xmm10,%r8
465
+ movd %xmm4,%r9
466
+ pshufd $0x39,%xmm12,%xmm12
467
+ pshufd $0x39,%xmm7,%xmm7
468
+ pshufd $0x39,%xmm10,%xmm10
469
+ pshufd $0x39,%xmm4,%xmm4
470
+ xorl 128(%rsi),%edx
471
+ xorl 132(%rsi),%ecx
472
+ xorl 136(%rsi),%r8d
473
+ xorl 140(%rsi),%r9d
474
+ movl %edx,128(%rdi)
475
+ movl %ecx,132(%rdi)
476
+ movl %r8d,136(%rdi)
477
+ movl %r9d,140(%rdi)
478
+ movd %xmm12,%rdx
479
+ movd %xmm7,%rcx
480
+ movd %xmm10,%r8
481
+ movd %xmm4,%r9
482
+ xorl 192(%rsi),%edx
483
+ xorl 196(%rsi),%ecx
484
+ xorl 200(%rsi),%r8d
485
+ xorl 204(%rsi),%r9d
486
+ movl %edx,192(%rdi)
487
+ movl %ecx,196(%rdi)
488
+ movl %r8d,200(%rdi)
489
+ movl %r9d,204(%rdi)
490
+ paddd 240(%rsp),%xmm14
491
+ paddd 64(%rsp),%xmm0
492
+ paddd 128(%rsp),%xmm5
493
+ paddd 192(%rsp),%xmm8
494
+ movd %xmm14,%rdx
495
+ movd %xmm0,%rcx
496
+ movd %xmm5,%r8
497
+ movd %xmm8,%r9
498
+ pshufd $0x39,%xmm14,%xmm14
499
+ pshufd $0x39,%xmm0,%xmm0
500
+ pshufd $0x39,%xmm5,%xmm5
501
+ pshufd $0x39,%xmm8,%xmm8
502
+ xorl 16(%rsi),%edx
503
+ xorl 20(%rsi),%ecx
504
+ xorl 24(%rsi),%r8d
505
+ xorl 28(%rsi),%r9d
506
+ movl %edx,16(%rdi)
507
+ movl %ecx,20(%rdi)
508
+ movl %r8d,24(%rdi)
509
+ movl %r9d,28(%rdi)
510
+ movd %xmm14,%rdx
511
+ movd %xmm0,%rcx
512
+ movd %xmm5,%r8
513
+ movd %xmm8,%r9
514
+ pshufd $0x39,%xmm14,%xmm14
515
+ pshufd $0x39,%xmm0,%xmm0
516
+ pshufd $0x39,%xmm5,%xmm5
517
+ pshufd $0x39,%xmm8,%xmm8
518
+ xorl 80(%rsi),%edx
519
+ xorl 84(%rsi),%ecx
520
+ xorl 88(%rsi),%r8d
521
+ xorl 92(%rsi),%r9d
522
+ movl %edx,80(%rdi)
523
+ movl %ecx,84(%rdi)
524
+ movl %r8d,88(%rdi)
525
+ movl %r9d,92(%rdi)
526
+ movd %xmm14,%rdx
527
+ movd %xmm0,%rcx
528
+ movd %xmm5,%r8
529
+ movd %xmm8,%r9
530
+ pshufd $0x39,%xmm14,%xmm14
531
+ pshufd $0x39,%xmm0,%xmm0
532
+ pshufd $0x39,%xmm5,%xmm5
533
+ pshufd $0x39,%xmm8,%xmm8
534
+ xorl 144(%rsi),%edx
535
+ xorl 148(%rsi),%ecx
536
+ xorl 152(%rsi),%r8d
537
+ xorl 156(%rsi),%r9d
538
+ movl %edx,144(%rdi)
539
+ movl %ecx,148(%rdi)
540
+ movl %r8d,152(%rdi)
541
+ movl %r9d,156(%rdi)
542
+ movd %xmm14,%rdx
543
+ movd %xmm0,%rcx
544
+ movd %xmm5,%r8
545
+ movd %xmm8,%r9
546
+ xorl 208(%rsi),%edx
547
+ xorl 212(%rsi),%ecx
548
+ xorl 216(%rsi),%r8d
549
+ xorl 220(%rsi),%r9d
550
+ movl %edx,208(%rdi)
551
+ movl %ecx,212(%rdi)
552
+ movl %r8d,216(%rdi)
553
+ movl %r9d,220(%rdi)
554
+ paddd 288(%rsp),%xmm15
555
+ paddd 304(%rsp),%xmm11
556
+ paddd 80(%rsp),%xmm1
557
+ paddd 144(%rsp),%xmm6
558
+ movd %xmm15,%rdx
559
+ movd %xmm11,%rcx
560
+ movd %xmm1,%r8
561
+ movd %xmm6,%r9
562
+ pshufd $0x39,%xmm15,%xmm15
563
+ pshufd $0x39,%xmm11,%xmm11
564
+ pshufd $0x39,%xmm1,%xmm1
565
+ pshufd $0x39,%xmm6,%xmm6
566
+ xorl 32(%rsi),%edx
567
+ xorl 36(%rsi),%ecx
568
+ xorl 40(%rsi),%r8d
569
+ xorl 44(%rsi),%r9d
570
+ movl %edx,32(%rdi)
571
+ movl %ecx,36(%rdi)
572
+ movl %r8d,40(%rdi)
573
+ movl %r9d,44(%rdi)
574
+ movd %xmm15,%rdx
575
+ movd %xmm11,%rcx
576
+ movd %xmm1,%r8
577
+ movd %xmm6,%r9
578
+ pshufd $0x39,%xmm15,%xmm15
579
+ pshufd $0x39,%xmm11,%xmm11
580
+ pshufd $0x39,%xmm1,%xmm1
581
+ pshufd $0x39,%xmm6,%xmm6
582
+ xorl 96(%rsi),%edx
583
+ xorl 100(%rsi),%ecx
584
+ xorl 104(%rsi),%r8d
585
+ xorl 108(%rsi),%r9d
586
+ movl %edx,96(%rdi)
587
+ movl %ecx,100(%rdi)
588
+ movl %r8d,104(%rdi)
589
+ movl %r9d,108(%rdi)
590
+ movd %xmm15,%rdx
591
+ movd %xmm11,%rcx
592
+ movd %xmm1,%r8
593
+ movd %xmm6,%r9
594
+ pshufd $0x39,%xmm15,%xmm15
595
+ pshufd $0x39,%xmm11,%xmm11
596
+ pshufd $0x39,%xmm1,%xmm1
597
+ pshufd $0x39,%xmm6,%xmm6
598
+ xorl 160(%rsi),%edx
599
+ xorl 164(%rsi),%ecx
600
+ xorl 168(%rsi),%r8d
601
+ xorl 172(%rsi),%r9d
602
+ movl %edx,160(%rdi)
603
+ movl %ecx,164(%rdi)
604
+ movl %r8d,168(%rdi)
605
+ movl %r9d,172(%rdi)
606
+ movd %xmm15,%rdx
607
+ movd %xmm11,%rcx
608
+ movd %xmm1,%r8
609
+ movd %xmm6,%r9
610
+ xorl 224(%rsi),%edx
611
+ xorl 228(%rsi),%ecx
612
+ xorl 232(%rsi),%r8d
613
+ xorl 236(%rsi),%r9d
614
+ movl %edx,224(%rdi)
615
+ movl %ecx,228(%rdi)
616
+ movl %r8d,232(%rdi)
617
+ movl %r9d,236(%rdi)
618
+ paddd 160(%rsp),%xmm13
619
+ paddd 208(%rsp),%xmm9
620
+ paddd 256(%rsp),%xmm3
621
+ paddd 96(%rsp),%xmm2
622
+ movd %xmm13,%rdx
623
+ movd %xmm9,%rcx
624
+ movd %xmm3,%r8
625
+ movd %xmm2,%r9
626
+ pshufd $0x39,%xmm13,%xmm13
627
+ pshufd $0x39,%xmm9,%xmm9
628
+ pshufd $0x39,%xmm3,%xmm3
629
+ pshufd $0x39,%xmm2,%xmm2
630
+ xorl 48(%rsi),%edx
631
+ xorl 52(%rsi),%ecx
632
+ xorl 56(%rsi),%r8d
633
+ xorl 60(%rsi),%r9d
634
+ movl %edx,48(%rdi)
635
+ movl %ecx,52(%rdi)
636
+ movl %r8d,56(%rdi)
637
+ movl %r9d,60(%rdi)
638
+ movd %xmm13,%rdx
639
+ movd %xmm9,%rcx
640
+ movd %xmm3,%r8
641
+ movd %xmm2,%r9
642
+ pshufd $0x39,%xmm13,%xmm13
643
+ pshufd $0x39,%xmm9,%xmm9
644
+ pshufd $0x39,%xmm3,%xmm3
645
+ pshufd $0x39,%xmm2,%xmm2
646
+ xorl 112(%rsi),%edx
647
+ xorl 116(%rsi),%ecx
648
+ xorl 120(%rsi),%r8d
649
+ xorl 124(%rsi),%r9d
650
+ movl %edx,112(%rdi)
651
+ movl %ecx,116(%rdi)
652
+ movl %r8d,120(%rdi)
653
+ movl %r9d,124(%rdi)
654
+ movd %xmm13,%rdx
655
+ movd %xmm9,%rcx
656
+ movd %xmm3,%r8
657
+ movd %xmm2,%r9
658
+ pshufd $0x39,%xmm13,%xmm13
659
+ pshufd $0x39,%xmm9,%xmm9
660
+ pshufd $0x39,%xmm3,%xmm3
661
+ pshufd $0x39,%xmm2,%xmm2
662
+ xorl 176(%rsi),%edx
663
+ xorl 180(%rsi),%ecx
664
+ xorl 184(%rsi),%r8d
665
+ xorl 188(%rsi),%r9d
666
+ movl %edx,176(%rdi)
667
+ movl %ecx,180(%rdi)
668
+ movl %r8d,184(%rdi)
669
+ movl %r9d,188(%rdi)
670
+ movd %xmm13,%rdx
671
+ movd %xmm9,%rcx
672
+ movd %xmm3,%r8
673
+ movd %xmm2,%r9
674
+ xorl 240(%rsi),%edx
675
+ xorl 244(%rsi),%ecx
676
+ xorl 248(%rsi),%r8d
677
+ xorl 252(%rsi),%r9d
678
+ movl %edx,240(%rdi)
679
+ movl %ecx,244(%rdi)
680
+ movl %r8d,248(%rdi)
681
+ movl %r9d,252(%rdi)
682
+ movq 408(%rsp),%r9
683
+ sub $256,%r9
684
+ add $256,%rsi
685
+ add $256,%rdi
686
+ cmp $256,%r9
687
+ jae ._bytesatleast256
688
+
689
+ cmp $0,%r9
690
+ jbe ._done
691
+
692
+ ._bytesbetween1and255:
693
+ cmp $64,%r9
694
+ jae ._nocopy
695
+
696
+ mov %rdi,%rdx
697
+ leaq 416(%rsp),%rdi
698
+ mov %r9,%rcx
699
+ rep movsb
700
+ leaq 416(%rsp),%rdi
701
+ leaq 416(%rsp),%rsi
702
+
703
+ ._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
709
+ movdqa %xmm1,%xmm4
710
+ mov $20,%rcx
711
+
712
+ ._mainloop2:
713
+ paddd %xmm0,%xmm4
714
+ movdqa %xmm0,%xmm5
715
+ movdqa %xmm4,%xmm6
716
+ pslld $7,%xmm4
717
+ psrld $25,%xmm6
718
+ pxor %xmm4,%xmm3
719
+ pxor %xmm6,%xmm3
720
+ paddd %xmm3,%xmm5
721
+ movdqa %xmm3,%xmm4
722
+ movdqa %xmm5,%xmm6
723
+ pslld $9,%xmm5
724
+ psrld $23,%xmm6
725
+ pxor %xmm5,%xmm2
726
+ pshufd $0x93,%xmm3,%xmm3
727
+ pxor %xmm6,%xmm2
728
+ paddd %xmm2,%xmm4
729
+ movdqa %xmm2,%xmm5
730
+ movdqa %xmm4,%xmm6
731
+ pslld $13,%xmm4
732
+ psrld $19,%xmm6
733
+ pxor %xmm4,%xmm1
734
+ pshufd $0x4e,%xmm2,%xmm2
735
+ pxor %xmm6,%xmm1
736
+ paddd %xmm1,%xmm5
737
+ movdqa %xmm3,%xmm4
738
+ movdqa %xmm5,%xmm6
739
+ pslld $18,%xmm5
740
+ psrld $14,%xmm6
741
+ pxor %xmm5,%xmm0
742
+ pshufd $0x39,%xmm1,%xmm1
743
+ pxor %xmm6,%xmm0
744
+ paddd %xmm0,%xmm4
745
+ movdqa %xmm0,%xmm5
746
+ movdqa %xmm4,%xmm6
747
+ pslld $7,%xmm4
748
+ psrld $25,%xmm6
749
+ pxor %xmm4,%xmm1
750
+ pxor %xmm6,%xmm1
751
+ paddd %xmm1,%xmm5
752
+ movdqa %xmm1,%xmm4
753
+ movdqa %xmm5,%xmm6
754
+ pslld $9,%xmm5
755
+ psrld $23,%xmm6
756
+ pxor %xmm5,%xmm2
757
+ pshufd $0x93,%xmm1,%xmm1
758
+ pxor %xmm6,%xmm2
759
+ paddd %xmm2,%xmm4
760
+ movdqa %xmm2,%xmm5
761
+ movdqa %xmm4,%xmm6
762
+ pslld $13,%xmm4
763
+ psrld $19,%xmm6
764
+ pxor %xmm4,%xmm3
765
+ pshufd $0x4e,%xmm2,%xmm2
766
+ pxor %xmm6,%xmm3
767
+ paddd %xmm3,%xmm5
768
+ movdqa %xmm1,%xmm4
769
+ movdqa %xmm5,%xmm6
770
+ pslld $18,%xmm5
771
+ psrld $14,%xmm6
772
+ pxor %xmm5,%xmm0
773
+ pshufd $0x39,%xmm3,%xmm3
774
+ pxor %xmm6,%xmm0
775
+ paddd %xmm0,%xmm4
776
+ movdqa %xmm0,%xmm5
777
+ movdqa %xmm4,%xmm6
778
+ pslld $7,%xmm4
779
+ psrld $25,%xmm6
780
+ pxor %xmm4,%xmm3
781
+ pxor %xmm6,%xmm3
782
+ paddd %xmm3,%xmm5
783
+ movdqa %xmm3,%xmm4
784
+ movdqa %xmm5,%xmm6
785
+ pslld $9,%xmm5
786
+ psrld $23,%xmm6
787
+ pxor %xmm5,%xmm2
788
+ pshufd $0x93,%xmm3,%xmm3
789
+ pxor %xmm6,%xmm2
790
+ paddd %xmm2,%xmm4
791
+ movdqa %xmm2,%xmm5
792
+ movdqa %xmm4,%xmm6
793
+ pslld $13,%xmm4
794
+ psrld $19,%xmm6
795
+ pxor %xmm4,%xmm1
796
+ pshufd $0x4e,%xmm2,%xmm2
797
+ pxor %xmm6,%xmm1
798
+ paddd %xmm1,%xmm5
799
+ movdqa %xmm3,%xmm4
800
+ movdqa %xmm5,%xmm6
801
+ pslld $18,%xmm5
802
+ psrld $14,%xmm6
803
+ pxor %xmm5,%xmm0
804
+ pshufd $0x39,%xmm1,%xmm1
805
+ pxor %xmm6,%xmm0
806
+ paddd %xmm0,%xmm4
807
+ movdqa %xmm0,%xmm5
808
+ movdqa %xmm4,%xmm6
809
+ pslld $7,%xmm4
810
+ psrld $25,%xmm6
811
+ pxor %xmm4,%xmm1
812
+ pxor %xmm6,%xmm1
813
+ paddd %xmm1,%xmm5
814
+ movdqa %xmm1,%xmm4
815
+ movdqa %xmm5,%xmm6
816
+ pslld $9,%xmm5
817
+ psrld $23,%xmm6
818
+ pxor %xmm5,%xmm2
819
+ pshufd $0x93,%xmm1,%xmm1
820
+ pxor %xmm6,%xmm2
821
+ paddd %xmm2,%xmm4
822
+ movdqa %xmm2,%xmm5
823
+ movdqa %xmm4,%xmm6
824
+ pslld $13,%xmm4
825
+ psrld $19,%xmm6
826
+ pxor %xmm4,%xmm3
827
+ pshufd $0x4e,%xmm2,%xmm2
828
+ pxor %xmm6,%xmm3
829
+ sub $4,%rcx
830
+ paddd %xmm3,%xmm5
831
+ movdqa %xmm1,%xmm4
832
+ movdqa %xmm5,%xmm6
833
+ pslld $18,%xmm5
834
+ pxor %xmm7,%xmm7
835
+ psrld $14,%xmm6
836
+ pxor %xmm5,%xmm0
837
+ pshufd $0x39,%xmm3,%xmm3
838
+ pxor %xmm6,%xmm0
839
+ ja ._mainloop2
840
+
841
+ paddd 48(%rsp),%xmm0
842
+ paddd 0(%rsp),%xmm1
843
+ paddd 16(%rsp),%xmm2
844
+ paddd 32(%rsp),%xmm3
845
+ movd %xmm0,%rcx
846
+ movd %xmm1,%r8
847
+ movd %xmm2,%r9
848
+ movd %xmm3,%rax
849
+ pshufd $0x39,%xmm0,%xmm0
850
+ pshufd $0x39,%xmm1,%xmm1
851
+ pshufd $0x39,%xmm2,%xmm2
852
+ pshufd $0x39,%xmm3,%xmm3
853
+ xorl 0(%rsi),%ecx
854
+ xorl 48(%rsi),%r8d
855
+ xorl 32(%rsi),%r9d
856
+ xorl 16(%rsi),%eax
857
+ movl %ecx,0(%rdi)
858
+ movl %r8d,48(%rdi)
859
+ movl %r9d,32(%rdi)
860
+ movl %eax,16(%rdi)
861
+ movd %xmm0,%rcx
862
+ movd %xmm1,%r8
863
+ movd %xmm2,%r9
864
+ movd %xmm3,%rax
865
+ pshufd $0x39,%xmm0,%xmm0
866
+ pshufd $0x39,%xmm1,%xmm1
867
+ pshufd $0x39,%xmm2,%xmm2
868
+ pshufd $0x39,%xmm3,%xmm3
869
+ xorl 20(%rsi),%ecx
870
+ xorl 4(%rsi),%r8d
871
+ xorl 52(%rsi),%r9d
872
+ xorl 36(%rsi),%eax
873
+ movl %ecx,20(%rdi)
874
+ movl %r8d,4(%rdi)
875
+ movl %r9d,52(%rdi)
876
+ movl %eax,36(%rdi)
877
+ movd %xmm0,%rcx
878
+ movd %xmm1,%r8
879
+ movd %xmm2,%r9
880
+ movd %xmm3,%rax
881
+ pshufd $0x39,%xmm0,%xmm0
882
+ pshufd $0x39,%xmm1,%xmm1
883
+ pshufd $0x39,%xmm2,%xmm2
884
+ pshufd $0x39,%xmm3,%xmm3
885
+ xorl 40(%rsi),%ecx
886
+ xorl 24(%rsi),%r8d
887
+ xorl 8(%rsi),%r9d
888
+ xorl 56(%rsi),%eax
889
+ movl %ecx,40(%rdi)
890
+ movl %r8d,24(%rdi)
891
+ movl %r9d,8(%rdi)
892
+ movl %eax,56(%rdi)
893
+ movd %xmm0,%rcx
894
+ movd %xmm1,%r8
895
+ movd %xmm2,%r9
896
+ movd %xmm3,%rax
897
+ xorl 60(%rsi),%ecx
898
+ xorl 44(%rsi),%r8d
899
+ xorl 28(%rsi),%r9d
900
+ xorl 12(%rsi),%eax
901
+ movl %ecx,60(%rdi)
902
+ movl %r8d,44(%rdi)
903
+ movl %r9d,28(%rdi)
904
+ movl %eax,12(%rdi)
905
+ movq 408(%rsp),%r9
906
+ movl 16(%rsp),%ecx
907
+ movl 4+32(%rsp),%r8d
908
+ add $1,%rcx
909
+ shl $32,%r8
910
+ add %r8,%rcx
911
+ mov %rcx,%r8
912
+ shr $32,%r8
913
+ movl %ecx,16(%rsp)
914
+ movl %r8d,4+32(%rsp)
915
+ cmp $64,%r9
916
+
917
+ ja ._bytesatleast65
918
+
919
+ jae ._bytesatleast64
920
+
921
+ mov %rdi,%rsi
922
+ mov %rdx,%rdi
923
+ mov %r9,%rcx
924
+ rep movsb
925
+
926
+ ._bytesatleast64:
927
+ ._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
935
+ add %r11,%rsp
936
+ xor %rax,%rax
937
+ xor %rdx,%rdx
938
+ ret
939
+
940
+ ._bytesatleast65:
941
+ sub $64,%r9
942
+ add $64,%rdi
943
+ add $64,%rsi
944
+ jmp ._bytesbetween1and255
945
+
946
+ #endif
947
+
948
+ #if defined(__linux__) && defined(__ELF__)
949
+ .section .note.GNU-stack,"",%progbits
950
+ #endif