rbnacl-libsodium 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +23 -0
- data/CHANGES.md +5 -0
- data/Gemfile +5 -2
- data/Rakefile +5 -0
- data/ext/rbnacl/extconf.rb +2 -1
- data/lib/rbnacl/libsodium.rb +8 -2
- data/lib/rbnacl/libsodium/version.rb +1 -1
- data/vendor/libsodium/AUTHORS +14 -0
- data/vendor/libsodium/ChangeLog +26 -0
- data/vendor/libsodium/LICENSE +1 -1
- data/vendor/libsodium/Makefile.am +1 -0
- data/vendor/libsodium/Makefile.in +9 -0
- data/vendor/libsodium/README.markdown +7 -0
- data/vendor/libsodium/aclocal.m4 +1 -0
- data/vendor/libsodium/appveyor.yml +25 -0
- data/vendor/libsodium/autom4te.cache/output.1 +640 -126
- data/vendor/libsodium/autom4te.cache/output.6 +19049 -0
- data/vendor/libsodium/autom4te.cache/requests +1151 -914
- data/vendor/libsodium/autom4te.cache/traces.1 +472 -426
- data/vendor/libsodium/autom4te.cache/traces.6 +3193 -0
- data/vendor/libsodium/builds/msvc/version.h +2 -2
- data/vendor/libsodium/builds/msvc/vs2010/libsodium.sln +50 -79
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +20 -8
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +208 -166
- data/vendor/libsodium/builds/msvc/vs2012/libsodium.sln +50 -79
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +20 -8
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +206 -164
- data/vendor/libsodium/builds/msvc/vs2013/libsodium.sln +52 -81
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +20 -8
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +206 -164
- data/vendor/libsodium/builds/msvc/vs2015/libsodium.sln +52 -81
- data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +20 -8
- data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +206 -164
- data/vendor/libsodium/configure +639 -125
- data/vendor/libsodium/configure.ac +94 -16
- data/vendor/libsodium/dist-build/Makefile.in +9 -0
- data/vendor/libsodium/dist-build/emscripten-symbols.def +370 -0
- data/vendor/libsodium/dist-build/emscripten.sh +9 -3
- data/vendor/libsodium/dist-build/generate-emscripten-symbols.sh +43 -0
- data/vendor/libsodium/libsodium-uninstalled.pc.in +1 -1
- data/vendor/libsodium/libsodium.pc.in +1 -1
- data/vendor/libsodium/libsodium.vcxproj +70 -66
- data/vendor/libsodium/libsodium.vcxproj.filters +204 -192
- data/vendor/libsodium/m4/ax_valgrind_check.m4 +190 -0
- data/vendor/libsodium/msvc-scripts/Makefile.in +9 -0
- data/vendor/libsodium/msvc-scripts/process.bat +2 -2
- data/vendor/libsodium/src/Makefile.in +9 -0
- data/vendor/libsodium/src/libsodium/Makefile.am +31 -6
- data/vendor/libsodium/src/libsodium/Makefile.in +238 -42
- data/vendor/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +234 -38
- data/vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +208 -118
- data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_seal.c +2 -2
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c +1 -4
- data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +1799 -1790
- data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.h +39 -39
- data/vendor/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.c +86 -0
- data/vendor/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.h +28 -0
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.c +38 -46
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/core_salsa20.c +47 -55
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/core_salsa2012.c +47 -55
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/core_salsa208.c +47 -55
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.c +7 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2-impl.h +0 -89
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2.h +50 -141
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-avx2.c +45 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-avx2.h +123 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ref.c +3 -2
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-sse41.c +2 -2
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/{blake2b-round.h → blake2b-compress-sse41.h} +2 -28
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.c +2 -4
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.h +97 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-load-avx2.h +339 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-load-sse2.h +0 -2
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-load-sse41.h +0 -2
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +29 -18
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +4 -43
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +3 -32
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h +1 -20
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +22 -41
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +12 -39
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c +2 -4
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.h +1 -20
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c +570 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.h +198 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.c +444 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-encoding.h +32 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c +229 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c +222 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-impl.h +40 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.c +238 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.h +251 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.c +80 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.h +8 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ref.h +38 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blamka-round-ssse3.h +117 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/pwhash_argon2i.c +164 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/crypto_pwhash.c +106 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +4 -4
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +186 -186
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c +2 -2
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +3 -2
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c +33 -33
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +253 -254
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.c +16 -17
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c +11 -11
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/consts_namespace.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h +3 -2
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h +5 -3
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_invert.c +41 -41
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S +10 -2
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_namespace.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S +4 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S +4 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c +31 -32
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S +4 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S +4 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base_namespace.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_namespace.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +2 -6
- data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24.c +8 -28
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +75 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +6 -6
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common.h +1 -18
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128_aes128ctr.c +20 -20
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/types.h +4 -4
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +6 -6
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +56 -77
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/vec/stream_chacha20_vec.h +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +2 -8
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +2 -8
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.c +2 -8
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.c +2 -8
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.c +2 -8
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.c +2 -8
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.c +1 -5
- data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +1 -5
- data/vendor/libsodium/src/libsodium/include/Makefile.am +3 -0
- data/vendor/libsodium/src/libsodium/include/Makefile.in +19 -8
- data/vendor/libsodium/src/libsodium/include/sodium.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_aes256gcm.h +50 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h +94 -22
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +6 -6
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_hchacha20.h +35 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash.h +89 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_argon2i.h +86 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h +6 -6
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +0 -11
- data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +3 -0
- data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +3 -0
- data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +5 -1
- data/vendor/libsodium/src/libsodium/sodium/common.h +150 -0
- data/vendor/libsodium/src/libsodium/sodium/core.c +3 -1
- data/vendor/libsodium/src/libsodium/sodium/runtime.c +37 -19
- data/vendor/libsodium/src/libsodium/sodium/utils.c +18 -9
- data/vendor/libsodium/test/Makefile.in +9 -0
- data/vendor/libsodium/test/default/Makefile.am +10 -0
- data/vendor/libsodium/test/default/Makefile.in +53 -20
- data/vendor/libsodium/test/default/aead_aes256gcm.c +43 -17
- data/vendor/libsodium/test/default/aead_chacha20poly1305.c +179 -86
- data/vendor/libsodium/test/default/auth7.c +5 -5
- data/vendor/libsodium/test/default/box.c +4 -4
- data/vendor/libsodium/test/default/box2.c +1 -1
- data/vendor/libsodium/test/default/core6.c +1 -1
- data/vendor/libsodium/test/default/generichash.c +12 -1
- data/vendor/libsodium/test/default/generichash2.c +2 -2
- data/vendor/libsodium/test/default/generichash3.c +21 -0
- data/vendor/libsodium/test/default/pwhash.c +186 -168
- data/vendor/libsodium/test/default/pwhash.exp +11 -30
- data/vendor/libsodium/test/default/pwhash_scrypt.c +349 -0
- data/vendor/libsodium/test/default/pwhash_scrypt.exp +31 -0
- data/vendor/libsodium/test/default/secretbox.c +1 -1
- data/vendor/libsodium/test/default/secretbox2.c +1 -1
- data/vendor/libsodium/test/default/sign.c +15 -0
- data/vendor/libsodium/test/default/sodium_utils2.c +8 -3
- data/vendor/libsodium/test/default/sodium_utils3.c +4 -2
- data/vendor/libsodium/test/default/verify1.c +0 -4
- data/vendor/libsodium/test/quirks/quirks.h +3 -0
- metadata +37 -22
- data/vendor/libsodium/builds/msvc/vs2010/test/test.props +0 -43
- data/vendor/libsodium/builds/msvc/vs2010/test/test.runner.bat +0 -78
- data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +0 -244
- data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +0 -192
- data/vendor/libsodium/builds/msvc/vs2012/test/test.props +0 -43
- data/vendor/libsodium/builds/msvc/vs2012/test/test.runner.bat +0 -78
- data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +0 -244
- data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +0 -192
- data/vendor/libsodium/builds/msvc/vs2013/test/test.props +0 -43
- data/vendor/libsodium/builds/msvc/vs2013/test/test.runner.bat +0 -78
- data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +0 -244
- data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +0 -192
- data/vendor/libsodium/builds/msvc/vs2015/test/test.props +0 -43
- data/vendor/libsodium/builds/msvc/vs2015/test/test.runner.bat +0 -78
- data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj +0 -244
- data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj.filters +0 -192
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sysendian.h +0 -146
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common_aes128ctr.c +0 -64
@@ -1,192 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
-
<ItemGroup>
|
4
|
-
<ClCompile Include="..\..\..\..\test\default\auth.c">
|
5
|
-
<Filter>src</Filter>
|
6
|
-
</ClCompile>
|
7
|
-
<ClCompile Include="..\..\..\..\test\default\auth2.c">
|
8
|
-
<Filter>src</Filter>
|
9
|
-
</ClCompile>
|
10
|
-
<ClCompile Include="..\..\..\..\test\default\auth3.c">
|
11
|
-
<Filter>src</Filter>
|
12
|
-
</ClCompile>
|
13
|
-
<ClCompile Include="..\..\..\..\test\default\auth5.c">
|
14
|
-
<Filter>src</Filter>
|
15
|
-
</ClCompile>
|
16
|
-
<ClCompile Include="..\..\..\..\test\default\box.c">
|
17
|
-
<Filter>src</Filter>
|
18
|
-
</ClCompile>
|
19
|
-
<ClCompile Include="..\..\..\..\test\default\box_easy.c">
|
20
|
-
<Filter>src</Filter>
|
21
|
-
</ClCompile>
|
22
|
-
<ClCompile Include="..\..\..\..\test\default\box_easy2.c">
|
23
|
-
<Filter>src</Filter>
|
24
|
-
</ClCompile>
|
25
|
-
<ClCompile Include="..\..\..\..\test\default\box_seal.c">
|
26
|
-
<Filter>src</Filter>
|
27
|
-
</ClCompile>
|
28
|
-
<ClCompile Include="..\..\..\..\test\default\box_seed.c">
|
29
|
-
<Filter>src</Filter>
|
30
|
-
</ClCompile>
|
31
|
-
<ClCompile Include="..\..\..\..\test\default\box2.c">
|
32
|
-
<Filter>src</Filter>
|
33
|
-
</ClCompile>
|
34
|
-
<ClCompile Include="..\..\..\..\test\default\box7.c">
|
35
|
-
<Filter>src</Filter>
|
36
|
-
</ClCompile>
|
37
|
-
<ClCompile Include="..\..\..\..\test\default\box8.c">
|
38
|
-
<Filter>src</Filter>
|
39
|
-
</ClCompile>
|
40
|
-
<ClCompile Include="..\..\..\..\test\default\core1.c">
|
41
|
-
<Filter>src</Filter>
|
42
|
-
</ClCompile>
|
43
|
-
<ClCompile Include="..\..\..\..\test\default\core2.c">
|
44
|
-
<Filter>src</Filter>
|
45
|
-
</ClCompile>
|
46
|
-
<ClCompile Include="..\..\..\..\test\default\core3.c">
|
47
|
-
<Filter>src</Filter>
|
48
|
-
</ClCompile>
|
49
|
-
<ClCompile Include="..\..\..\..\test\default\core4.c">
|
50
|
-
<Filter>src</Filter>
|
51
|
-
</ClCompile>
|
52
|
-
<ClCompile Include="..\..\..\..\test\default\core5.c">
|
53
|
-
<Filter>src</Filter>
|
54
|
-
</ClCompile>
|
55
|
-
<ClCompile Include="..\..\..\..\test\default\core6.c">
|
56
|
-
<Filter>src</Filter>
|
57
|
-
</ClCompile>
|
58
|
-
<ClCompile Include="..\..\..\..\test\default\ed25519_convert.c">
|
59
|
-
<Filter>src</Filter>
|
60
|
-
</ClCompile>
|
61
|
-
<ClCompile Include="..\..\..\..\test\default\generichash.c">
|
62
|
-
<Filter>src</Filter>
|
63
|
-
</ClCompile>
|
64
|
-
<ClCompile Include="..\..\..\..\test\default\generichash2.c">
|
65
|
-
<Filter>src</Filter>
|
66
|
-
</ClCompile>
|
67
|
-
<ClCompile Include="..\..\..\..\test\default\generichash3.c">
|
68
|
-
<Filter>src</Filter>
|
69
|
-
</ClCompile>
|
70
|
-
<ClCompile Include="..\..\..\..\test\default\hash.c">
|
71
|
-
<Filter>src</Filter>
|
72
|
-
</ClCompile>
|
73
|
-
<ClCompile Include="..\..\..\..\test\default\hash3.c">
|
74
|
-
<Filter>src</Filter>
|
75
|
-
</ClCompile>
|
76
|
-
<ClCompile Include="..\..\..\..\test\default\onetimeauth.c">
|
77
|
-
<Filter>src</Filter>
|
78
|
-
</ClCompile>
|
79
|
-
<ClCompile Include="..\..\..\..\test\default\onetimeauth2.c">
|
80
|
-
<Filter>src</Filter>
|
81
|
-
</ClCompile>
|
82
|
-
<ClCompile Include="..\..\..\..\test\default\onetimeauth7.c">
|
83
|
-
<Filter>src</Filter>
|
84
|
-
</ClCompile>
|
85
|
-
<ClCompile Include="..\..\..\..\test\default\pwhash_scrypt_ll.c">
|
86
|
-
<Filter>src</Filter>
|
87
|
-
</ClCompile>
|
88
|
-
<ClCompile Include="..\..\..\..\test\default\randombytes.c">
|
89
|
-
<Filter>src</Filter>
|
90
|
-
</ClCompile>
|
91
|
-
<ClCompile Include="..\..\..\..\test\default\scalarmult.c">
|
92
|
-
<Filter>src</Filter>
|
93
|
-
</ClCompile>
|
94
|
-
<ClCompile Include="..\..\..\..\test\default\scalarmult2.c">
|
95
|
-
<Filter>src</Filter>
|
96
|
-
</ClCompile>
|
97
|
-
<ClCompile Include="..\..\..\..\test\default\scalarmult5.c">
|
98
|
-
<Filter>src</Filter>
|
99
|
-
</ClCompile>
|
100
|
-
<ClCompile Include="..\..\..\..\test\default\scalarmult6.c">
|
101
|
-
<Filter>src</Filter>
|
102
|
-
</ClCompile>
|
103
|
-
<ClCompile Include="..\..\..\..\test\default\scalarmult7.c">
|
104
|
-
<Filter>src</Filter>
|
105
|
-
</ClCompile>
|
106
|
-
<ClCompile Include="..\..\..\..\test\default\secretbox.c">
|
107
|
-
<Filter>src</Filter>
|
108
|
-
</ClCompile>
|
109
|
-
<ClCompile Include="..\..\..\..\test\default\secretbox_easy.c">
|
110
|
-
<Filter>src</Filter>
|
111
|
-
</ClCompile>
|
112
|
-
<ClCompile Include="..\..\..\..\test\default\secretbox_easy2.c">
|
113
|
-
<Filter>src</Filter>
|
114
|
-
</ClCompile>
|
115
|
-
<ClCompile Include="..\..\..\..\test\default\secretbox2.c">
|
116
|
-
<Filter>src</Filter>
|
117
|
-
</ClCompile>
|
118
|
-
<ClCompile Include="..\..\..\..\test\default\secretbox7.c">
|
119
|
-
<Filter>src</Filter>
|
120
|
-
</ClCompile>
|
121
|
-
<ClCompile Include="..\..\..\..\test\default\secretbox8.c">
|
122
|
-
<Filter>src</Filter>
|
123
|
-
</ClCompile>
|
124
|
-
<ClCompile Include="..\..\..\..\test\default\shorthash.c">
|
125
|
-
<Filter>src</Filter>
|
126
|
-
</ClCompile>
|
127
|
-
<ClCompile Include="..\..\..\..\test\default\sodium_core.c">
|
128
|
-
<Filter>src</Filter>
|
129
|
-
</ClCompile>
|
130
|
-
<ClCompile Include="..\..\..\..\test\default\sodium_utils.c">
|
131
|
-
<Filter>src</Filter>
|
132
|
-
</ClCompile>
|
133
|
-
<ClCompile Include="..\..\..\..\test\default\sodium_utils2.c">
|
134
|
-
<Filter>src</Filter>
|
135
|
-
</ClCompile>
|
136
|
-
<ClCompile Include="..\..\..\..\test\default\sodium_utils3.c">
|
137
|
-
<Filter>src</Filter>
|
138
|
-
</ClCompile>
|
139
|
-
<ClCompile Include="..\..\..\..\test\default\sodium_version.c">
|
140
|
-
<Filter>src</Filter>
|
141
|
-
</ClCompile>
|
142
|
-
<ClCompile Include="..\..\..\..\test\default\stream.c">
|
143
|
-
<Filter>src</Filter>
|
144
|
-
</ClCompile>
|
145
|
-
<ClCompile Include="..\..\..\..\test\default\stream2.c">
|
146
|
-
<Filter>src</Filter>
|
147
|
-
</ClCompile>
|
148
|
-
<ClCompile Include="..\..\..\..\test\default\stream3.c">
|
149
|
-
<Filter>src</Filter>
|
150
|
-
</ClCompile>
|
151
|
-
<ClCompile Include="..\..\..\..\test\default\stream4.c">
|
152
|
-
<Filter>src</Filter>
|
153
|
-
</ClCompile>
|
154
|
-
<ClCompile Include="..\..\..\..\test\default\sign.c">
|
155
|
-
<Filter>src</Filter>
|
156
|
-
</ClCompile>
|
157
|
-
<ClCompile Include="..\..\..\..\test\default\pwhash.c">
|
158
|
-
<Filter>src</Filter>
|
159
|
-
</ClCompile>
|
160
|
-
<ClCompile Include="..\..\..\..\test\default\aead_chacha20poly1305.c">
|
161
|
-
<Filter>src</Filter>
|
162
|
-
</ClCompile>
|
163
|
-
<ClCompile Include="..\..\..\..\test\default\auth6.c">
|
164
|
-
<Filter>src</Filter>
|
165
|
-
</ClCompile>
|
166
|
-
<ClCompile Include="..\..\..\..\test\default\auth7.c">
|
167
|
-
<Filter>src</Filter>
|
168
|
-
</ClCompile>
|
169
|
-
<ClCompile Include="..\..\..\..\test\default\verify1.c">
|
170
|
-
<Filter>src</Filter>
|
171
|
-
</ClCompile>
|
172
|
-
<ClCompile Include="..\..\..\..\test\default\aead_aes256gcm.c">
|
173
|
-
<Filter>src</Filter>
|
174
|
-
</ClCompile>
|
175
|
-
</ItemGroup>
|
176
|
-
<ItemGroup>
|
177
|
-
<ClInclude Include="..\..\..\..\test\default\cmptest.h">
|
178
|
-
<Filter>include</Filter>
|
179
|
-
</ClInclude>
|
180
|
-
<ClInclude Include="..\..\..\..\test\quirks\quirks.h">
|
181
|
-
<Filter>include</Filter>
|
182
|
-
</ClInclude>
|
183
|
-
</ItemGroup>
|
184
|
-
<ItemGroup>
|
185
|
-
<Filter Include="src">
|
186
|
-
<UniqueIdentifier>{705beade-aa7f-49c0-900e-4b0cbbdc2f7b}</UniqueIdentifier>
|
187
|
-
</Filter>
|
188
|
-
<Filter Include="include">
|
189
|
-
<UniqueIdentifier>{5b5af4b5-c6aa-4b30-bdef-074b1bdc43ea}</UniqueIdentifier>
|
190
|
-
</Filter>
|
191
|
-
</ItemGroup>
|
192
|
-
</Project>
|
@@ -1,146 +0,0 @@
|
|
1
|
-
#ifndef sysendian_H
|
2
|
-
#define sysendian_H
|
3
|
-
|
4
|
-
#include <stdint.h>
|
5
|
-
|
6
|
-
/* Avoid namespace collisions with BSD <sys/endian.h>. */
|
7
|
-
#define be16dec scrypt_be16dec
|
8
|
-
#define be16enc scrypt_be16enc
|
9
|
-
#define be32dec scrypt_be32dec
|
10
|
-
#define be32enc scrypt_be32enc
|
11
|
-
#define be64dec scrypt_be64dec
|
12
|
-
#define be64enc scrypt_be64enc
|
13
|
-
#define le16dec scrypt_le16dec
|
14
|
-
#define le16enc scrypt_le16enc
|
15
|
-
#define le32dec scrypt_le32dec
|
16
|
-
#define le32enc scrypt_le32enc
|
17
|
-
#define le64dec scrypt_le64dec
|
18
|
-
#define le64enc scrypt_le64enc
|
19
|
-
|
20
|
-
static inline uint16_t
|
21
|
-
be16dec(const void *pp)
|
22
|
-
{
|
23
|
-
const uint8_t *p = (uint8_t const *)pp;
|
24
|
-
|
25
|
-
return ((uint16_t)(p[1]) + ((uint16_t)(p[0]) << 8));
|
26
|
-
}
|
27
|
-
|
28
|
-
static inline void
|
29
|
-
be16enc(void *pp, uint16_t x)
|
30
|
-
{
|
31
|
-
uint8_t * p = (uint8_t *)pp;
|
32
|
-
|
33
|
-
p[1] = x & 0xff;
|
34
|
-
p[0] = (x >> 8) & 0xff;
|
35
|
-
}
|
36
|
-
|
37
|
-
static inline uint32_t
|
38
|
-
be32dec(const void *pp)
|
39
|
-
{
|
40
|
-
const uint8_t *p = (uint8_t const *)pp;
|
41
|
-
|
42
|
-
return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8) +
|
43
|
-
((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24));
|
44
|
-
}
|
45
|
-
|
46
|
-
static inline void
|
47
|
-
be32enc(void *pp, uint32_t x)
|
48
|
-
{
|
49
|
-
uint8_t * p = (uint8_t *)pp;
|
50
|
-
|
51
|
-
p[3] = x & 0xff;
|
52
|
-
p[2] = (x >> 8) & 0xff;
|
53
|
-
p[1] = (x >> 16) & 0xff;
|
54
|
-
p[0] = (x >> 24) & 0xff;
|
55
|
-
}
|
56
|
-
|
57
|
-
static inline uint64_t
|
58
|
-
be64dec(const void *pp)
|
59
|
-
{
|
60
|
-
const uint8_t *p = (uint8_t const *)pp;
|
61
|
-
|
62
|
-
return ((uint64_t)(p[7]) + ((uint64_t)(p[6]) << 8) +
|
63
|
-
((uint64_t)(p[5]) << 16) + ((uint64_t)(p[4]) << 24) +
|
64
|
-
((uint64_t)(p[3]) << 32) + ((uint64_t)(p[2]) << 40) +
|
65
|
-
((uint64_t)(p[1]) << 48) + ((uint64_t)(p[0]) << 56));
|
66
|
-
}
|
67
|
-
|
68
|
-
static inline void
|
69
|
-
be64enc(void *pp, uint64_t x)
|
70
|
-
{
|
71
|
-
uint8_t * p = (uint8_t *)pp;
|
72
|
-
|
73
|
-
p[7] = x & 0xff;
|
74
|
-
p[6] = (x >> 8) & 0xff;
|
75
|
-
p[5] = (x >> 16) & 0xff;
|
76
|
-
p[4] = (x >> 24) & 0xff;
|
77
|
-
p[3] = (x >> 32) & 0xff;
|
78
|
-
p[2] = (x >> 40) & 0xff;
|
79
|
-
p[1] = (x >> 48) & 0xff;
|
80
|
-
p[0] = (x >> 56) & 0xff;
|
81
|
-
}
|
82
|
-
|
83
|
-
static inline uint16_t
|
84
|
-
le16dec(const void *pp)
|
85
|
-
{
|
86
|
-
const uint8_t *p = (uint8_t const *)pp;
|
87
|
-
|
88
|
-
return ((uint16_t)(p[0]) + ((uint16_t)(p[1]) << 8));
|
89
|
-
}
|
90
|
-
|
91
|
-
static inline void
|
92
|
-
le16enc(void *pp, uint16_t x)
|
93
|
-
{
|
94
|
-
uint8_t * p = (uint8_t *)pp;
|
95
|
-
|
96
|
-
p[0] = x & 0xff;
|
97
|
-
p[1] = (x >> 8) & 0xff;
|
98
|
-
}
|
99
|
-
|
100
|
-
static inline uint32_t
|
101
|
-
le32dec(const void *pp)
|
102
|
-
{
|
103
|
-
const uint8_t *p = (uint8_t const *)pp;
|
104
|
-
|
105
|
-
return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) +
|
106
|
-
((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24));
|
107
|
-
}
|
108
|
-
|
109
|
-
static inline void
|
110
|
-
le32enc(void *pp, uint32_t x)
|
111
|
-
{
|
112
|
-
uint8_t * p = (uint8_t *)pp;
|
113
|
-
|
114
|
-
p[0] = x & 0xff;
|
115
|
-
p[1] = (x >> 8) & 0xff;
|
116
|
-
p[2] = (x >> 16) & 0xff;
|
117
|
-
p[3] = (x >> 24) & 0xff;
|
118
|
-
}
|
119
|
-
|
120
|
-
static inline uint64_t
|
121
|
-
le64dec(const void *pp)
|
122
|
-
{
|
123
|
-
const uint8_t *p = (uint8_t const *)pp;
|
124
|
-
|
125
|
-
return ((uint64_t)(p[0]) + ((uint64_t)(p[1]) << 8) +
|
126
|
-
((uint64_t)(p[2]) << 16) + ((uint64_t)(p[3]) << 24) +
|
127
|
-
((uint64_t)(p[4]) << 32) + ((uint64_t)(p[5]) << 40) +
|
128
|
-
((uint64_t)(p[6]) << 48) + ((uint64_t)(p[7]) << 56));
|
129
|
-
}
|
130
|
-
|
131
|
-
static inline void
|
132
|
-
le64enc(void *pp, uint64_t x)
|
133
|
-
{
|
134
|
-
uint8_t * p = (uint8_t *)pp;
|
135
|
-
|
136
|
-
p[0] = x & 0xff;
|
137
|
-
p[1] = (x >> 8) & 0xff;
|
138
|
-
p[2] = (x >> 16) & 0xff;
|
139
|
-
p[3] = (x >> 24) & 0xff;
|
140
|
-
p[4] = (x >> 32) & 0xff;
|
141
|
-
p[5] = (x >> 40) & 0xff;
|
142
|
-
p[6] = (x >> 48) & 0xff;
|
143
|
-
p[7] = (x >> 56) & 0xff;
|
144
|
-
}
|
145
|
-
|
146
|
-
#endif /* !_SYSENDIAN_H_ */
|
@@ -1,64 +0,0 @@
|
|
1
|
-
#include "common.h"
|
2
|
-
|
3
|
-
uint32 load32_bigendian(const unsigned char *x)
|
4
|
-
{
|
5
|
-
return
|
6
|
-
(uint32) (x[3]) \
|
7
|
-
| (((uint32) (x[2])) << 8) \
|
8
|
-
| (((uint32) (x[1])) << 16) \
|
9
|
-
| (((uint32) (x[0])) << 24)
|
10
|
-
;
|
11
|
-
}
|
12
|
-
|
13
|
-
void store32_bigendian(unsigned char *x,uint32 u)
|
14
|
-
{
|
15
|
-
x[3] = u; u >>= 8;
|
16
|
-
x[2] = u; u >>= 8;
|
17
|
-
x[1] = u; u >>= 8;
|
18
|
-
x[0] = u;
|
19
|
-
}
|
20
|
-
|
21
|
-
uint32 load32_littleendian(const unsigned char *x)
|
22
|
-
{
|
23
|
-
return
|
24
|
-
(uint32) (x[0]) \
|
25
|
-
| (((uint32) (x[1])) << 8) \
|
26
|
-
| (((uint32) (x[2])) << 16) \
|
27
|
-
| (((uint32) (x[3])) << 24)
|
28
|
-
;
|
29
|
-
}
|
30
|
-
|
31
|
-
void store32_littleendian(unsigned char *x,uint32 u)
|
32
|
-
{
|
33
|
-
x[0] = u; u >>= 8;
|
34
|
-
x[1] = u; u >>= 8;
|
35
|
-
x[2] = u; u >>= 8;
|
36
|
-
x[3] = u;
|
37
|
-
}
|
38
|
-
|
39
|
-
|
40
|
-
uint64 load64_littleendian(const unsigned char *x)
|
41
|
-
{
|
42
|
-
return
|
43
|
-
(uint64) (x[0]) \
|
44
|
-
| (((uint64) (x[1])) << 8) \
|
45
|
-
| (((uint64) (x[2])) << 16) \
|
46
|
-
| (((uint64) (x[3])) << 24)
|
47
|
-
| (((uint64) (x[4])) << 32)
|
48
|
-
| (((uint64) (x[5])) << 40)
|
49
|
-
| (((uint64) (x[6])) << 48)
|
50
|
-
| (((uint64) (x[7])) << 56)
|
51
|
-
;
|
52
|
-
}
|
53
|
-
|
54
|
-
void store64_littleendian(unsigned char *x,uint64 u)
|
55
|
-
{
|
56
|
-
x[0] = u; u >>= 8;
|
57
|
-
x[1] = u; u >>= 8;
|
58
|
-
x[2] = u; u >>= 8;
|
59
|
-
x[3] = u; u >>= 8;
|
60
|
-
x[4] = u; u >>= 8;
|
61
|
-
x[5] = u; u >>= 8;
|
62
|
-
x[6] = u; u >>= 8;
|
63
|
-
x[7] = u;
|
64
|
-
}
|