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.
- checksums.yaml +4 -4
- data/lib/rbnacl/libsodium/version.rb +1 -1
- data/vendor/libsodium/AUTHORS +14 -9
- data/vendor/libsodium/ChangeLog +26 -0
- data/vendor/libsodium/LICENSE +1 -1
- data/vendor/libsodium/Makefile.am +1 -0
- data/vendor/libsodium/README.markdown +185 -46
- data/vendor/libsodium/THANKS +10 -0
- data/vendor/libsodium/builds/msvc/properties/Common.props +21 -0
- data/vendor/libsodium/builds/msvc/properties/DLL.props +16 -0
- data/vendor/libsodium/builds/msvc/properties/Debug.props +29 -0
- data/vendor/libsodium/builds/msvc/properties/DebugDEXE.props +21 -0
- data/vendor/libsodium/builds/msvc/properties/DebugDLL.props +20 -0
- data/vendor/libsodium/builds/msvc/properties/DebugLEXE.props +20 -0
- data/vendor/libsodium/builds/msvc/properties/DebugLIB.props +20 -0
- data/vendor/libsodium/builds/msvc/properties/DebugLTCG.props +19 -0
- data/vendor/libsodium/builds/msvc/properties/DebugSEXE.props +21 -0
- data/vendor/libsodium/builds/msvc/properties/EXE.props +17 -0
- data/vendor/libsodium/builds/msvc/properties/LIB.props +16 -0
- data/vendor/libsodium/builds/msvc/properties/LTCG.props +13 -0
- data/vendor/libsodium/builds/msvc/properties/Link.props +21 -0
- data/vendor/libsodium/builds/msvc/properties/Messages.props +15 -0
- data/vendor/libsodium/builds/msvc/properties/Output.props +30 -0
- data/vendor/libsodium/builds/msvc/properties/Release.props +41 -0
- data/vendor/libsodium/builds/msvc/properties/ReleaseDEXE.props +20 -0
- data/vendor/libsodium/builds/msvc/properties/ReleaseDLL.props +19 -0
- data/vendor/libsodium/builds/msvc/properties/ReleaseLEXE.props +20 -0
- data/vendor/libsodium/builds/msvc/properties/ReleaseLIB.props +19 -0
- data/vendor/libsodium/builds/msvc/properties/ReleaseLTCG.props +19 -0
- data/vendor/libsodium/builds/msvc/properties/ReleaseSEXE.props +20 -0
- data/vendor/libsodium/builds/msvc/properties/Win32.props +20 -0
- data/vendor/libsodium/builds/msvc/properties/x64.props +23 -0
- data/vendor/libsodium/builds/msvc/resource.h +0 -0
- data/vendor/libsodium/builds/msvc/resource.rc +0 -0
- data/vendor/libsodium/builds/msvc/version.h +29 -0
- data/vendor/libsodium/builds/msvc/vs2010/libsodium.import.props +52 -0
- data/vendor/libsodium/builds/msvc/vs2010/libsodium.import.xml +17 -0
- data/vendor/libsodium/builds/msvc/vs2010/libsodium.sln +79 -0
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.props +43 -0
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +345 -0
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +1037 -0
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.xml +15 -0
- data/vendor/libsodium/builds/msvc/vs2010/test/test.props +37 -0
- data/vendor/libsodium/builds/msvc/vs2010/test/test.runner.bat +78 -0
- data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +220 -0
- data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +168 -0
- data/vendor/libsodium/builds/msvc/vs2012/libsodium.import.props +52 -0
- data/vendor/libsodium/builds/msvc/vs2012/libsodium.import.xml +17 -0
- data/vendor/libsodium/builds/msvc/vs2012/libsodium.sln +79 -0
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.props +43 -0
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +345 -0
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +1037 -0
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.xml +15 -0
- data/vendor/libsodium/builds/msvc/vs2012/test/test.props +37 -0
- data/vendor/libsodium/builds/msvc/vs2012/test/test.runner.bat +78 -0
- data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +220 -0
- data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +168 -0
- data/vendor/libsodium/builds/msvc/vs2013/libsodium.import.props +52 -0
- data/vendor/libsodium/builds/msvc/vs2013/libsodium.import.xml +17 -0
- data/vendor/libsodium/builds/msvc/vs2013/libsodium.sln +81 -0
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.props +43 -0
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +345 -0
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +1037 -0
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.xml +15 -0
- data/vendor/libsodium/builds/msvc/vs2013/test/test.props +37 -0
- data/vendor/libsodium/builds/msvc/vs2013/test/test.runner.bat +78 -0
- data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +220 -0
- data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +168 -0
- data/vendor/libsodium/configure.ac +87 -68
- data/vendor/libsodium/dist-build/Makefile.am +10 -0
- data/vendor/libsodium/dist-build/android-arm.sh +3 -0
- data/vendor/libsodium/dist-build/android-armv7.sh +3 -0
- data/vendor/libsodium/dist-build/android-build.sh +37 -0
- data/vendor/libsodium/dist-build/android-mips.sh +3 -0
- data/vendor/libsodium/dist-build/android-x86.sh +3 -0
- data/vendor/libsodium/dist-build/emscripten.sh +13 -0
- data/vendor/libsodium/dist-build/{iphone.sh → ios.sh} +2 -2
- data/vendor/libsodium/dist-build/msys2-win32.sh +10 -0
- data/vendor/libsodium/dist-build/msys2-win64.sh +10 -0
- data/vendor/libsodium/libsodium.vcxproj +25 -13
- data/vendor/libsodium/libsodium.vcxproj.filters +60 -24
- data/vendor/libsodium/msvc-scripts/process.bat +3 -7
- data/vendor/libsodium/packaging/nuget/package.bat +13 -0
- data/vendor/libsodium/packaging/nuget/package.config +4 -0
- data/vendor/libsodium/packaging/nuget/package.gsl +255 -0
- data/vendor/libsodium/packaging/nuget/package.nuspec +93 -0
- data/vendor/libsodium/packaging/nuget/package.targets +128 -0
- data/vendor/libsodium/packaging/nuget/package.xml +22 -0
- data/vendor/libsodium/src/libsodium/Makefile.am +32 -20
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/{ref → cp}/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/hmac_hmacsha256.c +110 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/{ref → cp}/verify_hmacsha256.c +0 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512_api.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/api.h +9 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/hmac_hmacsha512.c +110 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c +10 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/{ref → cp}/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.c +54 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/{ref → cp}/verify_hmacsha512256.c +2 -1
- data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +94 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/core_hsalsa20_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/core_salsa20_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/core_salsa2012_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/core_salsa208_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.c +15 -5
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/api.h +0 -2
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2.h +14 -6
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +95 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/generichash_blake2b.c +50 -3
- data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +4 -10
- data/vendor/libsodium/src/libsodium/crypto_hash/crypto_hash.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/{ref → cp}/api.h +3 -1
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +294 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/{ref → cp}/api.h +3 -1
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +321 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c +51 -127
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h +12 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +221 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +209 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c +1 -140
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/crypto_scrypt-common.c +250 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/crypto_scrypt.h +100 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/nosse/pwhash_scryptxsalsa208sha256_nosse.c +302 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/pbkdf2-sha256.c +94 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/pbkdf2-sha256.h +45 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/pwhash_scryptxsalsa208sha256.c +172 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/scrypt_platform.c +96 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sse/pwhash_scryptxsalsa208sha256_sse.c +391 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sysendian.h +146 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/api.h +2 -2
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +39 -9
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/api.h +2 -2
- data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c +6 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +94 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.c +3 -3
- data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c +3 -3
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_scalarmult_base.c +6 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +5 -3
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +28 -18
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +14 -9
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +21 -21
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128.h +6 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +42 -42
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-be.h +4 -4
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-le.h +4 -4
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c +15 -14
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/stream_aes256estream_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S +153 -160
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/api.h +2 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +9 -3
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +9 -3
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/api.h +0 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20_api.c +0 -5
- data/vendor/libsodium/src/libsodium/crypto_verify/64/ref/api.h +2 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/64/ref/verify_64.c +72 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/64/verify_64_api.c +6 -0
- data/vendor/libsodium/src/libsodium/include/Makefile.am +6 -7
- data/vendor/libsodium/src/libsodium/include/sodium.h +4 -3
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h +31 -9
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h +58 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h +26 -9
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +13 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +38 -24
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_hsalsa20.h +6 -11
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa20.h +6 -11
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa2012.h +6 -11
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa208.h +6 -11
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash.h +7 -8
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +36 -16
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash.h +13 -4
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +25 -7
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +25 -7
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +5 -5
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_donna.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptxsalsa208sha256.h +48 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h +31 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +17 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +21 -11
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash_siphash24.h +8 -7
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +16 -17
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +18 -14
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h +18 -18
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes256estream.h +19 -18
- data/vendor/libsodium/src/libsodium/include/sodium/{crypto_stream_salsa20.h.in → crypto_stream_salsa20.h} +8 -19
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h +8 -8
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h +8 -8
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +10 -11
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_16.h +1 -4
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_32.h +1 -4
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_64.h +22 -0
- data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +27 -0
- data/vendor/libsodium/src/libsodium/include/sodium/utils.h +15 -3
- data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +3 -1
- data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +18 -7
- data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +57 -9
- data/vendor/libsodium/src/libsodium/sodium/compat.c +62 -0
- data/vendor/libsodium/src/libsodium/sodium/core.c +2 -0
- data/vendor/libsodium/src/libsodium/sodium/runtime.c +134 -0
- data/vendor/libsodium/src/libsodium/sodium/utils.c +100 -8
- data/vendor/libsodium/test/default/Makefile.am +63 -3
- data/vendor/libsodium/test/default/auth6.c +21 -0
- data/vendor/libsodium/test/default/auth6.exp +8 -0
- data/vendor/libsodium/test/default/auth7.c +37 -0
- data/vendor/libsodium/test/default/auth7.exp +0 -0
- data/vendor/libsodium/test/default/box_easy.c +59 -0
- data/vendor/libsodium/test/default/box_easy.exp +19 -0
- data/vendor/libsodium/test/default/box_easy2.c +31 -0
- data/vendor/libsodium/test/default/box_easy2.exp +1 -0
- data/vendor/libsodium/test/default/cmptest.h +7 -1
- data/vendor/libsodium/test/default/generichash3.c +36 -0
- data/vendor/libsodium/test/default/generichash3.exp +64 -0
- data/vendor/libsodium/test/default/pwhash.c +59 -0
- data/vendor/libsodium/test/default/pwhash.exp +2 -0
- data/vendor/libsodium/test/default/scalarmult7.c +0 -2
- data/vendor/libsodium/test/default/scalarmult8.c +0 -2
- data/vendor/libsodium/test/default/secretbox_easy.c +51 -0
- data/vendor/libsodium/test/default/secretbox_easy.exp +19 -0
- data/vendor/libsodium/test/default/secretbox_easy2.c +27 -0
- data/vendor/libsodium/test/default/secretbox_easy2.exp +1 -0
- data/vendor/libsodium/test/default/sign.c +1106 -0
- data/vendor/libsodium/test/default/sign.exp +3 -0
- data/vendor/libsodium/test/default/sodium_utils.c +8 -0
- data/vendor/libsodium/test/default/sodium_utils.exp +2 -1
- data/vendor/libsodium/test/default/sodium_version.c +1 -1
- data/vendor/libsodium/test/default/verify1.c +34 -0
- data/vendor/libsodium/test/default/verify1.exp +6 -0
- metadata +138 -33
- data/vendor/libsodium/dist-build/android.sh +0 -48
- data/vendor/libsodium/dist-build/msys.sh +0 -9
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/hmac_hmacsha256.c +0 -83
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/hmac_hmacsha512256.c +0 -86
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/ref/hash_sha256.c +0 -69
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/ref/hash_sha512.c +0 -71
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/checksum +0 -1
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/hashblocks_sha256_api.c +0 -16
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/api.h +0 -9
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/blocks_sha256.c +0 -212
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/checksum +0 -1
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/hashblocks_sha512_api.c +0 -16
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/api.h +0 -9
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/blocks_sha512.c +0 -239
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/try.c +0 -78
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/api.h +0 -8
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305_53.c +0 -1661
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/verify_poly1305_53.c +0 -10
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h +0 -772
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha256.h +0 -32
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha512.h +0 -32
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_53.h +0 -34
- 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
|
data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S
CHANGED
@@ -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
|
-
|
8
|
-
|
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 $
|
16
|
+
add $512,%r11
|
13
17
|
sub %r11,%rsp
|
14
|
-
movq %r11,
|
15
|
-
movq %r12,
|
16
|
-
movq %r13,
|
17
|
-
movq %r14,
|
18
|
-
movq %r15,
|
19
|
-
movq %rbx,
|
20
|
-
movq %rbp,
|
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
|
-
|
40
|
-
|
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 $
|
52
|
+
add $512,%r11
|
45
53
|
sub %r11,%rsp
|
46
|
-
movq %r11,
|
47
|
-
movq %r12,
|
48
|
-
movq %r13,
|
49
|
-
movq %r14,
|
50
|
-
movq %r15,
|
51
|
-
movq %rbx,
|
52
|
-
movq %rbp,
|
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,
|
67
|
-
movl %r8d,4+
|
68
|
-
movl %eax,8+
|
69
|
-
movl %r11d,12+
|
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
|
-
|
75
|
-
movl %
|
76
|
-
movl %
|
77
|
-
movl %
|
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,
|
83
|
-
movl %ecx,4+
|
84
|
-
movl %r8d,8+
|
85
|
-
movl %eax,12+
|
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,
|
91
|
-
movl %ecx,4+
|
92
|
-
movl %r8d,8+
|
93
|
-
movl %eax,12+
|
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
|
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,
|
120
|
-
movdqa %xmm2,
|
121
|
-
movdqa %xmm0,
|
122
|
-
movdqa
|
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,
|
127
|
-
movdqa %xmm2,
|
128
|
-
movdqa %xmm0,
|
134
|
+
movdqa %xmm1,304(%rsp)
|
135
|
+
movdqa %xmm2,320(%rsp)
|
136
|
+
movdqa %xmm0,336(%rsp)
|
129
137
|
|
130
138
|
._bytesatleast256:
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
movl %
|
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+
|
141
|
-
movl %ecx,4+
|
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+
|
148
|
-
movl %ecx,8+
|
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+
|
155
|
-
movl %ecx,12+
|
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,
|
162
|
-
movl %ecx,4+
|
163
|
-
movq %
|
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
|
166
|
-
movdqa
|
167
|
-
movdqa
|
168
|
-
movdqa
|
169
|
-
movdqa
|
170
|
-
movdqa
|
171
|
-
movdqa
|
172
|
-
movdqa
|
173
|
-
movdqa
|
174
|
-
movdqa
|
175
|
-
movdqa
|
176
|
-
movdqa
|
177
|
-
movdqa
|
178
|
-
movdqa
|
179
|
-
movdqa
|
180
|
-
movdqa
|
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,
|
184
|
-
movdqa %xmm2,
|
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
|
235
|
-
movdqa %xmm12,
|
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
|
251
|
-
movdqa %xmm0,
|
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
|
295
|
-
movdqa %xmm1,
|
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
|
311
|
-
movdqa %xmm2,
|
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
|
355
|
-
movdqa %xmm0,
|
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
|
371
|
-
movdqa %xmm12,
|
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
|
422
|
-
movdqa
|
423
|
+
movdqa 384(%rsp),%xmm12
|
424
|
+
movdqa 400(%rsp),%xmm0
|
423
425
|
sub $2,%rdx
|
424
426
|
ja ._mainloop1
|
425
|
-
|
426
|
-
paddd
|
427
|
-
paddd
|
428
|
-
paddd
|
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
|
491
|
-
paddd
|
492
|
-
paddd
|
493
|
-
paddd
|
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
|
555
|
-
paddd
|
556
|
-
paddd
|
557
|
-
paddd
|
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
|
619
|
-
paddd
|
620
|
-
paddd
|
621
|
-
paddd
|
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
|
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
|
696
|
+
leaq 0(%rsp),%rdi
|
698
697
|
mov %r9,%rcx
|
699
698
|
rep movsb
|
700
|
-
leaq
|
701
|
-
leaq
|
699
|
+
leaq 0(%rsp),%rdi
|
700
|
+
leaq 0(%rsp),%rsi
|
702
701
|
|
703
702
|
._nocopy:
|
704
|
-
movq %r9,
|
705
|
-
movdqa
|
706
|
-
movdqa
|
707
|
-
movdqa
|
708
|
-
movdqa
|
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
|
842
|
-
paddd
|
843
|
-
paddd
|
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
|
906
|
-
|
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,
|
914
|
-
movl %r8d,4+
|
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
|
929
|
-
movq
|
930
|
-
movq
|
931
|
-
movq
|
932
|
-
movq
|
933
|
-
movq
|
934
|
-
movq
|
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
|
-
|
930
|
+
mov %rsi,%rdx
|
938
931
|
ret
|
939
932
|
|
940
933
|
._bytesatleast65:
|