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,21 +1,30 @@
|
|
1
1
|
#ifndef crypto_hash_H
|
2
2
|
#define crypto_hash_H
|
3
3
|
|
4
|
+
#include <stddef.h>
|
5
|
+
|
4
6
|
#include "crypto_hash_sha512.h"
|
5
7
|
#include "export.h"
|
6
8
|
|
7
|
-
#define crypto_hash_BYTES crypto_hash_sha512_BYTES
|
8
|
-
#define crypto_hash_BLOCKBYTES crypto_hash_sha512_BLOCKBYTES
|
9
|
-
#define crypto_hash_PRIMITIVE "sha512"
|
10
|
-
|
11
9
|
#ifdef __cplusplus
|
10
|
+
# if __GNUC__
|
11
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
12
|
+
# endif
|
12
13
|
extern "C" {
|
13
14
|
#endif
|
14
15
|
|
16
|
+
#define crypto_hash_BYTES crypto_hash_sha512_BYTES
|
17
|
+
SODIUM_EXPORT
|
18
|
+
size_t crypto_hash_bytes(void);
|
19
|
+
|
15
20
|
SODIUM_EXPORT
|
16
21
|
int crypto_hash(unsigned char *out, const unsigned char *in,
|
17
22
|
unsigned long long inlen);
|
18
23
|
|
24
|
+
#define crypto_hash_PRIMITIVE "sha512"
|
25
|
+
SODIUM_EXPORT
|
26
|
+
const char *crypto_hash_primitive(void);
|
27
|
+
|
19
28
|
#ifdef __cplusplus
|
20
29
|
}
|
21
30
|
#endif
|
@@ -2,28 +2,46 @@
|
|
2
2
|
#define crypto_hash_sha256_H
|
3
3
|
|
4
4
|
#include <stddef.h>
|
5
|
-
#include
|
5
|
+
#include <stdint.h>
|
6
|
+
#include <stdlib.h>
|
6
7
|
|
7
|
-
#
|
8
|
-
#define crypto_hash_sha256_BLOCKBYTES 64U
|
8
|
+
#include "export.h"
|
9
9
|
|
10
10
|
#ifdef __cplusplus
|
11
|
+
# if __GNUC__
|
12
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
13
|
+
# endif
|
11
14
|
extern "C" {
|
12
15
|
#endif
|
13
16
|
|
17
|
+
typedef struct crypto_hash_sha256_state {
|
18
|
+
uint32_t state[8];
|
19
|
+
uint32_t count[2];
|
20
|
+
unsigned char buf[64];
|
21
|
+
} crypto_hash_sha256_state;
|
22
|
+
|
23
|
+
#define crypto_hash_sha256_BYTES 32U
|
14
24
|
SODIUM_EXPORT
|
15
25
|
size_t crypto_hash_sha256_bytes(void);
|
16
26
|
|
17
27
|
SODIUM_EXPORT
|
18
|
-
const char *
|
28
|
+
int crypto_hash_sha256(unsigned char *out, const unsigned char *in,
|
29
|
+
unsigned long long inlen);
|
19
30
|
|
20
31
|
SODIUM_EXPORT
|
21
|
-
int
|
32
|
+
int crypto_hash_sha256_init(crypto_hash_sha256_state *state);
|
33
|
+
|
34
|
+
SODIUM_EXPORT
|
35
|
+
int crypto_hash_sha256_update(crypto_hash_sha256_state *state,
|
36
|
+
const unsigned char *in,
|
37
|
+
unsigned long long inlen);
|
38
|
+
|
39
|
+
SODIUM_EXPORT
|
40
|
+
int crypto_hash_sha256_final(crypto_hash_sha256_state *state,
|
41
|
+
unsigned char *out);
|
22
42
|
|
23
43
|
#ifdef __cplusplus
|
24
44
|
}
|
25
45
|
#endif
|
26
46
|
|
27
|
-
#define crypto_hash_sha256_ref crypto_hash_sha256
|
28
|
-
|
29
47
|
#endif
|
@@ -2,28 +2,46 @@
|
|
2
2
|
#define crypto_hash_sha512_H
|
3
3
|
|
4
4
|
#include <stddef.h>
|
5
|
-
#include
|
5
|
+
#include <stdint.h>
|
6
|
+
#include <stdlib.h>
|
6
7
|
|
7
|
-
#
|
8
|
-
#define crypto_hash_sha512_BLOCKBYTES 128U
|
8
|
+
#include "export.h"
|
9
9
|
|
10
10
|
#ifdef __cplusplus
|
11
|
+
# if __GNUC__
|
12
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
13
|
+
# endif
|
11
14
|
extern "C" {
|
12
15
|
#endif
|
13
16
|
|
17
|
+
typedef struct crypto_hash_sha512_state {
|
18
|
+
uint64_t state[8];
|
19
|
+
uint64_t count[2];
|
20
|
+
unsigned char buf[128];
|
21
|
+
} crypto_hash_sha512_state;
|
22
|
+
|
23
|
+
#define crypto_hash_sha512_BYTES 64U
|
14
24
|
SODIUM_EXPORT
|
15
25
|
size_t crypto_hash_sha512_bytes(void);
|
16
26
|
|
17
27
|
SODIUM_EXPORT
|
18
|
-
const char *
|
28
|
+
int crypto_hash_sha512(unsigned char *out, const unsigned char *in,
|
29
|
+
unsigned long long inlen);
|
19
30
|
|
20
31
|
SODIUM_EXPORT
|
21
|
-
int
|
32
|
+
int crypto_hash_sha512_init(crypto_hash_sha512_state *state);
|
33
|
+
|
34
|
+
SODIUM_EXPORT
|
35
|
+
int crypto_hash_sha512_update(crypto_hash_sha512_state *state,
|
36
|
+
const unsigned char *in,
|
37
|
+
unsigned long long inlen);
|
38
|
+
|
39
|
+
SODIUM_EXPORT
|
40
|
+
int crypto_hash_sha512_final(crypto_hash_sha512_state *state,
|
41
|
+
unsigned char *out);
|
22
42
|
|
23
43
|
#ifdef __cplusplus
|
24
44
|
}
|
25
45
|
#endif
|
26
46
|
|
27
|
-
#define crypto_hash_sha512_ref crypto_hash_sha512
|
28
|
-
|
29
47
|
#endif
|
@@ -4,9 +4,10 @@
|
|
4
4
|
#include <stddef.h>
|
5
5
|
#include "export.h"
|
6
6
|
|
7
|
-
#define crypto_onetimeauth_poly1305_BYTES 16U
|
8
|
-
#define crypto_onetimeauth_poly1305_KEYBYTES 32U
|
9
7
|
#ifdef __cplusplus
|
8
|
+
# if __GNUC__
|
9
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
10
|
+
# endif
|
10
11
|
extern "C" {
|
11
12
|
#endif
|
12
13
|
|
@@ -27,15 +28,14 @@ typedef struct crypto_onetimeauth_poly1305_implementation {
|
|
27
28
|
const unsigned char *k);
|
28
29
|
} crypto_onetimeauth_poly1305_implementation;
|
29
30
|
|
31
|
+
#define crypto_onetimeauth_poly1305_BYTES 16U
|
30
32
|
SODIUM_EXPORT
|
31
33
|
size_t crypto_onetimeauth_poly1305_bytes(void);
|
32
34
|
|
35
|
+
#define crypto_onetimeauth_poly1305_KEYBYTES 32U
|
33
36
|
SODIUM_EXPORT
|
34
37
|
size_t crypto_onetimeauth_poly1305_keybytes(void);
|
35
38
|
|
36
|
-
SODIUM_EXPORT
|
37
|
-
const char * crypto_onetimeauth_poly1305_primitive(void);
|
38
|
-
|
39
39
|
SODIUM_EXPORT
|
40
40
|
const char *crypto_onetimeauth_poly1305_implementation_name(void);
|
41
41
|
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#ifndef crypto_pwhash_scryptxsalsa208sha256_H
|
2
|
+
#define crypto_pwhash_scryptxsalsa208sha256_H
|
3
|
+
|
4
|
+
#include <stddef.h>
|
5
|
+
|
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
|
+
#define crypto_pwhash_scryptxsalsa208sha256_SALTBYTES 32
|
16
|
+
SODIUM_EXPORT
|
17
|
+
size_t crypto_pwhash_scryptxsalsa208sha256_saltbytes(void);
|
18
|
+
|
19
|
+
#define crypto_pwhash_scryptxsalsa208sha256_STRBYTES 102
|
20
|
+
SODIUM_EXPORT
|
21
|
+
size_t crypto_pwhash_scryptxsalsa208sha256_strbytes(void);
|
22
|
+
|
23
|
+
SODIUM_EXPORT
|
24
|
+
int crypto_pwhash_scryptxsalsa208sha256(unsigned char * const out,
|
25
|
+
unsigned long long outlen,
|
26
|
+
const char * const passwd,
|
27
|
+
unsigned long long passwdlen,
|
28
|
+
const unsigned char * const salt,
|
29
|
+
unsigned long long opslimit,
|
30
|
+
size_t memlimit);
|
31
|
+
|
32
|
+
SODIUM_EXPORT
|
33
|
+
int crypto_pwhash_scryptxsalsa208sha256_str(char out[crypto_pwhash_scryptxsalsa208sha256_STRBYTES],
|
34
|
+
const char * const passwd,
|
35
|
+
unsigned long long passwdlen,
|
36
|
+
unsigned long long opslimit,
|
37
|
+
size_t memlimit);
|
38
|
+
|
39
|
+
SODIUM_EXPORT
|
40
|
+
int crypto_pwhash_scryptxsalsa208sha256_str_verify(const char str[crypto_pwhash_scryptxsalsa208sha256_STRBYTES],
|
41
|
+
const char * const passwd,
|
42
|
+
unsigned long long passwdlen);
|
43
|
+
|
44
|
+
#ifdef __cplusplus
|
45
|
+
}
|
46
|
+
#endif
|
47
|
+
|
48
|
+
#endif
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#ifndef crypto_scalarmult_curve25519_H
|
2
|
+
#define crypto_scalarmult_curve25519_H
|
3
|
+
|
4
|
+
#include <stddef.h>
|
5
|
+
|
6
|
+
#include "export.h"
|
7
|
+
|
8
|
+
#ifdef __cplusplus
|
9
|
+
extern "C" {
|
10
|
+
#endif
|
11
|
+
|
12
|
+
#define crypto_scalarmult_curve25519_BYTES 32
|
13
|
+
SODIUM_EXPORT
|
14
|
+
size_t crypto_scalarmult_curve25519_bytes(void);
|
15
|
+
|
16
|
+
#define crypto_scalarmult_curve25519_SCALARBYTES 32
|
17
|
+
SODIUM_EXPORT
|
18
|
+
size_t crypto_scalarmult_curve25519_scalarbytes(void);
|
19
|
+
|
20
|
+
SODIUM_EXPORT
|
21
|
+
int crypto_scalarmult_curve25519(unsigned char *q, const unsigned char *n,
|
22
|
+
const unsigned char *p);
|
23
|
+
|
24
|
+
SODIUM_EXPORT
|
25
|
+
int crypto_scalarmult_curve25519_base(unsigned char *q, const unsigned char *n);
|
26
|
+
|
27
|
+
#ifdef __cplusplus
|
28
|
+
}
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#endif
|
@@ -7,6 +7,9 @@
|
|
7
7
|
#include "export.h"
|
8
8
|
|
9
9
|
#ifdef __cplusplus
|
10
|
+
# if __GNUC__
|
11
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
12
|
+
# endif
|
10
13
|
extern "C" {
|
11
14
|
#endif
|
12
15
|
|
@@ -26,6 +29,10 @@ size_t crypto_secretbox_zerobytes(void);
|
|
26
29
|
SODIUM_EXPORT
|
27
30
|
size_t crypto_secretbox_boxzerobytes(void);
|
28
31
|
|
32
|
+
#define crypto_secretbox_MACBYTES crypto_secretbox_xsalsa20poly1305_MACBYTES
|
33
|
+
SODIUM_EXPORT
|
34
|
+
size_t crypto_secretbox_macbytes(void);
|
35
|
+
|
29
36
|
#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305"
|
30
37
|
SODIUM_EXPORT
|
31
38
|
const char *crypto_secretbox_primitive(void);
|
@@ -40,6 +47,16 @@ int crypto_secretbox_open(unsigned char *m, const unsigned char *c,
|
|
40
47
|
unsigned long long clen, const unsigned char *n,
|
41
48
|
const unsigned char *k);
|
42
49
|
|
50
|
+
SODIUM_EXPORT
|
51
|
+
int crypto_secretbox_easy(unsigned char *c, const unsigned char *m,
|
52
|
+
unsigned long long mlen, const unsigned char *n,
|
53
|
+
const unsigned char *k);
|
54
|
+
|
55
|
+
SODIUM_EXPORT
|
56
|
+
int crypto_secretbox_open_easy(unsigned char *m, const unsigned char *c,
|
57
|
+
unsigned long long clen, const unsigned char *n,
|
58
|
+
const unsigned char *k);
|
59
|
+
|
43
60
|
#ifdef __cplusplus
|
44
61
|
}
|
45
62
|
#endif
|
@@ -4,41 +4,51 @@
|
|
4
4
|
#include <stddef.h>
|
5
5
|
#include "export.h"
|
6
6
|
|
7
|
-
#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U
|
8
|
-
#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U
|
9
|
-
#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES 32U
|
10
|
-
#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U
|
11
|
-
|
12
7
|
#ifdef __cplusplus
|
8
|
+
# if __GNUC__
|
9
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
10
|
+
# endif
|
13
11
|
extern "C" {
|
14
12
|
#endif
|
15
13
|
|
14
|
+
#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U
|
16
15
|
SODIUM_EXPORT
|
17
16
|
size_t crypto_secretbox_xsalsa20poly1305_keybytes(void);
|
18
17
|
|
18
|
+
#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U
|
19
19
|
SODIUM_EXPORT
|
20
20
|
size_t crypto_secretbox_xsalsa20poly1305_noncebytes(void);
|
21
21
|
|
22
|
+
#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES 32U
|
22
23
|
SODIUM_EXPORT
|
23
24
|
size_t crypto_secretbox_xsalsa20poly1305_zerobytes(void);
|
24
25
|
|
26
|
+
#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U
|
25
27
|
SODIUM_EXPORT
|
26
28
|
size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes(void);
|
27
29
|
|
30
|
+
#define crypto_secretbox_xsalsa20poly1305_MACBYTES \
|
31
|
+
(crypto_secretbox_xsalsa20poly1305_ZEROBYTES - \
|
32
|
+
crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES)
|
28
33
|
SODIUM_EXPORT
|
29
|
-
|
34
|
+
size_t crypto_secretbox_xsalsa20poly1305_macbytes(void);
|
30
35
|
|
31
36
|
SODIUM_EXPORT
|
32
|
-
int crypto_secretbox_xsalsa20poly1305(unsigned char
|
37
|
+
int crypto_secretbox_xsalsa20poly1305(unsigned char *c,
|
38
|
+
const unsigned char *m,
|
39
|
+
unsigned long long mlen,
|
40
|
+
const unsigned char *n,
|
41
|
+
const unsigned char *k);
|
33
42
|
|
34
43
|
SODIUM_EXPORT
|
35
|
-
int crypto_secretbox_xsalsa20poly1305_open(unsigned char
|
44
|
+
int crypto_secretbox_xsalsa20poly1305_open(unsigned char *m,
|
45
|
+
const unsigned char *c,
|
46
|
+
unsigned long long clen,
|
47
|
+
const unsigned char *n,
|
48
|
+
const unsigned char *k);
|
36
49
|
|
37
50
|
#ifdef __cplusplus
|
38
51
|
}
|
39
52
|
#endif
|
40
53
|
|
41
|
-
#define crypto_secretbox_xsalsa20poly1305_ref crypto_secretbox_xsalsa20poly1305
|
42
|
-
#define crypto_secretbox_xsalsa20poly1305_ref_open crypto_secretbox_xsalsa20poly1305_open
|
43
|
-
|
44
54
|
#endif
|
@@ -4,26 +4,27 @@
|
|
4
4
|
#include <stddef.h>
|
5
5
|
#include "export.h"
|
6
6
|
|
7
|
-
#define crypto_shorthash_siphash24_BYTES 8U
|
8
|
-
#define crypto_shorthash_siphash24_KEYBYTES 16U
|
9
|
-
|
10
7
|
#ifdef __cplusplus
|
8
|
+
# if __GNUC__
|
9
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
10
|
+
# endif
|
11
11
|
extern "C" {
|
12
12
|
#endif
|
13
13
|
|
14
|
+
#define crypto_shorthash_siphash24_BYTES 8U
|
14
15
|
SODIUM_EXPORT
|
15
16
|
size_t crypto_shorthash_siphash24_bytes(void);
|
16
17
|
|
18
|
+
#define crypto_shorthash_siphash24_KEYBYTES 16U
|
17
19
|
SODIUM_EXPORT
|
18
|
-
|
20
|
+
size_t crypto_shorthash_siphash24_keybytes(void);
|
19
21
|
|
20
22
|
SODIUM_EXPORT
|
21
|
-
int crypto_shorthash_siphash24(unsigned char
|
23
|
+
int crypto_shorthash_siphash24(unsigned char *out, const unsigned char *in,
|
24
|
+
unsigned long long inlen, const unsigned char *k);
|
22
25
|
|
23
26
|
#ifdef __cplusplus
|
24
27
|
}
|
25
28
|
#endif
|
26
29
|
|
27
|
-
#define crypto_shorthash_siphash24_ref crypto_shorthash_siphash24
|
28
|
-
|
29
30
|
#endif
|
@@ -4,49 +4,48 @@
|
|
4
4
|
#include <stddef.h>
|
5
5
|
#include "export.h"
|
6
6
|
|
7
|
-
#define crypto_sign_ed25519_SECRETKEYBYTES 64U
|
8
|
-
#define crypto_sign_ed25519_PUBLICKEYBYTES 32U
|
9
|
-
#define crypto_sign_ed25519_SEEDBYTES 32U
|
10
|
-
#define crypto_sign_ed25519_BYTES 64U
|
11
|
-
|
12
7
|
#ifdef __cplusplus
|
8
|
+
# if __GNUC__
|
9
|
+
# pragma GCC diagnostic ignored "-Wlong-long"
|
10
|
+
# endif
|
13
11
|
extern "C" {
|
14
12
|
#endif
|
15
13
|
|
14
|
+
#define crypto_sign_ed25519_BYTES 64U
|
16
15
|
SODIUM_EXPORT
|
17
16
|
size_t crypto_sign_ed25519_bytes(void);
|
18
17
|
|
18
|
+
#define crypto_sign_ed25519_SEEDBYTES 32U
|
19
19
|
SODIUM_EXPORT
|
20
20
|
size_t crypto_sign_ed25519_seedbytes(void);
|
21
21
|
|
22
|
+
#define crypto_sign_ed25519_PUBLICKEYBYTES 32U
|
22
23
|
SODIUM_EXPORT
|
23
24
|
size_t crypto_sign_ed25519_publickeybytes(void);
|
24
25
|
|
26
|
+
#define crypto_sign_ed25519_SECRETKEYBYTES (32U + 32U)
|
25
27
|
SODIUM_EXPORT
|
26
28
|
size_t crypto_sign_ed25519_secretkeybytes(void);
|
27
29
|
|
28
30
|
SODIUM_EXPORT
|
29
|
-
|
31
|
+
int crypto_sign_ed25519(unsigned char *sm, unsigned long long *smlen,
|
32
|
+
const unsigned char *m, unsigned long long mlen,
|
33
|
+
const unsigned char *sk);
|
30
34
|
|
31
35
|
SODIUM_EXPORT
|
32
|
-
int
|
36
|
+
int crypto_sign_ed25519_open(unsigned char *m, unsigned long long *mlen,
|
37
|
+
const unsigned char *sm, unsigned long long smlen,
|
38
|
+
const unsigned char *pk);
|
33
39
|
|
34
40
|
SODIUM_EXPORT
|
35
|
-
int
|
41
|
+
int crypto_sign_ed25519_keypair(unsigned char *pk, unsigned char *sk);
|
36
42
|
|
37
43
|
SODIUM_EXPORT
|
38
|
-
int
|
39
|
-
|
40
|
-
SODIUM_EXPORT
|
41
|
-
int crypto_sign_ed25519_seed_keypair(unsigned char *,unsigned char *,const unsigned char *);
|
44
|
+
int crypto_sign_ed25519_seed_keypair(unsigned char *pk, unsigned char *sk,
|
45
|
+
const unsigned char *seed);
|
42
46
|
|
43
47
|
#ifdef __cplusplus
|
44
48
|
}
|
45
49
|
#endif
|
46
50
|
|
47
|
-
#define crypto_sign_ed25519_ref10 crypto_sign_ed25519
|
48
|
-
#define crypto_sign_ed25519_ref10_open crypto_sign_ed25519_open
|
49
|
-
#define crypto_sign_ed25519_ref10_keypair crypto_sign_ed25519_keypair
|
50
|
-
#define crypto_sign_ed25519_ref10_seed_keypair crypto_sign_ed25519_seed_keypair
|
51
|
-
|
52
51
|
#endif
|