rbnacl-libsodium 0.4.5a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +35 -0
- data/.gitmodules +3 -0
- data/CHANGES.md +3 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/README.md +23 -0
- data/Rakefile +1 -0
- data/ext/rbnacl/extconf.rb +30 -0
- data/lib/rbnacl/libsodium.rb +11 -0
- data/lib/rbnacl/libsodium/version.rb +5 -0
- data/rbnacl-libsodium.gemspec +25 -0
- data/vendor/libsodium/AUTHORS +101 -0
- data/vendor/libsodium/ChangeLog +68 -0
- data/vendor/libsodium/LICENSE +16 -0
- data/vendor/libsodium/Makefile.am +20 -0
- data/vendor/libsodium/README +1 -0
- data/vendor/libsodium/README.markdown +246 -0
- data/vendor/libsodium/THANKS +17 -0
- data/vendor/libsodium/autogen.sh +16 -0
- data/vendor/libsodium/configure.ac +405 -0
- data/vendor/libsodium/dist-build/android.sh +48 -0
- data/vendor/libsodium/dist-build/iphone.sh +16 -0
- data/vendor/libsodium/dist-build/msys.sh +9 -0
- data/vendor/libsodium/libsodium.pc.in +11 -0
- data/vendor/libsodium/libsodium.sln +38 -0
- data/vendor/libsodium/libsodium.vcxproj +508 -0
- data/vendor/libsodium/libsodium.vcxproj.filters +569 -0
- data/vendor/libsodium/logo.png +0 -0
- data/vendor/libsodium/m4/ax_check_compile_flag.m4 +73 -0
- data/vendor/libsodium/m4/ax_check_gnu_make.m4 +78 -0
- data/vendor/libsodium/m4/ax_check_link_flag.m4 +72 -0
- data/vendor/libsodium/m4/ld-output-def.m4 +29 -0
- data/vendor/libsodium/m4/pkg.m4 +214 -0
- data/vendor/libsodium/msvc-scripts/Makefile.am +4 -0
- data/vendor/libsodium/msvc-scripts/process.bat +8 -0
- data/vendor/libsodium/msvc-scripts/rep.vbs +12 -0
- data/vendor/libsodium/msvc-scripts/sodium.props +25 -0
- data/vendor/libsodium/src/Makefile.am +3 -0
- data/vendor/libsodium/src/libsodium/Makefile.am +232 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/crypto_auth.c +34 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/api.h +10 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/hmac_hmacsha256.c +83 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/ref/verify_hmacsha256.c +9 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/api.h +10 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/hmac_hmacsha512256.c +86 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/ref/verify_hmacsha512256.c +9 -0
- data/vendor/libsodium/src/libsodium/crypto_auth/try.c +119 -0
- data/vendor/libsodium/src/libsodium/crypto_box/crypto_box.c +95 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c +41 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c +22 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/api.h +19 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c +19 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c +27 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c +12 -0
- data/vendor/libsodium/src/libsodium/crypto_box/try.c +195 -0
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/core_hsalsa20_api.c +26 -0
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/api.h +11 -0
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.c +108 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/core_salsa20_api.c +26 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/api.h +11 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/core_salsa20.c +134 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/core_salsa2012_api.c +26 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/api.h +11 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/core_salsa2012.c +134 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/core_salsa208_api.c +26 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/api.h +11 -0
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/core_salsa208.c +134 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.c +31 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/api.h +4 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2-impl.h +132 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2.h +169 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +364 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2s-ref.c +355 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/generichash_blake2b.c +61 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +84 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/crypto_hash.c +9 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256_api.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/ref/api.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/ref/hash_sha256.c +69 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/ref/api.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/ref/hash_sha512.c +71 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/try.c +76 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/hashblocks_sha256_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/api.h +9 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha256/ref/blocks_sha256.c +212 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/hashblocks_sha512_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/api.h +9 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/sha512/ref/blocks_sha512.c +239 -0
- data/vendor/libsodium/src/libsodium/crypto_hashblocks/try.c +78 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.c +34 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/api.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305_53.c +1661 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/verify_poly1305_53.c +10 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/api.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c +151 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h +772 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/verify_poly1305_donna.c +10 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c +36 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c +152 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/crypto_scalarmult.c +34 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/api.h +9 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c +13 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +426 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/api.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/base_curve25519_ref.c +20 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/smult_curve25519_ref.c +268 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519_api.c +14 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/try.c +125 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c +48 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/try.c +129 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/api.h +12 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c +35 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.c +26 -0
- data/vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c +27 -0
- data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/api.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24.c +91 -0
- data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/crypto_sign.c +61 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/description +1 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/api.h +14 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/base.h +1344 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/base2.h +40 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/d.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/d2.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe.h +56 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_0.c +19 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_1.c +19 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_add.c +57 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_cmov.c +63 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_copy.c +29 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_frombytes.c +73 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_invert.c +14 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_isnegative.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_isnonzero.c +19 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_mul.c +253 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_neg.c +45 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_pow22523.c +13 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sq.c +149 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sq2.c +160 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sub.c +57 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_tobytes.c +119 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge.h +95 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_add.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_add.h +97 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_double_scalarmult.c +96 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_frombytes.c +50 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_madd.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_madd.h +88 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_msub.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_msub.h +88 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p1p1_to_p2.c +12 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p1p1_to_p3.c +13 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_0.c +8 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_dbl.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_dbl.h +73 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_0.c +9 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_dbl.c +12 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_to_cached.c +17 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_to_p2.c +12 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c +14 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_precomp_0.c +8 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_scalarmult_base.c +105 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_sub.c +11 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_sub.h +97 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_tobytes.c +14 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +31 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +40 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/pow22523.h +160 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/pow225521.h +160 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc.h +15 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc_muladd.c +368 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc_reduce.c +275 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +38 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sqrtm1.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c +26 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/api.h +13 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/fe25519.h +54 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c +348 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/ge25519.h +34 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/ge25519_edwards25519sha512batch.c +230 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519.h +51 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.c +146 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c +102 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c +21 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/try.c +87 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +159 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/api.h +14 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/beforenm_aes128ctr.c +59 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common.h +788 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common_aes128ctr.c +64 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/consts.h +28 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/consts_aes128ctr.c +14 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128.h +47 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128_aes128ctr.c +131 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c +28 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/types.h +10 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +181 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr_api.c +21 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-be.h +274 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-le.h +274 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table.h +56 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c +238 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h +171 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/api.h +14 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h +27 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/stream_aes256estream_api.c +21 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/crypto_stream.c +36 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/api.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S +950 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/api.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +55 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +58 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/api.h +11 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.c +51 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.c +54 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/api.h +10 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.c +51 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.c +54 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/try.c +122 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/api.h +11 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.c +24 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +25 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20_api.c +16 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/16/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/16/ref/api.h +2 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c +24 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/16/verify_16_api.c +6 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/32/checksum +1 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/32/ref/api.h +2 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c +40 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/32/verify_32_api.c +6 -0
- data/vendor/libsodium/src/libsodium/crypto_verify/try.c +76 -0
- data/vendor/libsodium/src/libsodium/include/Makefile.am +63 -0
- data/vendor/libsodium/src/libsodium/include/sodium.h +48 -0
- data/vendor/libsodium/src/libsodium/include/sodium/core.h +18 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth.h +36 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h +36 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h +36 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +83 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +72 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_hsalsa20.h +40 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa20.h +40 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa2012.h +40 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_salsa208.h +40 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash.h +70 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +87 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash.h +23 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +29 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +29 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha256.h +32 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hashblocks_sha512.h +32 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_int32.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_int64.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +37 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +65 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_53.h +34 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_donna.h +34 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult.h +36 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h.in +44 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +47 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +44 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash.h +33 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_shorthash_siphash24.h +29 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +61 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +52 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +44 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h +46 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h +60 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes256estream.h +61 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h.in +54 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h +43 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h +43 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +44 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint16.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint32.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint64.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_uint8.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_16.h +25 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_verify_32.h +25 -0
- data/vendor/libsodium/src/libsodium/include/sodium/export.h +32 -0
- data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +53 -0
- data/vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h +45 -0
- data/vendor/libsodium/src/libsodium/include/sodium/randombytes_sysrandom.h +45 -0
- data/vendor/libsodium/src/libsodium/include/sodium/utils.h +36 -0
- data/vendor/libsodium/src/libsodium/include/sodium/version.h.in +29 -0
- data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +63 -0
- data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +317 -0
- data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +212 -0
- data/vendor/libsodium/src/libsodium/sodium/compat.c +248 -0
- data/vendor/libsodium/src/libsodium/sodium/core.c +21 -0
- data/vendor/libsodium/src/libsodium/sodium/utils.c +94 -0
- data/vendor/libsodium/src/libsodium/sodium/version.c +20 -0
- data/vendor/libsodium/test/Makefile.am +5 -0
- data/vendor/libsodium/test/default/Makefile.am +277 -0
- data/vendor/libsodium/test/default/auth.c +21 -0
- data/vendor/libsodium/test/default/auth.exp +4 -0
- data/vendor/libsodium/test/default/auth2.c +36 -0
- data/vendor/libsodium/test/default/auth2.exp +4 -0
- data/vendor/libsodium/test/default/auth3.c +36 -0
- data/vendor/libsodium/test/default/auth3.exp +1 -0
- data/vendor/libsodium/test/default/auth5.c +37 -0
- data/vendor/libsodium/test/default/auth5.exp +0 -0
- data/vendor/libsodium/test/default/box.c +65 -0
- data/vendor/libsodium/test/default/box.exp +19 -0
- data/vendor/libsodium/test/default/box2.c +66 -0
- data/vendor/libsodium/test/default/box2.exp +17 -0
- data/vendor/libsodium/test/default/box7.c +37 -0
- data/vendor/libsodium/test/default/box7.exp +0 -0
- data/vendor/libsodium/test/default/box8.c +44 -0
- data/vendor/libsodium/test/default/box8.exp +0 -0
- data/vendor/libsodium/test/default/cmptest.h +51 -0
- data/vendor/libsodium/test/default/core1.c +32 -0
- data/vendor/libsodium/test/default/core1.exp +4 -0
- data/vendor/libsodium/test/default/core2.c +35 -0
- data/vendor/libsodium/test/default/core2.exp +4 -0
- data/vendor/libsodium/test/default/core3.c +42 -0
- data/vendor/libsodium/test/default/core3.exp +1 -0
- data/vendor/libsodium/test/default/core4.c +35 -0
- data/vendor/libsodium/test/default/core4.exp +8 -0
- data/vendor/libsodium/test/default/core5.c +34 -0
- data/vendor/libsodium/test/default/core5.exp +4 -0
- data/vendor/libsodium/test/default/core6.c +49 -0
- data/vendor/libsodium/test/default/core6.exp +4 -0
- data/vendor/libsodium/test/default/generichash.c +27 -0
- data/vendor/libsodium/test/default/generichash.exp +64 -0
- data/vendor/libsodium/test/default/generichash2.c +31 -0
- data/vendor/libsodium/test/default/generichash2.exp +64 -0
- data/vendor/libsodium/test/default/hash.c +16 -0
- data/vendor/libsodium/test/default/hash.exp +1 -0
- data/vendor/libsodium/test/default/hash2.exp +1 -0
- data/vendor/libsodium/test/default/hash3.c +16 -0
- data/vendor/libsodium/test/default/hash3.exp +1 -0
- data/vendor/libsodium/test/default/onetimeauth.c +44 -0
- data/vendor/libsodium/test/default/onetimeauth.exp +2 -0
- data/vendor/libsodium/test/default/onetimeauth2.c +42 -0
- data/vendor/libsodium/test/default/onetimeauth2.exp +1 -0
- data/vendor/libsodium/test/default/onetimeauth7.c +37 -0
- data/vendor/libsodium/test/default/onetimeauth7.exp +0 -0
- data/vendor/libsodium/test/default/pre.js +33 -0
- data/vendor/libsodium/test/default/randombytes.c +16 -0
- data/vendor/libsodium/test/default/scalarmult.c +25 -0
- data/vendor/libsodium/test/default/scalarmult.exp +4 -0
- data/vendor/libsodium/test/default/scalarmult2.c +25 -0
- data/vendor/libsodium/test/default/scalarmult2.exp +4 -0
- data/vendor/libsodium/test/default/scalarmult5.c +32 -0
- data/vendor/libsodium/test/default/scalarmult5.exp +4 -0
- data/vendor/libsodium/test/default/scalarmult6.c +32 -0
- data/vendor/libsodium/test/default/scalarmult6.exp +4 -0
- data/vendor/libsodium/test/default/scalarmult7.c +34 -0
- data/vendor/libsodium/test/default/scalarmult7.exp +1 -0
- data/vendor/libsodium/test/default/scalarmult8.c +34 -0
- data/vendor/libsodium/test/default/scalarmult8.exp +1 -0
- data/vendor/libsodium/test/default/secretbox.c +58 -0
- data/vendor/libsodium/test/default/secretbox.exp +19 -0
- data/vendor/libsodium/test/default/secretbox2.c +59 -0
- data/vendor/libsodium/test/default/secretbox2.exp +17 -0
- data/vendor/libsodium/test/default/secretbox7.c +33 -0
- data/vendor/libsodium/test/default/secretbox7.exp +0 -0
- data/vendor/libsodium/test/default/secretbox8.c +40 -0
- data/vendor/libsodium/test/default/secretbox8.exp +0 -0
- data/vendor/libsodium/test/default/shorthash.c +23 -0
- data/vendor/libsodium/test/default/shorthash.exp +64 -0
- data/vendor/libsodium/test/default/sodium_core.c +11 -0
- data/vendor/libsodium/test/default/sodium_core.exp +1 -0
- data/vendor/libsodium/test/default/sodium_utils.c +27 -0
- data/vendor/libsodium/test/default/sodium_utils.exp +6 -0
- data/vendor/libsodium/test/default/sodium_version.c +13 -0
- data/vendor/libsodium/test/default/sodium_version.exp +3 -0
- data/vendor/libsodium/test/default/stream.c +30 -0
- data/vendor/libsodium/test/default/stream.exp +1 -0
- data/vendor/libsodium/test/default/stream2.c +28 -0
- data/vendor/libsodium/test/default/stream2.exp +1 -0
- data/vendor/libsodium/test/default/stream3.c +30 -0
- data/vendor/libsodium/test/default/stream3.exp +4 -0
- data/vendor/libsodium/test/default/stream4.c +55 -0
- data/vendor/libsodium/test/default/stream4.exp +17 -0
- data/vendor/libsodium/test/default/stream5.c +29 -0
- data/vendor/libsodium/test/default/stream5.exp +1 -0
- data/vendor/libsodium/test/default/stream6.c +54 -0
- data/vendor/libsodium/test/default/stream6.exp +17 -0
- data/vendor/libsodium/test/default/wintest.bat +56 -0
- data/vendor/libsodium/test/quirks/windows/windows-quirks.h +18 -0
- metadata +500 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
cscript msvc-scripts/rep.vbs //Nologo s/@HAVE_TI_MODE_V@/0/ < src\libsodium\include\sodium\crypto_scalarmult_curve25519.h.in > src\libsodium\include\sodium\crypto_scalarmult_curve25519.h
|
2
|
+
|
3
|
+
cscript msvc-scripts/rep.vbs //Nologo s/@HAVE_AMD64_ASM_V@/0/ < src\libsodium\include\sodium\crypto_stream_salsa20.h.in > src\libsodium\include\sodium\crypto_stream_salsa20.h
|
4
|
+
|
5
|
+
cscript msvc-scripts/rep.vbs //Nologo s/@VERSION@/0.4.5/ < src\libsodium\include\sodium\version.h.in > tmp
|
6
|
+
cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MAJOR@/4/ < tmp > tmp2
|
7
|
+
cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MINOR@/4/ < tmp2 > src\libsodium\include\sodium\version.h
|
8
|
+
del tmp tmp2
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Dim pat, patparts, rxp, inp
|
2
|
+
pat = WScript.Arguments(0)
|
3
|
+
patparts = Split(pat, "/")
|
4
|
+
Set rxp = new RegExp
|
5
|
+
rxp.Global = True
|
6
|
+
rxp.Multiline = False
|
7
|
+
rxp.Pattern = patparts(1)
|
8
|
+
Do While Not WScript.StdIn.AtEndOfStream
|
9
|
+
inp = WScript.StdIn.ReadLine()
|
10
|
+
WScript.Echo rxp.Replace(inp, patparts(2))
|
11
|
+
Loop
|
12
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<ImportGroup Label="PropertySheets" />
|
4
|
+
<PropertyGroup Label="UserMacros" />
|
5
|
+
<PropertyGroup />
|
6
|
+
<ItemDefinitionGroup>
|
7
|
+
<ClCompile>
|
8
|
+
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)src\libsodium\include\sodium;$(SolutionDir)src\libsodium\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
9
|
+
<PreprocessorDefinitions>inline=__inline;NATIVE_LITTLE_ENDIAN;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
10
|
+
</ClCompile>
|
11
|
+
<PreBuildEvent>
|
12
|
+
<Command>$(SolutionDir)/msvc-scripts/process.bat</Command>
|
13
|
+
</PreBuildEvent>
|
14
|
+
<PreBuildEvent>
|
15
|
+
<Message>Process .in files</Message>
|
16
|
+
</PreBuildEvent>
|
17
|
+
<PostBuildEvent>
|
18
|
+
<Command>$(SolutionDir)/test/default/wintest.bat $(Configuration) $(Platform)</Command>
|
19
|
+
</PostBuildEvent>
|
20
|
+
<PostBuildEvent>
|
21
|
+
<Message>Run the test suite</Message>
|
22
|
+
</PostBuildEvent>
|
23
|
+
</ItemDefinitionGroup>
|
24
|
+
<ItemGroup />
|
25
|
+
</Project>
|
@@ -0,0 +1,232 @@
|
|
1
|
+
lib_LTLIBRARIES = \
|
2
|
+
libsodium.la
|
3
|
+
|
4
|
+
libsodium_la_SOURCES = \
|
5
|
+
crypto_auth/crypto_auth.c \
|
6
|
+
crypto_auth/hmacsha256/auth_hmacsha256_api.c \
|
7
|
+
crypto_auth/hmacsha256/ref/api.h \
|
8
|
+
crypto_auth/hmacsha256/ref/hmac_hmacsha256.c \
|
9
|
+
crypto_auth/hmacsha256/ref/verify_hmacsha256.c \
|
10
|
+
crypto_auth/hmacsha512256/auth_hmacsha512256_api.c \
|
11
|
+
crypto_auth/hmacsha512256/ref/api.h \
|
12
|
+
crypto_auth/hmacsha512256/ref/hmac_hmacsha512256.c \
|
13
|
+
crypto_auth/hmacsha512256/ref/verify_hmacsha512256.c \
|
14
|
+
crypto_box/crypto_box.c \
|
15
|
+
crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c \
|
16
|
+
crypto_box/curve25519xsalsa20poly1305/ref/api.h \
|
17
|
+
crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c \
|
18
|
+
crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c \
|
19
|
+
crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c \
|
20
|
+
crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c \
|
21
|
+
crypto_core/hsalsa20/ref2/core_hsalsa20.c \
|
22
|
+
crypto_core/hsalsa20/core_hsalsa20_api.c \
|
23
|
+
crypto_core/hsalsa20/ref2/api.h \
|
24
|
+
crypto_core/salsa20/ref/core_salsa20.c \
|
25
|
+
crypto_core/salsa20/core_salsa20_api.c \
|
26
|
+
crypto_core/salsa20/ref/api.h \
|
27
|
+
crypto_core/salsa2012/ref/core_salsa2012.c \
|
28
|
+
crypto_core/salsa2012/core_salsa2012_api.c \
|
29
|
+
crypto_core/salsa2012/ref/api.h \
|
30
|
+
crypto_core/salsa208/ref/core_salsa208.c \
|
31
|
+
crypto_core/salsa208/core_salsa208_api.c \
|
32
|
+
crypto_core/salsa208/ref/api.h \
|
33
|
+
crypto_generichash/crypto_generichash.c \
|
34
|
+
crypto_generichash/blake2/generichash_blake2_api.c \
|
35
|
+
crypto_generichash/blake2/ref/api.h \
|
36
|
+
crypto_generichash/blake2/ref/blake2-impl.h \
|
37
|
+
crypto_generichash/blake2/ref/blake2.h \
|
38
|
+
crypto_generichash/blake2/ref/blake2b-ref.c \
|
39
|
+
crypto_generichash/blake2/ref/generichash_blake2b.c \
|
40
|
+
crypto_hash/crypto_hash.c \
|
41
|
+
crypto_hash/sha256/hash_sha256_api.c \
|
42
|
+
crypto_hash/sha256/ref/api.h \
|
43
|
+
crypto_hash/sha256/ref/hash_sha256.c \
|
44
|
+
crypto_hash/sha512/hash_sha512_api.c \
|
45
|
+
crypto_hash/sha512/ref/api.h \
|
46
|
+
crypto_hash/sha512/ref/hash_sha512.c \
|
47
|
+
crypto_hashblocks/sha256/ref/blocks_sha256.c \
|
48
|
+
crypto_hashblocks/sha256/hashblocks_sha256_api.c \
|
49
|
+
crypto_hashblocks/sha256/ref/api.h \
|
50
|
+
crypto_hashblocks/sha512/ref/blocks_sha512.c \
|
51
|
+
crypto_hashblocks/sha512/hashblocks_sha512_api.c \
|
52
|
+
crypto_hashblocks/sha512/ref/api.h \
|
53
|
+
crypto_onetimeauth/crypto_onetimeauth.c \
|
54
|
+
crypto_onetimeauth/poly1305/onetimeauth_poly1305.c \
|
55
|
+
crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.c \
|
56
|
+
crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c \
|
57
|
+
crypto_onetimeauth/poly1305/53/api.h \
|
58
|
+
crypto_onetimeauth/poly1305/53/auth_poly1305_53.c \
|
59
|
+
crypto_onetimeauth/poly1305/53/verify_poly1305_53.c \
|
60
|
+
crypto_onetimeauth/poly1305/donna/api.h \
|
61
|
+
crypto_onetimeauth/poly1305/donna/portable-jane.h \
|
62
|
+
crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c \
|
63
|
+
crypto_onetimeauth/poly1305/donna/verify_poly1305_donna.c \
|
64
|
+
crypto_scalarmult/crypto_scalarmult.c \
|
65
|
+
crypto_scalarmult/curve25519/scalarmult_curve25519_api.c \
|
66
|
+
crypto_secretbox/crypto_secretbox.c \
|
67
|
+
crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.c \
|
68
|
+
crypto_secretbox/xsalsa20poly1305/ref/api.h \
|
69
|
+
crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c \
|
70
|
+
crypto_shorthash/crypto_shorthash.c \
|
71
|
+
crypto_shorthash/siphash24/shorthash_siphash24_api.c \
|
72
|
+
crypto_shorthash/siphash24/ref/api.h \
|
73
|
+
crypto_shorthash/siphash24/ref/shorthash_siphash24.c \
|
74
|
+
crypto_sign/crypto_sign.c \
|
75
|
+
crypto_sign/ed25519/ref10/base.h \
|
76
|
+
crypto_sign/ed25519/ref10/base2.h \
|
77
|
+
crypto_sign/ed25519/sign_ed25519_api.c \
|
78
|
+
crypto_sign/ed25519/ref10/api.h \
|
79
|
+
crypto_sign/ed25519/ref10/d.h \
|
80
|
+
crypto_sign/ed25519/ref10/d2.h \
|
81
|
+
crypto_sign/ed25519/ref10/fe.h \
|
82
|
+
crypto_sign/ed25519/ref10/fe_0.c \
|
83
|
+
crypto_sign/ed25519/ref10/fe_1.c \
|
84
|
+
crypto_sign/ed25519/ref10/fe_add.c \
|
85
|
+
crypto_sign/ed25519/ref10/fe_cmov.c \
|
86
|
+
crypto_sign/ed25519/ref10/fe_copy.c \
|
87
|
+
crypto_sign/ed25519/ref10/fe_frombytes.c \
|
88
|
+
crypto_sign/ed25519/ref10/fe_invert.c \
|
89
|
+
crypto_sign/ed25519/ref10/fe_isnegative.c \
|
90
|
+
crypto_sign/ed25519/ref10/fe_isnonzero.c \
|
91
|
+
crypto_sign/ed25519/ref10/fe_mul.c \
|
92
|
+
crypto_sign/ed25519/ref10/fe_neg.c \
|
93
|
+
crypto_sign/ed25519/ref10/fe_pow22523.c \
|
94
|
+
crypto_sign/ed25519/ref10/fe_sq.c \
|
95
|
+
crypto_sign/ed25519/ref10/fe_sq2.c \
|
96
|
+
crypto_sign/ed25519/ref10/fe_sub.c \
|
97
|
+
crypto_sign/ed25519/ref10/fe_tobytes.c \
|
98
|
+
crypto_sign/ed25519/ref10/ge.h \
|
99
|
+
crypto_sign/ed25519/ref10/ge_add.c \
|
100
|
+
crypto_sign/ed25519/ref10/ge_add.h \
|
101
|
+
crypto_sign/ed25519/ref10/ge_double_scalarmult.c \
|
102
|
+
crypto_sign/ed25519/ref10/ge_frombytes.c \
|
103
|
+
crypto_sign/ed25519/ref10/ge_madd.c \
|
104
|
+
crypto_sign/ed25519/ref10/ge_madd.h \
|
105
|
+
crypto_sign/ed25519/ref10/ge_msub.c \
|
106
|
+
crypto_sign/ed25519/ref10/ge_msub.h \
|
107
|
+
crypto_sign/ed25519/ref10/ge_p1p1_to_p2.c \
|
108
|
+
crypto_sign/ed25519/ref10/ge_p1p1_to_p3.c \
|
109
|
+
crypto_sign/ed25519/ref10/ge_p2_0.c \
|
110
|
+
crypto_sign/ed25519/ref10/ge_p2_dbl.c \
|
111
|
+
crypto_sign/ed25519/ref10/ge_p2_dbl.h \
|
112
|
+
crypto_sign/ed25519/ref10/ge_p3_0.c \
|
113
|
+
crypto_sign/ed25519/ref10/ge_p3_dbl.c \
|
114
|
+
crypto_sign/ed25519/ref10/ge_p3_to_cached.c \
|
115
|
+
crypto_sign/ed25519/ref10/ge_p3_to_p2.c \
|
116
|
+
crypto_sign/ed25519/ref10/ge_p3_tobytes.c \
|
117
|
+
crypto_sign/ed25519/ref10/ge_precomp_0.c \
|
118
|
+
crypto_sign/ed25519/ref10/ge_scalarmult_base.c \
|
119
|
+
crypto_sign/ed25519/ref10/ge_sub.c \
|
120
|
+
crypto_sign/ed25519/ref10/ge_sub.h \
|
121
|
+
crypto_sign/ed25519/ref10/ge_tobytes.c \
|
122
|
+
crypto_sign/ed25519/ref10/keypair.c \
|
123
|
+
crypto_sign/ed25519/ref10/open.c \
|
124
|
+
crypto_sign/ed25519/ref10/pow22523.h \
|
125
|
+
crypto_sign/ed25519/ref10/pow225521.h \
|
126
|
+
crypto_sign/ed25519/ref10/sc.h \
|
127
|
+
crypto_sign/ed25519/ref10/sc_muladd.c \
|
128
|
+
crypto_sign/ed25519/ref10/sc_reduce.c \
|
129
|
+
crypto_sign/ed25519/ref10/sign.c \
|
130
|
+
crypto_sign/ed25519/ref10/sqrtm1.h \
|
131
|
+
crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c \
|
132
|
+
crypto_sign/edwards25519sha512batch/ref/api.h \
|
133
|
+
crypto_sign/edwards25519sha512batch/ref/fe25519.h \
|
134
|
+
crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c \
|
135
|
+
crypto_sign/edwards25519sha512batch/ref/ge25519.h \
|
136
|
+
crypto_sign/edwards25519sha512batch/ref/ge25519_edwards25519sha512batch.c \
|
137
|
+
crypto_sign/edwards25519sha512batch/ref/sc25519.h \
|
138
|
+
crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.c \
|
139
|
+
crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c \
|
140
|
+
crypto_stream/crypto_stream.c \
|
141
|
+
crypto_stream/aes128ctr/portable/afternm_aes128ctr.c \
|
142
|
+
crypto_stream/aes128ctr/stream_aes128ctr_api.c \
|
143
|
+
crypto_stream/aes128ctr/portable/api.h \
|
144
|
+
crypto_stream/aes128ctr/portable/beforenm_aes128ctr.c \
|
145
|
+
crypto_stream/aes128ctr/portable/common.h \
|
146
|
+
crypto_stream/aes128ctr/portable/common_aes128ctr.c \
|
147
|
+
crypto_stream/aes128ctr/portable/consts.h \
|
148
|
+
crypto_stream/aes128ctr/portable/consts_aes128ctr.c \
|
149
|
+
crypto_stream/aes128ctr/portable/int128.h \
|
150
|
+
crypto_stream/aes128ctr/portable/int128_aes128ctr.c \
|
151
|
+
crypto_stream/aes128ctr/portable/stream_aes128ctr.c \
|
152
|
+
crypto_stream/aes128ctr/portable/types.h \
|
153
|
+
crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c \
|
154
|
+
crypto_stream/aes256estream/hongjun/aes-table.h \
|
155
|
+
crypto_stream/aes256estream/hongjun/aes-table-be.h \
|
156
|
+
crypto_stream/aes256estream/hongjun/aes-table-le.h \
|
157
|
+
crypto_stream/aes256estream/hongjun/aes256-ctr.c \
|
158
|
+
crypto_stream/aes256estream/hongjun/aes256.h \
|
159
|
+
crypto_stream/aes256estream/stream_aes256estream_api.c \
|
160
|
+
crypto_stream/aes256estream/hongjun/api.h \
|
161
|
+
crypto_stream/aes256estream/hongjun/ecrypt-sync.h \
|
162
|
+
crypto_stream/salsa20/stream_salsa20_api.c \
|
163
|
+
crypto_stream/salsa2012/stream_salsa2012_api.c \
|
164
|
+
crypto_stream/salsa2012/ref/api.h \
|
165
|
+
crypto_stream/salsa2012/ref/stream_salsa2012.c \
|
166
|
+
crypto_stream/salsa2012/ref/xor_salsa2012.c \
|
167
|
+
crypto_stream/salsa208/stream_salsa208_api.c \
|
168
|
+
crypto_stream/salsa208/ref/api.h \
|
169
|
+
crypto_stream/salsa208/ref/stream_salsa208.c \
|
170
|
+
crypto_stream/salsa208/ref/xor_salsa208.c \
|
171
|
+
crypto_stream/xsalsa20/stream_xsalsa20_api.c \
|
172
|
+
crypto_stream/xsalsa20/ref/api.h \
|
173
|
+
crypto_stream/xsalsa20/ref/stream_xsalsa20.c \
|
174
|
+
crypto_stream/xsalsa20/ref/xor_xsalsa20.c \
|
175
|
+
crypto_verify/16/verify_16_api.c \
|
176
|
+
crypto_verify/16/ref/api.h \
|
177
|
+
crypto_verify/16/ref/verify_16.c \
|
178
|
+
crypto_verify/32/verify_32_api.c \
|
179
|
+
crypto_verify/32/ref/api.h \
|
180
|
+
crypto_verify/32/ref/verify_32.c \
|
181
|
+
randombytes/randombytes.c \
|
182
|
+
randombytes/salsa20/randombytes_salsa20_random.c \
|
183
|
+
randombytes/sysrandom/randombytes_sysrandom.c \
|
184
|
+
sodium/compat.c \
|
185
|
+
sodium/core.c \
|
186
|
+
sodium/utils.c \
|
187
|
+
sodium/version.c
|
188
|
+
|
189
|
+
if HAVE_TI_MODE
|
190
|
+
libsodium_la_SOURCES += \
|
191
|
+
crypto_scalarmult/curve25519/donna_c64/api.h \
|
192
|
+
crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c \
|
193
|
+
crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c
|
194
|
+
else
|
195
|
+
libsodium_la_SOURCES += \
|
196
|
+
crypto_scalarmult/curve25519/ref/api.h \
|
197
|
+
crypto_scalarmult/curve25519/ref/base_curve25519_ref.c \
|
198
|
+
crypto_scalarmult/curve25519/ref/smult_curve25519_ref.c
|
199
|
+
endif
|
200
|
+
|
201
|
+
if HAVE_AMD64_ASM
|
202
|
+
libsodium_la_SOURCES += \
|
203
|
+
crypto_stream/salsa20/amd64_xmm6/api.h \
|
204
|
+
crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S
|
205
|
+
else
|
206
|
+
libsodium_la_SOURCES += \
|
207
|
+
crypto_stream/salsa20/ref/api.h \
|
208
|
+
crypto_stream/salsa20/ref/stream_salsa20_ref.c \
|
209
|
+
crypto_stream/salsa20/ref/xor_salsa20_ref.c
|
210
|
+
endif
|
211
|
+
|
212
|
+
libsodium_la_LDFLAGS = \
|
213
|
+
$(AM_LDFLAGS) \
|
214
|
+
-export-dynamic \
|
215
|
+
-no-undefined \
|
216
|
+
$(LIBTOOL_EXTRA_FLAGS)
|
217
|
+
|
218
|
+
libsodium_la_CPPFLAGS = \
|
219
|
+
$(LTDLINCL) \
|
220
|
+
-I$(srcdir)/include/sodium \
|
221
|
+
-I$(builddir)/include/sodium
|
222
|
+
|
223
|
+
if HAVE_LD_OUTPUT_DEF
|
224
|
+
libsodium_la_LDFLAGS += -Wl,--output-def,libsodium-$(DLL_VERSION).def
|
225
|
+
defexecdir = $(bindir)
|
226
|
+
defexec_DATA = libsodium-$(DLL_VERSION).def
|
227
|
+
CLEANFILES = $(defexec_DATA)
|
228
|
+
libsodium-$(DLL_VERSION).def: libsodium.la
|
229
|
+
endif
|
230
|
+
|
231
|
+
SUBDIRS = \
|
232
|
+
include
|
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
#include "crypto_auth.h"
|
3
|
+
|
4
|
+
size_t
|
5
|
+
crypto_auth_bytes(void)
|
6
|
+
{
|
7
|
+
return crypto_auth_BYTES;
|
8
|
+
}
|
9
|
+
|
10
|
+
size_t
|
11
|
+
crypto_auth_keybytes(void)
|
12
|
+
{
|
13
|
+
return crypto_auth_KEYBYTES;
|
14
|
+
}
|
15
|
+
|
16
|
+
const char *
|
17
|
+
crypto_auth_primitive(void)
|
18
|
+
{
|
19
|
+
return crypto_auth_PRIMITIVE;
|
20
|
+
}
|
21
|
+
|
22
|
+
int
|
23
|
+
crypto_auth(unsigned char *out, const unsigned char *in,
|
24
|
+
unsigned long long inlen, const unsigned char *k)
|
25
|
+
{
|
26
|
+
return crypto_auth_hmacsha512256(out, in, inlen, k);
|
27
|
+
}
|
28
|
+
|
29
|
+
int
|
30
|
+
crypto_auth_verify(const unsigned char *h, const unsigned char *in,
|
31
|
+
unsigned long long inlen,const unsigned char *k)
|
32
|
+
{
|
33
|
+
return crypto_auth_hmacsha512256_verify(h, in, inlen, k);
|
34
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#include "crypto_auth_hmacsha256.h"
|
2
|
+
|
3
|
+
size_t
|
4
|
+
crypto_auth_hmacsha256_bytes(void) {
|
5
|
+
return crypto_auth_hmacsha256_BYTES;
|
6
|
+
}
|
7
|
+
|
8
|
+
size_t
|
9
|
+
crypto_auth_hmacsha256_keybytes(void) {
|
10
|
+
return crypto_auth_hmacsha256_KEYBYTES;
|
11
|
+
}
|
12
|
+
|
13
|
+
const char *
|
14
|
+
crypto_auth_hmacsha256_primitive(void) {
|
15
|
+
return "hmacsha256";
|
16
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
3bd7abd4f4dce04396f2ac7cb1cff70607f692411c49a1563b037d31e1662632
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
#include "crypto_auth_hmacsha256.h"
|
3
|
+
|
4
|
+
#define crypto_auth crypto_auth_hmacsha256
|
5
|
+
#define crypto_auth_verify crypto_auth_hmacsha256_verify
|
6
|
+
#define crypto_auth_BYTES crypto_auth_hmacsha256_BYTES
|
7
|
+
#define crypto_auth_KEYBYTES crypto_auth_hmacsha256_KEYBYTES
|
8
|
+
#define crypto_auth_PRIMITIVE "hmacsha256"
|
9
|
+
#define crypto_auth_IMPLEMENTATION crypto_auth_hmacsha256_IMPLEMENTATION
|
10
|
+
#define crypto_auth_VERSION crypto_auth_hmacsha256_VERSION
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/*
|
2
|
+
* 20080913
|
3
|
+
* D. J. Bernstein
|
4
|
+
* Public domain.
|
5
|
+
* */
|
6
|
+
|
7
|
+
#include "api.h"
|
8
|
+
#include "crypto_hashblocks_sha256.h"
|
9
|
+
|
10
|
+
#define blocks crypto_hashblocks_sha256
|
11
|
+
|
12
|
+
typedef unsigned int uint32;
|
13
|
+
|
14
|
+
static const unsigned char iv[32] = {
|
15
|
+
0x6a,0x09,0xe6,0x67,
|
16
|
+
0xbb,0x67,0xae,0x85,
|
17
|
+
0x3c,0x6e,0xf3,0x72,
|
18
|
+
0xa5,0x4f,0xf5,0x3a,
|
19
|
+
0x51,0x0e,0x52,0x7f,
|
20
|
+
0x9b,0x05,0x68,0x8c,
|
21
|
+
0x1f,0x83,0xd9,0xab,
|
22
|
+
0x5b,0xe0,0xcd,0x19,
|
23
|
+
} ;
|
24
|
+
|
25
|
+
int crypto_auth(unsigned char *out,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
|
26
|
+
{
|
27
|
+
unsigned char h[32];
|
28
|
+
unsigned char padded[128];
|
29
|
+
unsigned long long i;
|
30
|
+
unsigned long long bits = 512 + (inlen << 3);
|
31
|
+
|
32
|
+
for (i = 0;i < 32;++i) h[i] = iv[i];
|
33
|
+
|
34
|
+
for (i = 0;i < 32;++i) padded[i] = k[i] ^ 0x36;
|
35
|
+
for (i = 32;i < 64;++i) padded[i] = 0x36;
|
36
|
+
|
37
|
+
blocks(h,padded,64);
|
38
|
+
blocks(h,in,inlen);
|
39
|
+
in += inlen;
|
40
|
+
inlen &= 63;
|
41
|
+
in -= inlen;
|
42
|
+
|
43
|
+
for (i = 0;i < inlen;++i) padded[i] = in[i];
|
44
|
+
padded[inlen] = 0x80;
|
45
|
+
|
46
|
+
if (inlen < 56) {
|
47
|
+
for (i = inlen + 1;i < 56;++i) padded[i] = 0;
|
48
|
+
padded[56] = bits >> 56;
|
49
|
+
padded[57] = bits >> 48;
|
50
|
+
padded[58] = bits >> 40;
|
51
|
+
padded[59] = bits >> 32;
|
52
|
+
padded[60] = bits >> 24;
|
53
|
+
padded[61] = bits >> 16;
|
54
|
+
padded[62] = bits >> 8;
|
55
|
+
padded[63] = bits;
|
56
|
+
blocks(h,padded,64);
|
57
|
+
} else {
|
58
|
+
for (i = inlen + 1;i < 120;++i) padded[i] = 0;
|
59
|
+
padded[120] = bits >> 56;
|
60
|
+
padded[121] = bits >> 48;
|
61
|
+
padded[122] = bits >> 40;
|
62
|
+
padded[123] = bits >> 32;
|
63
|
+
padded[124] = bits >> 24;
|
64
|
+
padded[125] = bits >> 16;
|
65
|
+
padded[126] = bits >> 8;
|
66
|
+
padded[127] = bits;
|
67
|
+
blocks(h,padded,128);
|
68
|
+
}
|
69
|
+
|
70
|
+
for (i = 0;i < 32;++i) padded[i] = k[i] ^ 0x5c;
|
71
|
+
for (i = 32;i < 64;++i) padded[i] = 0x5c;
|
72
|
+
for (i = 0;i < 32;++i) padded[64 + i] = h[i];
|
73
|
+
|
74
|
+
for (i = 0;i < 32;++i) out[i] = iv[i];
|
75
|
+
|
76
|
+
for (i = 32;i < 64;++i) padded[64 + i] = 0;
|
77
|
+
padded[64 + 32] = 0x80;
|
78
|
+
padded[64 + 62] = 3;
|
79
|
+
|
80
|
+
blocks(out,padded,128);
|
81
|
+
|
82
|
+
return 0;
|
83
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#include "api.h"
|
2
|
+
#include "crypto_verify_32.h"
|
3
|
+
|
4
|
+
int crypto_auth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
|
5
|
+
{
|
6
|
+
unsigned char correct[32];
|
7
|
+
crypto_auth(correct,in,inlen,k);
|
8
|
+
return crypto_verify_32(h,correct);
|
9
|
+
}
|