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
@@ -1,8 +1,5 @@
|
|
1
1
|
|
2
2
|
#include "crypto_stream_salsa20.h"
|
3
3
|
|
4
|
-
#define
|
5
|
-
|
6
|
-
|
7
|
-
#define crypto_stream crypto_stream_salsa20_ref
|
8
|
-
#define crypto_stream_xor crypto_stream_salsa20_ref_xor
|
4
|
+
#define crypto_stream crypto_stream_salsa20
|
5
|
+
#define crypto_stream_xor crypto_stream_salsa20_xor
|
@@ -1,11 +1,12 @@
|
|
1
1
|
/*
|
2
|
-
version
|
2
|
+
version 20140420
|
3
3
|
D. J. Bernstein
|
4
4
|
Public domain.
|
5
5
|
*/
|
6
6
|
|
7
7
|
#include "api.h"
|
8
8
|
#include "crypto_core_salsa20.h"
|
9
|
+
#include "utils.h"
|
9
10
|
|
10
11
|
#ifndef HAVE_AMD64_ASM
|
11
12
|
|
@@ -23,16 +24,18 @@ int crypto_stream(
|
|
23
24
|
{
|
24
25
|
unsigned char in[16];
|
25
26
|
unsigned char block[64];
|
27
|
+
unsigned char kcopy[32];
|
26
28
|
unsigned long long i;
|
27
29
|
unsigned int u;
|
28
30
|
|
29
31
|
if (!clen) return 0;
|
30
32
|
|
33
|
+
for (i = 0;i < 32;++i) kcopy[i] = k[i];
|
31
34
|
for (i = 0;i < 8;++i) in[i] = n[i];
|
32
35
|
for (i = 8;i < 16;++i) in[i] = 0;
|
33
36
|
|
34
37
|
while (clen >= 64) {
|
35
|
-
crypto_core_salsa20(c,in,
|
38
|
+
crypto_core_salsa20(c,in,kcopy,sigma);
|
36
39
|
|
37
40
|
u = 1;
|
38
41
|
for (i = 8;i < 16;++i) {
|
@@ -46,9 +49,12 @@ int crypto_stream(
|
|
46
49
|
}
|
47
50
|
|
48
51
|
if (clen) {
|
49
|
-
crypto_core_salsa20(block,in,
|
52
|
+
crypto_core_salsa20(block,in,kcopy,sigma);
|
50
53
|
for (i = 0;i < clen;++i) c[i] = block[i];
|
51
54
|
}
|
55
|
+
sodium_memzero(block, sizeof block);
|
56
|
+
sodium_memzero(kcopy, sizeof kcopy);
|
57
|
+
|
52
58
|
return 0;
|
53
59
|
}
|
54
60
|
|
@@ -1,11 +1,12 @@
|
|
1
1
|
/*
|
2
|
-
version
|
2
|
+
version 20140420
|
3
3
|
D. J. Bernstein
|
4
4
|
Public domain.
|
5
5
|
*/
|
6
6
|
|
7
7
|
#include "api.h"
|
8
8
|
#include "crypto_core_salsa20.h"
|
9
|
+
#include "utils.h"
|
9
10
|
|
10
11
|
#ifndef HAVE_AMD64_ASM
|
11
12
|
|
@@ -24,16 +25,18 @@ int crypto_stream_xor(
|
|
24
25
|
{
|
25
26
|
unsigned char in[16];
|
26
27
|
unsigned char block[64];
|
28
|
+
unsigned char kcopy[32];
|
27
29
|
unsigned long long i;
|
28
30
|
unsigned int u;
|
29
31
|
|
30
32
|
if (!mlen) return 0;
|
31
33
|
|
34
|
+
for (i = 0;i < 32;++i) kcopy[i] = k[i];
|
32
35
|
for (i = 0;i < 8;++i) in[i] = n[i];
|
33
36
|
for (i = 8;i < 16;++i) in[i] = 0;
|
34
37
|
|
35
38
|
while (mlen >= 64) {
|
36
|
-
crypto_core_salsa20(block,in,
|
39
|
+
crypto_core_salsa20(block,in,kcopy,sigma);
|
37
40
|
for (i = 0;i < 64;++i) c[i] = m[i] ^ block[i];
|
38
41
|
|
39
42
|
u = 1;
|
@@ -49,9 +52,12 @@ int crypto_stream_xor(
|
|
49
52
|
}
|
50
53
|
|
51
54
|
if (mlen) {
|
52
|
-
crypto_core_salsa20(block,in,
|
55
|
+
crypto_core_salsa20(block,in,kcopy,sigma);
|
53
56
|
for (i = 0;i < mlen;++i) c[i] = m[i] ^ block[i];
|
54
57
|
}
|
58
|
+
sodium_memzero(block, sizeof block);
|
59
|
+
sodium_memzero(kcopy, sizeof kcopy);
|
60
|
+
|
55
61
|
return 0;
|
56
62
|
}
|
57
63
|
|
@@ -5,7 +5,6 @@
|
|
5
5
|
#define crypto_stream_xor crypto_stream_salsa2012_xor
|
6
6
|
#define crypto_stream_KEYBYTES crypto_stream_salsa2012_KEYBYTES
|
7
7
|
#define crypto_stream_NONCEBYTES crypto_stream_salsa2012_NONCEBYTES
|
8
|
-
#define crypto_stream_PRIMITIVE "salsa2012"
|
9
8
|
#define crypto_stream_IMPLEMENTATION crypto_stream_salsa2012_IMPLEMENTATION
|
10
9
|
#define crypto_stream_VERSION crypto_stream_salsa2012_VERSION
|
11
10
|
|
@@ -5,6 +5,5 @@
|
|
5
5
|
#define crypto_stream_xor crypto_stream_salsa208_xor
|
6
6
|
#define crypto_stream_KEYBYTES crypto_stream_salsa208_KEYBYTES
|
7
7
|
#define crypto_stream_NONCEBYTES crypto_stream_salsa208_NONCEBYTES
|
8
|
-
#define crypto_stream_PRIMITIVE "salsa208"
|
9
8
|
#define crypto_stream_IMPLEMENTATION crypto_stream_salsa208_IMPLEMENTATION
|
10
9
|
#define crypto_stream_VERSION crypto_stream_salsa208_VERSION
|
@@ -5,7 +5,6 @@
|
|
5
5
|
#define crypto_stream_xor crypto_stream_xsalsa20_xor
|
6
6
|
#define crypto_stream_KEYBYTES crypto_stream_xsalsa20_KEYBYTES
|
7
7
|
#define crypto_stream_NONCEBYTES crypto_stream_xsalsa20_NONCEBYTES
|
8
|
-
#define crypto_stream_PRIMITIVE "xsalsa20"
|
9
8
|
#define crypto_stream_IMPLEMENTATION crypto_stream_xsalsa20_IMPLEMENTATION
|
10
9
|
#define crypto_stream_VERSION crypto_stream_xsalsa20_VERSION
|
11
10
|
|
@@ -0,0 +1,72 @@
|
|
1
|
+
#include "api.h"
|
2
|
+
|
3
|
+
int crypto_verify_64(const unsigned char *x,const unsigned char *y)
|
4
|
+
{
|
5
|
+
unsigned int differentbits = 0;
|
6
|
+
#define F(i) differentbits |= x[i] ^ y[i];
|
7
|
+
F(0)
|
8
|
+
F(1)
|
9
|
+
F(2)
|
10
|
+
F(3)
|
11
|
+
F(4)
|
12
|
+
F(5)
|
13
|
+
F(6)
|
14
|
+
F(7)
|
15
|
+
F(8)
|
16
|
+
F(9)
|
17
|
+
F(10)
|
18
|
+
F(11)
|
19
|
+
F(12)
|
20
|
+
F(13)
|
21
|
+
F(14)
|
22
|
+
F(15)
|
23
|
+
F(16)
|
24
|
+
F(17)
|
25
|
+
F(18)
|
26
|
+
F(19)
|
27
|
+
F(20)
|
28
|
+
F(21)
|
29
|
+
F(22)
|
30
|
+
F(23)
|
31
|
+
F(24)
|
32
|
+
F(25)
|
33
|
+
F(26)
|
34
|
+
F(27)
|
35
|
+
F(28)
|
36
|
+
F(29)
|
37
|
+
F(30)
|
38
|
+
F(31)
|
39
|
+
F(32)
|
40
|
+
F(33)
|
41
|
+
F(34)
|
42
|
+
F(35)
|
43
|
+
F(36)
|
44
|
+
F(37)
|
45
|
+
F(38)
|
46
|
+
F(39)
|
47
|
+
F(40)
|
48
|
+
F(41)
|
49
|
+
F(42)
|
50
|
+
F(43)
|
51
|
+
F(44)
|
52
|
+
F(45)
|
53
|
+
F(46)
|
54
|
+
F(47)
|
55
|
+
F(48)
|
56
|
+
F(49)
|
57
|
+
F(50)
|
58
|
+
F(51)
|
59
|
+
F(52)
|
60
|
+
F(53)
|
61
|
+
F(54)
|
62
|
+
F(55)
|
63
|
+
F(56)
|
64
|
+
F(57)
|
65
|
+
F(58)
|
66
|
+
F(59)
|
67
|
+
F(60)
|
68
|
+
F(61)
|
69
|
+
F(62)
|
70
|
+
F(63)
|
71
|
+
return (1 & ((differentbits - 1) >> 8)) - 1;
|
72
|
+
}
|
@@ -4,6 +4,7 @@ SODIUM_EXPORT = \
|
|
4
4
|
sodium/core.h \
|
5
5
|
sodium/crypto_auth.h \
|
6
6
|
sodium/crypto_auth_hmacsha256.h \
|
7
|
+
sodium/crypto_auth_hmacsha512.h \
|
7
8
|
sodium/crypto_auth_hmacsha512256.h \
|
8
9
|
sodium/crypto_box.h \
|
9
10
|
sodium/crypto_box_curve25519xsalsa20poly1305.h \
|
@@ -16,13 +17,12 @@ SODIUM_EXPORT = \
|
|
16
17
|
sodium/crypto_hash.h \
|
17
18
|
sodium/crypto_hash_sha256.h \
|
18
19
|
sodium/crypto_hash_sha512.h \
|
19
|
-
sodium/crypto_hashblocks_sha256.h \
|
20
|
-
sodium/crypto_hashblocks_sha512.h \
|
21
20
|
sodium/crypto_onetimeauth.h \
|
22
21
|
sodium/crypto_onetimeauth_poly1305.h \
|
23
|
-
sodium/crypto_onetimeauth_poly1305_53.h \
|
24
22
|
sodium/crypto_onetimeauth_poly1305_donna.h \
|
23
|
+
sodium/crypto_pwhash_scryptxsalsa208sha256.h \
|
25
24
|
sodium/crypto_scalarmult.h \
|
25
|
+
sodium/crypto_scalarmult_curve25519.h \
|
26
26
|
sodium/crypto_secretbox.h \
|
27
27
|
sodium/crypto_secretbox_xsalsa20poly1305.h \
|
28
28
|
sodium/crypto_shorthash.h \
|
@@ -33,6 +33,7 @@ SODIUM_EXPORT = \
|
|
33
33
|
sodium/crypto_stream.h \
|
34
34
|
sodium/crypto_stream_aes128ctr.h \
|
35
35
|
sodium/crypto_stream_aes256estream.h \
|
36
|
+
sodium/crypto_stream_salsa20.h \
|
36
37
|
sodium/crypto_stream_salsa2012.h \
|
37
38
|
sodium/crypto_stream_salsa208.h \
|
38
39
|
sodium/crypto_stream_xsalsa20.h \
|
@@ -44,20 +45,18 @@ SODIUM_EXPORT = \
|
|
44
45
|
sodium/crypto_uint8.h \
|
45
46
|
sodium/crypto_verify_16.h \
|
46
47
|
sodium/crypto_verify_32.h \
|
48
|
+
sodium/crypto_verify_64.h \
|
47
49
|
sodium/export.h \
|
48
50
|
sodium/randombytes.h \
|
49
51
|
sodium/randombytes_salsa20_random.h \
|
50
52
|
sodium/randombytes_sysrandom.h \
|
53
|
+
sodium/runtime.h \
|
51
54
|
sodium/utils.h
|
52
55
|
|
53
56
|
EXTRA_SRC = $(SODIUM_EXPORT) \
|
54
|
-
sodium/crypto_scalarmult_curve25519.h.in \
|
55
|
-
sodium/crypto_stream_salsa20.h.in \
|
56
57
|
sodium/version.h.in
|
57
58
|
|
58
59
|
nobase_include_HEADERS = $(SODIUM_EXPORT)
|
59
60
|
|
60
61
|
nobase_nodist_include_HEADERS = \
|
61
|
-
sodium/crypto_scalarmult_curve25519.h \
|
62
|
-
sodium/crypto_stream_salsa20.h \
|
63
62
|
sodium/version.h
|
@@ -5,6 +5,7 @@
|
|
5
5
|
#include <sodium/core.h>
|
6
6
|
#include <sodium/crypto_auth.h>
|
7
7
|
#include <sodium/crypto_auth_hmacsha256.h>
|
8
|
+
#include <sodium/crypto_auth_hmacsha512.h>
|
8
9
|
#include <sodium/crypto_auth_hmacsha512256.h>
|
9
10
|
#include <sodium/crypto_box.h>
|
10
11
|
#include <sodium/crypto_box_curve25519xsalsa20poly1305.h>
|
@@ -17,10 +18,9 @@
|
|
17
18
|
#include <sodium/crypto_hash.h>
|
18
19
|
#include <sodium/crypto_hash_sha256.h>
|
19
20
|
#include <sodium/crypto_hash_sha512.h>
|
20
|
-
#include <sodium/crypto_hashblocks_sha256.h>
|
21
|
-
#include <sodium/crypto_hashblocks_sha512.h>
|
22
21
|
#include <sodium/crypto_onetimeauth.h>
|
23
22
|
#include <sodium/crypto_onetimeauth_poly1305.h>
|
23
|
+
#include <sodium/crypto_pwhash_scryptxsalsa208sha256.h>
|
24
24
|
#include <sodium/crypto_scalarmult.h>
|
25
25
|
#include <sodium/crypto_scalarmult_curve25519.h>
|
26
26
|
#include <sodium/crypto_secretbox.h>
|
@@ -29,7 +29,6 @@
|
|
29
29
|
#include <sodium/crypto_shorthash_siphash24.h>
|
30
30
|
#include <sodium/crypto_sign.h>
|
31
31
|
#include <sodium/crypto_sign_ed25519.h>
|
32
|
-
#include <sodium/crypto_sign_edwards25519sha512batch.h>
|
33
32
|
#include <sodium/crypto_stream.h>
|
34
33
|
#include <sodium/crypto_stream_aes128ctr.h>
|
35
34
|
#include <sodium/crypto_stream_aes256estream.h>
|
@@ -39,9 +38,11 @@
|
|
39
38
|
#include <sodium/crypto_stream_xsalsa20.h>
|
40
39
|
#include <sodium/crypto_verify_16.h>
|
41
40
|
#include <sodium/crypto_verify_32.h>
|
41
|
+
#include <sodium/crypto_verify_64.h>
|
42
42
|
#include <sodium/randombytes.h>
|
43
43
|
#include <sodium/randombytes_salsa20_random.h>
|
44
44
|
#include <sodium/randombytes_sysrandom.h>
|
45
|
+
#include <sodium/runtime.h>
|
45
46
|
#include <sodium/utils.h>
|
46
47
|
#include <sodium/version.h>
|
47
48
|
|
@@ -2,35 +2,57 @@
|
|
2
2
|
#define crypto_auth_hmacsha256_H
|
3
3
|
|
4
4
|
#include <stddef.h>
|
5
|
+
#include "crypto_hash_sha256.h"
|
5
6
|
#include "export.h"
|
6
7
|
|
7
|
-
#define crypto_auth_hmacsha256_BYTES 32U
|
8
|
-
#define crypto_auth_hmacsha256_KEYBYTES 32U
|
9
|
-
|
10
8
|
#ifdef __cplusplus
|
9
|
+
# if __GNUC__
|
10
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
11
|
+
# endif
|
11
12
|
extern "C" {
|
12
13
|
#endif
|
13
14
|
|
15
|
+
typedef struct crypto_auth_hmacsha256_state {
|
16
|
+
crypto_hash_sha256_state ictx;
|
17
|
+
crypto_hash_sha256_state octx;
|
18
|
+
} crypto_auth_hmacsha256_state;
|
19
|
+
|
20
|
+
#define crypto_auth_hmacsha256_BYTES 32U
|
14
21
|
SODIUM_EXPORT
|
15
22
|
size_t crypto_auth_hmacsha256_bytes(void);
|
16
23
|
|
24
|
+
#define crypto_auth_hmacsha256_KEYBYTES 32U
|
17
25
|
SODIUM_EXPORT
|
18
26
|
size_t crypto_auth_hmacsha256_keybytes(void);
|
19
27
|
|
20
28
|
SODIUM_EXPORT
|
21
|
-
|
29
|
+
int crypto_auth_hmacsha256(unsigned char *out,
|
30
|
+
const unsigned char *in,
|
31
|
+
unsigned long long inlen,
|
32
|
+
const unsigned char *k);
|
22
33
|
|
23
34
|
SODIUM_EXPORT
|
24
|
-
int
|
35
|
+
int crypto_auth_hmacsha256_verify(const unsigned char *h,
|
36
|
+
const unsigned char *in,
|
37
|
+
unsigned long long inlen,
|
38
|
+
const unsigned char *k);
|
25
39
|
|
26
40
|
SODIUM_EXPORT
|
27
|
-
int
|
41
|
+
int crypto_auth_hmacsha256_init(crypto_auth_hmacsha256_state *state,
|
42
|
+
const unsigned char *key,
|
43
|
+
size_t keylen);
|
44
|
+
|
45
|
+
SODIUM_EXPORT
|
46
|
+
int crypto_auth_hmacsha256_update(crypto_auth_hmacsha256_state *state,
|
47
|
+
const unsigned char *in,
|
48
|
+
unsigned long long inlen);
|
49
|
+
|
50
|
+
SODIUM_EXPORT
|
51
|
+
int crypto_auth_hmacsha256_final(crypto_auth_hmacsha256_state *state,
|
52
|
+
unsigned char *out);
|
28
53
|
|
29
54
|
#ifdef __cplusplus
|
30
55
|
}
|
31
56
|
#endif
|
32
57
|
|
33
|
-
#define crypto_auth_hmacsha256_ref crypto_auth_hmacsha256
|
34
|
-
#define crypto_auth_hmacsha256_ref_verify crypto_auth_hmacsha256_verify
|
35
|
-
|
36
58
|
#endif
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#ifndef crypto_auth_hmacsha512_H
|
2
|
+
#define crypto_auth_hmacsha512_H
|
3
|
+
|
4
|
+
#include <stddef.h>
|
5
|
+
#include "crypto_hash_sha512.h"
|
6
|
+
#include "export.h"
|
7
|
+
|
8
|
+
#ifdef __cplusplus
|
9
|
+
# if __GNUC__
|
10
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
11
|
+
# endif
|
12
|
+
extern "C" {
|
13
|
+
#endif
|
14
|
+
|
15
|
+
typedef struct crypto_auth_hmacsha512_state {
|
16
|
+
crypto_hash_sha512_state ictx;
|
17
|
+
crypto_hash_sha512_state octx;
|
18
|
+
} crypto_auth_hmacsha512_state;
|
19
|
+
|
20
|
+
#define crypto_auth_hmacsha512_BYTES 64U
|
21
|
+
SODIUM_EXPORT
|
22
|
+
size_t crypto_auth_hmacsha512_bytes(void);
|
23
|
+
|
24
|
+
#define crypto_auth_hmacsha512_KEYBYTES 32U
|
25
|
+
SODIUM_EXPORT
|
26
|
+
size_t crypto_auth_hmacsha512_keybytes(void);
|
27
|
+
|
28
|
+
SODIUM_EXPORT
|
29
|
+
int crypto_auth_hmacsha512(unsigned char *out,
|
30
|
+
const unsigned char *in,
|
31
|
+
unsigned long long inlen,
|
32
|
+
const unsigned char *k);
|
33
|
+
|
34
|
+
SODIUM_EXPORT
|
35
|
+
int crypto_auth_hmacsha512_verify(const unsigned char *h,
|
36
|
+
const unsigned char *in,
|
37
|
+
unsigned long long inlen,
|
38
|
+
const unsigned char *k);
|
39
|
+
|
40
|
+
SODIUM_EXPORT
|
41
|
+
int crypto_auth_hmacsha512_init(crypto_auth_hmacsha512_state *state,
|
42
|
+
const unsigned char *key,
|
43
|
+
size_t keylen);
|
44
|
+
|
45
|
+
SODIUM_EXPORT
|
46
|
+
int crypto_auth_hmacsha512_update(crypto_auth_hmacsha512_state *state,
|
47
|
+
const unsigned char *in,
|
48
|
+
unsigned long long inlen);
|
49
|
+
|
50
|
+
SODIUM_EXPORT
|
51
|
+
int crypto_auth_hmacsha512_final(crypto_auth_hmacsha512_state *state,
|
52
|
+
unsigned char *out);
|
53
|
+
|
54
|
+
#ifdef __cplusplus
|
55
|
+
}
|
56
|
+
#endif
|
57
|
+
|
58
|
+
#endif
|