rbnacl-libsodium 0.5.0.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/rbnacl/libsodium/version.rb +1 -1
- data/vendor/libsodium/AUTHORS +62 -81
- data/vendor/libsodium/ChangeLog +31 -1
- data/vendor/libsodium/README.markdown +15 -364
- data/vendor/libsodium/THANKS +6 -0
- data/vendor/libsodium/autom4te.cache/output.0 +67 -36
- data/vendor/libsodium/autom4te.cache/output.1 +67 -36
- data/vendor/libsodium/autom4te.cache/output.2 +67 -36
- data/vendor/libsodium/autom4te.cache/traces.0 +52 -51
- data/vendor/libsodium/autom4te.cache/traces.1 +137 -133
- data/vendor/libsodium/autom4te.cache/traces.2 +52 -51
- data/vendor/libsodium/builds/msvc/version.h +2 -2
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +365 -345
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +1114 -1037
- data/vendor/libsodium/builds/msvc/vs2010/test/test.props +8 -2
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +364 -344
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +1113 -1036
- data/vendor/libsodium/builds/msvc/vs2012/test/test.props +8 -2
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +365 -345
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +1114 -1037
- data/vendor/libsodium/builds/msvc/vs2013/test/test.props +8 -2
- data/vendor/libsodium/configure +66 -35
- data/vendor/libsodium/configure.ac +25 -14
- data/vendor/libsodium/dist-build/ios.sh +1 -1
- data/vendor/libsodium/dist-build/msys2-win64.sh +1 -1
- data/vendor/libsodium/libsodium.vcxproj +29 -14
- data/vendor/libsodium/libsodium.vcxproj.filters +77 -28
- data/vendor/libsodium/msvc-scripts/process.bat +3 -3
- data/vendor/libsodium/packaging/nuget/package.config +1 -1
- data/vendor/libsodium/packaging/nuget/package.gsl +6 -1
- data/vendor/libsodium/packaging/nuget/package.nuspec +1 -1
- data/vendor/libsodium/src/libsodium/Makefile.am +31 -13
- data/vendor/libsodium/src/libsodium/Makefile.in +406 -155
- data/vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +146 -0
- data/vendor/libsodium/src/libsodium/crypto_box/crypto_box.c +13 -0
- data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +39 -73
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c +5 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/api.h +2 -0
- data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c +15 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +6 -5
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2s-ref.c +6 -5
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.c +25 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c +76 -47
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h +30 -7
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +3 -16
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +3 -10
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/verify_poly1305_donna.c +11 -6
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c +23 -1
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256 → scryptsalsa208sha256}/crypto_scrypt-common.c +7 -7
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256 → scryptsalsa208sha256}/crypto_scrypt.h +6 -20
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256/nosse/pwhash_scryptxsalsa208sha256_nosse.c → scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c} +0 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256 → scryptsalsa208sha256}/pbkdf2-sha256.c +1 -11
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256 → scryptsalsa208sha256}/pbkdf2-sha256.h +0 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256/pwhash_scryptxsalsa208sha256.c → scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c} +50 -25
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256 → scryptsalsa208sha256}/scrypt_platform.c +4 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256/sse/pwhash_scryptxsalsa208sha256_sse.c → scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c} +0 -0
- data/vendor/libsodium/src/libsodium/crypto_pwhash/{scryptxsalsa208sha256 → scryptsalsa208sha256}/sysendian.h +0 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/{ref → ref10}/api.h +0 -3
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/base_curve25519_ref10.c +14 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe.h +44 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_0_curve25519_ref10.c +23 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_1_curve25519_ref10.c +23 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_add_curve25519_ref10.c +61 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_copy_curve25519_ref10.c +33 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_cswap_curve25519_ref10.c +77 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_frombytes_curve25519_ref10.c +73 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_invert_curve25519_ref10.c +18 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_mul121666_curve25519_ref10.c +74 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_mul_curve25519_ref10.c +257 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_sq_curve25519_ref10.c +153 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_sub_curve25519_ref10.c +61 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_tobytes_curve25519_ref10.c +123 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/montgomery.h +140 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/pow225521.h +160 -0
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/scalarmult_curve25519_ref10.c +54 -0
- data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +92 -61
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_scalarmult_base.c +3 -3
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/pow22523.h +2 -2
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/pow225521.h +2 -2
- data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.c +8 -4
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/consts_aes128ctr.c +3 -3
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128.h +6 -3
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128_aes128ctr.c +23 -23
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/api.h +12 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +275 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c +36 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S +11 -10
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +8 -3
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20_api.c +8 -0
- data/vendor/libsodium/src/libsodium/include/Makefile.am +3 -2
- data/vendor/libsodium/src/libsodium/include/Makefile.in +3 -2
- data/vendor/libsodium/src/libsodium/include/sodium.h +3 -1
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h +55 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +21 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h +11 -1
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash.h +7 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +7 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +7 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +15 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +25 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +80 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h +2 -2
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +14 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +11 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes256estream.h +11 -6
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h +49 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h +6 -0
- data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +7 -7
- data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +10 -14
- data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +10 -13
- data/vendor/libsodium/src/libsodium/sodium/compat.c +55 -4
- data/vendor/libsodium/src/libsodium/sodium/utils.c +18 -0
- data/vendor/libsodium/test/default/Makefile.am +24 -12
- data/vendor/libsodium/test/default/Makefile.in +116 -73
- data/vendor/libsodium/test/default/aead_chacha20poly1305.c +97 -0
- data/vendor/libsodium/test/default/aead_chacha20poly1305.exp +8 -0
- data/vendor/libsodium/test/default/box_easy.c +1 -1
- data/vendor/libsodium/test/default/box_seed.c +28 -0
- data/vendor/libsodium/test/default/box_seed.exp +8 -0
- data/vendor/libsodium/test/default/chacha20.c +45 -0
- data/vendor/libsodium/test/default/chacha20.exp +5 -0
- data/vendor/libsodium/test/default/pwhash.c +83 -15
- data/vendor/libsodium/test/default/pwhash.exp +10 -1
- data/vendor/libsodium/test/default/pwhash_scrypt_ll.c +67 -0
- data/vendor/libsodium/test/default/pwhash_scrypt_ll.exp +15 -0
- data/vendor/libsodium/test/default/secretbox_easy.c +13 -1
- data/vendor/libsodium/test/default/secretbox_easy.exp +19 -0
- data/vendor/libsodium/test/default/secretbox_easy2.c +5 -0
- data/vendor/libsodium/test/default/secretbox_easy2.exp +1 -0
- data/vendor/libsodium/test/default/sign.c +7 -3
- metadata +44 -21
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/api.h +0 -8
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/base_curve25519_ref.c +0 -20
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref/smult_curve25519_ref.c +0 -268
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305_donna.h +0 -37
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptxsalsa208sha256.h +0 -48
- data/vendor/libsodium/test/default/scalarmult7.c +0 -32
- data/vendor/libsodium/test/default/scalarmult7.exp +0 -1
- data/vendor/libsodium/test/default/scalarmult8.c +0 -32
- data/vendor/libsodium/test/default/scalarmult8.exp +0 -1
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbnacl-libsodium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artiom Di
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbnacl
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- vendor/libsodium/src/Makefile.in
|
207
207
|
- vendor/libsodium/src/libsodium/Makefile.am
|
208
208
|
- vendor/libsodium/src/libsodium/Makefile.in
|
209
|
+
- vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c
|
209
210
|
- vendor/libsodium/src/libsodium/crypto_auth/crypto_auth.c
|
210
211
|
- vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.c
|
211
212
|
- vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/checksum
|
@@ -267,7 +268,6 @@ files:
|
|
267
268
|
- vendor/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.c
|
268
269
|
- vendor/libsodium/src/libsodium/crypto_hash/try.c
|
269
270
|
- vendor/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.c
|
270
|
-
- vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/api.h
|
271
271
|
- vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c
|
272
272
|
- vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h
|
273
273
|
- vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h
|
@@ -276,23 +276,38 @@ files:
|
|
276
276
|
- vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c
|
277
277
|
- vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.c
|
278
278
|
- vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c
|
279
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
280
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
281
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
282
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
283
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
284
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
285
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
286
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
287
|
-
- vendor/libsodium/src/libsodium/crypto_pwhash/
|
279
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c
|
280
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h
|
281
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c
|
282
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c
|
283
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.h
|
284
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c
|
285
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c
|
286
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c
|
287
|
+
- vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sysendian.h
|
288
288
|
- vendor/libsodium/src/libsodium/crypto_scalarmult/crypto_scalarmult.c
|
289
289
|
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/checksum
|
290
290
|
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/api.h
|
291
291
|
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c
|
292
292
|
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c
|
293
|
-
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/
|
294
|
-
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/
|
295
|
-
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/
|
293
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/api.h
|
294
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/base_curve25519_ref10.c
|
295
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe.h
|
296
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_0_curve25519_ref10.c
|
297
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_1_curve25519_ref10.c
|
298
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_add_curve25519_ref10.c
|
299
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_copy_curve25519_ref10.c
|
300
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_cswap_curve25519_ref10.c
|
301
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_frombytes_curve25519_ref10.c
|
302
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_invert_curve25519_ref10.c
|
303
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_mul121666_curve25519_ref10.c
|
304
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_mul_curve25519_ref10.c
|
305
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_sq_curve25519_ref10.c
|
306
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_sub_curve25519_ref10.c
|
307
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_tobytes_curve25519_ref10.c
|
308
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/montgomery.h
|
309
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/pow225521.h
|
310
|
+
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/scalarmult_curve25519_ref10.c
|
296
311
|
- vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519_api.c
|
297
312
|
- vendor/libsodium/src/libsodium/crypto_scalarmult/try.c
|
298
313
|
- vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.c
|
@@ -396,6 +411,9 @@ files:
|
|
396
411
|
- vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/api.h
|
397
412
|
- vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h
|
398
413
|
- vendor/libsodium/src/libsodium/crypto_stream/aes256estream/stream_aes256estream_api.c
|
414
|
+
- vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/api.h
|
415
|
+
- vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c
|
416
|
+
- vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c
|
399
417
|
- vendor/libsodium/src/libsodium/crypto_stream/crypto_stream.c
|
400
418
|
- vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/api.h
|
401
419
|
- vendor/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S
|
@@ -436,6 +454,7 @@ files:
|
|
436
454
|
- vendor/libsodium/src/libsodium/include/Makefile.in
|
437
455
|
- vendor/libsodium/src/libsodium/include/sodium.h
|
438
456
|
- vendor/libsodium/src/libsodium/include/sodium/core.h
|
457
|
+
- vendor/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h
|
439
458
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_auth.h
|
440
459
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h
|
441
460
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h
|
@@ -455,8 +474,7 @@ files:
|
|
455
474
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_int64.h
|
456
475
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h
|
457
476
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h
|
458
|
-
- vendor/libsodium/src/libsodium/include/sodium/
|
459
|
-
- vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptxsalsa208sha256.h
|
477
|
+
- vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h
|
460
478
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult.h
|
461
479
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h
|
462
480
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h
|
@@ -469,6 +487,7 @@ files:
|
|
469
487
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_stream.h
|
470
488
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
|
471
489
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes256estream.h
|
490
|
+
- vendor/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h
|
472
491
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h
|
473
492
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa2012.h
|
474
493
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_stream_salsa208.h
|
@@ -500,6 +519,8 @@ files:
|
|
500
519
|
- vendor/libsodium/test/Makefile.in
|
501
520
|
- vendor/libsodium/test/default/Makefile.am
|
502
521
|
- vendor/libsodium/test/default/Makefile.in
|
522
|
+
- vendor/libsodium/test/default/aead_chacha20poly1305.c
|
523
|
+
- vendor/libsodium/test/default/aead_chacha20poly1305.exp
|
503
524
|
- vendor/libsodium/test/default/auth.c
|
504
525
|
- vendor/libsodium/test/default/auth.exp
|
505
526
|
- vendor/libsodium/test/default/auth2.c
|
@@ -524,6 +545,10 @@ files:
|
|
524
545
|
- vendor/libsodium/test/default/box_easy.exp
|
525
546
|
- vendor/libsodium/test/default/box_easy2.c
|
526
547
|
- vendor/libsodium/test/default/box_easy2.exp
|
548
|
+
- vendor/libsodium/test/default/box_seed.c
|
549
|
+
- vendor/libsodium/test/default/box_seed.exp
|
550
|
+
- vendor/libsodium/test/default/chacha20.c
|
551
|
+
- vendor/libsodium/test/default/chacha20.exp
|
527
552
|
- vendor/libsodium/test/default/cmptest.h
|
528
553
|
- vendor/libsodium/test/default/core1.c
|
529
554
|
- vendor/libsodium/test/default/core1.exp
|
@@ -557,6 +582,8 @@ files:
|
|
557
582
|
- vendor/libsodium/test/default/pre.js
|
558
583
|
- vendor/libsodium/test/default/pwhash.c
|
559
584
|
- vendor/libsodium/test/default/pwhash.exp
|
585
|
+
- vendor/libsodium/test/default/pwhash_scrypt_ll.c
|
586
|
+
- vendor/libsodium/test/default/pwhash_scrypt_ll.exp
|
560
587
|
- vendor/libsodium/test/default/randombytes.c
|
561
588
|
- vendor/libsodium/test/default/scalarmult.c
|
562
589
|
- vendor/libsodium/test/default/scalarmult.exp
|
@@ -566,10 +593,6 @@ files:
|
|
566
593
|
- vendor/libsodium/test/default/scalarmult5.exp
|
567
594
|
- vendor/libsodium/test/default/scalarmult6.c
|
568
595
|
- vendor/libsodium/test/default/scalarmult6.exp
|
569
|
-
- vendor/libsodium/test/default/scalarmult7.c
|
570
|
-
- vendor/libsodium/test/default/scalarmult7.exp
|
571
|
-
- vendor/libsodium/test/default/scalarmult8.c
|
572
|
-
- vendor/libsodium/test/default/scalarmult8.exp
|
573
596
|
- vendor/libsodium/test/default/secretbox.c
|
574
597
|
- vendor/libsodium/test/default/secretbox.exp
|
575
598
|
- vendor/libsodium/test/default/secretbox2.c
|
@@ -1,8 +0,0 @@
|
|
1
|
-
|
2
|
-
#include "crypto_onetimeauth_poly1305.h"
|
3
|
-
|
4
|
-
#define crypto_onetimeauth_poly1305_implementation_name \
|
5
|
-
crypto_onetimeauth_poly1305_donna_implementation_name
|
6
|
-
|
7
|
-
#define crypto_onetimeauth crypto_onetimeauth_poly1305_donna
|
8
|
-
#define crypto_onetimeauth_verify crypto_onetimeauth_poly1305_donna_verify
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
version 20081011
|
3
|
-
Matthew Dempsky
|
4
|
-
Public domain.
|
5
|
-
Derived from public domain code by D. J. Bernstein.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#include "api.h"
|
9
|
-
|
10
|
-
#ifndef HAVE_TI_MODE
|
11
|
-
|
12
|
-
const unsigned char base[32] = {9};
|
13
|
-
|
14
|
-
int crypto_scalarmult_base(unsigned char *q,
|
15
|
-
const unsigned char *n)
|
16
|
-
{
|
17
|
-
return crypto_scalarmult(q,n,base);
|
18
|
-
}
|
19
|
-
|
20
|
-
#endif
|
@@ -1,268 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
version 20081011
|
3
|
-
Matthew Dempsky
|
4
|
-
Public domain.
|
5
|
-
Derived from public domain code by D. J. Bernstein.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#include "api.h"
|
9
|
-
|
10
|
-
#ifndef HAVE_TI_MODE
|
11
|
-
|
12
|
-
static void add(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
|
13
|
-
{
|
14
|
-
unsigned int j;
|
15
|
-
unsigned int u;
|
16
|
-
u = 0;
|
17
|
-
for (j = 0;j < 31;++j) { u += a[j] + b[j]; out[j] = u & 255; u >>= 8; }
|
18
|
-
u += a[31] + b[31]; out[31] = u;
|
19
|
-
}
|
20
|
-
|
21
|
-
static void sub(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
|
22
|
-
{
|
23
|
-
unsigned int j;
|
24
|
-
unsigned int u;
|
25
|
-
u = 218;
|
26
|
-
for (j = 0;j < 31;++j) {
|
27
|
-
u += a[j] + 65280 - b[j];
|
28
|
-
out[j] = u & 255;
|
29
|
-
u >>= 8;
|
30
|
-
}
|
31
|
-
u += a[31] - b[31];
|
32
|
-
out[31] = u;
|
33
|
-
}
|
34
|
-
|
35
|
-
static void squeeze(unsigned int a[32])
|
36
|
-
{
|
37
|
-
unsigned int j;
|
38
|
-
unsigned int u;
|
39
|
-
u = 0;
|
40
|
-
for (j = 0;j < 31;++j) { u += a[j]; a[j] = u & 255; u >>= 8; }
|
41
|
-
u += a[31]; a[31] = u & 127;
|
42
|
-
u = 19 * (u >> 7);
|
43
|
-
for (j = 0;j < 31;++j) { u += a[j]; a[j] = u & 255; u >>= 8; }
|
44
|
-
u += a[31]; a[31] = u;
|
45
|
-
}
|
46
|
-
|
47
|
-
static const unsigned int minusp[32] = {
|
48
|
-
19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128
|
49
|
-
} ;
|
50
|
-
|
51
|
-
static void freeze(unsigned int a[32])
|
52
|
-
{
|
53
|
-
unsigned int aorig[32];
|
54
|
-
unsigned int j;
|
55
|
-
unsigned int negative;
|
56
|
-
|
57
|
-
for (j = 0;j < 32;++j) aorig[j] = a[j];
|
58
|
-
add(a,a,minusp);
|
59
|
-
negative = -((a[31] >> 7) & 1);
|
60
|
-
for (j = 0;j < 32;++j) a[j] ^= negative & (aorig[j] ^ a[j]);
|
61
|
-
}
|
62
|
-
|
63
|
-
static void mult(unsigned int out[32],const unsigned int a[32],const unsigned int b[32])
|
64
|
-
{
|
65
|
-
unsigned int i;
|
66
|
-
unsigned int j;
|
67
|
-
unsigned int u;
|
68
|
-
|
69
|
-
for (i = 0;i < 32;++i) {
|
70
|
-
u = 0;
|
71
|
-
for (j = 0;j <= i;++j) u += a[j] * b[i - j];
|
72
|
-
for (j = i + 1;j < 32;++j) u += 38 * a[j] * b[i + 32 - j];
|
73
|
-
out[i] = u;
|
74
|
-
}
|
75
|
-
squeeze(out);
|
76
|
-
}
|
77
|
-
|
78
|
-
static void mult121665(unsigned int out[32],const unsigned int a[32])
|
79
|
-
{
|
80
|
-
unsigned int j;
|
81
|
-
unsigned int u;
|
82
|
-
|
83
|
-
u = 0;
|
84
|
-
for (j = 0;j < 31;++j) { u += 121665 * a[j]; out[j] = u & 255; u >>= 8; }
|
85
|
-
u += 121665 * a[31]; out[31] = u & 127;
|
86
|
-
u = 19 * (u >> 7);
|
87
|
-
for (j = 0;j < 31;++j) { u += out[j]; out[j] = u & 255; u >>= 8; }
|
88
|
-
u += out[j]; out[j] = u;
|
89
|
-
}
|
90
|
-
|
91
|
-
static void square(unsigned int out[32],const unsigned int a[32])
|
92
|
-
{
|
93
|
-
unsigned int i;
|
94
|
-
unsigned int j;
|
95
|
-
unsigned int u;
|
96
|
-
|
97
|
-
for (i = 0;i < 32;++i) {
|
98
|
-
u = 0;
|
99
|
-
for (j = 0;j < i - j;++j) u += a[j] * a[i - j];
|
100
|
-
for (j = i + 1;j < i + 32 - j;++j) u += 38 * a[j] * a[i + 32 - j];
|
101
|
-
u *= 2;
|
102
|
-
if ((i & 1) == 0) {
|
103
|
-
u += a[i / 2] * a[i / 2];
|
104
|
-
u += 38 * a[i / 2 + 16] * a[i / 2 + 16];
|
105
|
-
}
|
106
|
-
out[i] = u;
|
107
|
-
}
|
108
|
-
squeeze(out);
|
109
|
-
}
|
110
|
-
|
111
|
-
static void select(unsigned int p[64],unsigned int q[64],const unsigned int r[64],const unsigned int s[64],unsigned int b)
|
112
|
-
{
|
113
|
-
unsigned int j;
|
114
|
-
unsigned int t;
|
115
|
-
unsigned int bminus1;
|
116
|
-
|
117
|
-
bminus1 = b - 1;
|
118
|
-
for (j = 0;j < 64;++j) {
|
119
|
-
t = bminus1 & (r[j] ^ s[j]);
|
120
|
-
p[j] = s[j] ^ t;
|
121
|
-
q[j] = r[j] ^ t;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
static void mainloop(unsigned int work[64],const unsigned char e[32])
|
126
|
-
{
|
127
|
-
unsigned int xzm1[64];
|
128
|
-
unsigned int xzm[64];
|
129
|
-
unsigned int xzmb[64];
|
130
|
-
unsigned int xzm1b[64];
|
131
|
-
unsigned int xznb[64];
|
132
|
-
unsigned int xzn1b[64];
|
133
|
-
unsigned int a0[64];
|
134
|
-
unsigned int a1[64];
|
135
|
-
unsigned int b0[64];
|
136
|
-
unsigned int b1[64];
|
137
|
-
unsigned int c1[64];
|
138
|
-
unsigned int r[32];
|
139
|
-
unsigned int s[32];
|
140
|
-
unsigned int t[32];
|
141
|
-
unsigned int u[32];
|
142
|
-
unsigned int j;
|
143
|
-
unsigned int b;
|
144
|
-
int pos;
|
145
|
-
|
146
|
-
for (j = 0;j < 32;++j) xzm1[j] = work[j];
|
147
|
-
xzm1[32] = 1;
|
148
|
-
for (j = 33;j < 64;++j) xzm1[j] = 0;
|
149
|
-
|
150
|
-
xzm[0] = 1;
|
151
|
-
for (j = 1;j < 64;++j) xzm[j] = 0;
|
152
|
-
|
153
|
-
for (pos = 254;pos >= 0;--pos) {
|
154
|
-
b = e[pos / 8] >> (pos & 7);
|
155
|
-
b &= 1;
|
156
|
-
select(xzmb,xzm1b,xzm,xzm1,b);
|
157
|
-
add(a0,xzmb,xzmb + 32);
|
158
|
-
sub(a0 + 32,xzmb,xzmb + 32);
|
159
|
-
add(a1,xzm1b,xzm1b + 32);
|
160
|
-
sub(a1 + 32,xzm1b,xzm1b + 32);
|
161
|
-
square(b0,a0);
|
162
|
-
square(b0 + 32,a0 + 32);
|
163
|
-
mult(b1,a1,a0 + 32);
|
164
|
-
mult(b1 + 32,a1 + 32,a0);
|
165
|
-
add(c1,b1,b1 + 32);
|
166
|
-
sub(c1 + 32,b1,b1 + 32);
|
167
|
-
square(r,c1 + 32);
|
168
|
-
sub(s,b0,b0 + 32);
|
169
|
-
mult121665(t,s);
|
170
|
-
add(u,t,b0);
|
171
|
-
mult(xznb,b0,b0 + 32);
|
172
|
-
mult(xznb + 32,s,u);
|
173
|
-
square(xzn1b,c1);
|
174
|
-
mult(xzn1b + 32,r,work);
|
175
|
-
select(xzm,xzm1,xznb,xzn1b,b);
|
176
|
-
}
|
177
|
-
|
178
|
-
for (j = 0;j < 64;++j) work[j] = xzm[j];
|
179
|
-
}
|
180
|
-
|
181
|
-
static void recip(unsigned int out[32],const unsigned int z[32])
|
182
|
-
{
|
183
|
-
unsigned int z2[32];
|
184
|
-
unsigned int z9[32];
|
185
|
-
unsigned int z11[32];
|
186
|
-
unsigned int z2_5_0[32];
|
187
|
-
unsigned int z2_10_0[32];
|
188
|
-
unsigned int z2_20_0[32];
|
189
|
-
unsigned int z2_50_0[32];
|
190
|
-
unsigned int z2_100_0[32];
|
191
|
-
unsigned int t0[32];
|
192
|
-
unsigned int t1[32];
|
193
|
-
int i;
|
194
|
-
|
195
|
-
/* 2 */ square(z2,z);
|
196
|
-
/* 4 */ square(t1,z2);
|
197
|
-
/* 8 */ square(t0,t1);
|
198
|
-
/* 9 */ mult(z9,t0,z);
|
199
|
-
/* 11 */ mult(z11,z9,z2);
|
200
|
-
/* 22 */ square(t0,z11);
|
201
|
-
/* 2^5 - 2^0 = 31 */ mult(z2_5_0,t0,z9);
|
202
|
-
|
203
|
-
/* 2^6 - 2^1 */ square(t0,z2_5_0);
|
204
|
-
/* 2^7 - 2^2 */ square(t1,t0);
|
205
|
-
/* 2^8 - 2^3 */ square(t0,t1);
|
206
|
-
/* 2^9 - 2^4 */ square(t1,t0);
|
207
|
-
/* 2^10 - 2^5 */ square(t0,t1);
|
208
|
-
/* 2^10 - 2^0 */ mult(z2_10_0,t0,z2_5_0);
|
209
|
-
|
210
|
-
/* 2^11 - 2^1 */ square(t0,z2_10_0);
|
211
|
-
/* 2^12 - 2^2 */ square(t1,t0);
|
212
|
-
/* 2^20 - 2^10 */ for (i = 2;i < 10;i += 2) { square(t0,t1); square(t1,t0); }
|
213
|
-
/* 2^20 - 2^0 */ mult(z2_20_0,t1,z2_10_0);
|
214
|
-
|
215
|
-
/* 2^21 - 2^1 */ square(t0,z2_20_0);
|
216
|
-
/* 2^22 - 2^2 */ square(t1,t0);
|
217
|
-
/* 2^40 - 2^20 */ for (i = 2;i < 20;i += 2) { square(t0,t1); square(t1,t0); }
|
218
|
-
/* 2^40 - 2^0 */ mult(t0,t1,z2_20_0);
|
219
|
-
|
220
|
-
/* 2^41 - 2^1 */ square(t1,t0);
|
221
|
-
/* 2^42 - 2^2 */ square(t0,t1);
|
222
|
-
/* 2^50 - 2^10 */ for (i = 2;i < 10;i += 2) { square(t1,t0); square(t0,t1); }
|
223
|
-
/* 2^50 - 2^0 */ mult(z2_50_0,t0,z2_10_0);
|
224
|
-
|
225
|
-
/* 2^51 - 2^1 */ square(t0,z2_50_0);
|
226
|
-
/* 2^52 - 2^2 */ square(t1,t0);
|
227
|
-
/* 2^100 - 2^50 */ for (i = 2;i < 50;i += 2) { square(t0,t1); square(t1,t0); }
|
228
|
-
/* 2^100 - 2^0 */ mult(z2_100_0,t1,z2_50_0);
|
229
|
-
|
230
|
-
/* 2^101 - 2^1 */ square(t1,z2_100_0);
|
231
|
-
/* 2^102 - 2^2 */ square(t0,t1);
|
232
|
-
/* 2^200 - 2^100 */ for (i = 2;i < 100;i += 2) { square(t1,t0); square(t0,t1); }
|
233
|
-
/* 2^200 - 2^0 */ mult(t1,t0,z2_100_0);
|
234
|
-
|
235
|
-
/* 2^201 - 2^1 */ square(t0,t1);
|
236
|
-
/* 2^202 - 2^2 */ square(t1,t0);
|
237
|
-
/* 2^250 - 2^50 */ for (i = 2;i < 50;i += 2) { square(t0,t1); square(t1,t0); }
|
238
|
-
/* 2^250 - 2^0 */ mult(t0,t1,z2_50_0);
|
239
|
-
|
240
|
-
/* 2^251 - 2^1 */ square(t1,t0);
|
241
|
-
/* 2^252 - 2^2 */ square(t0,t1);
|
242
|
-
/* 2^253 - 2^3 */ square(t1,t0);
|
243
|
-
/* 2^254 - 2^4 */ square(t0,t1);
|
244
|
-
/* 2^255 - 2^5 */ square(t1,t0);
|
245
|
-
/* 2^255 - 21 */ mult(out,t1,z11);
|
246
|
-
}
|
247
|
-
|
248
|
-
int crypto_scalarmult(unsigned char *q,
|
249
|
-
const unsigned char *n,
|
250
|
-
const unsigned char *p)
|
251
|
-
{
|
252
|
-
unsigned int work[96];
|
253
|
-
unsigned char e[32];
|
254
|
-
unsigned int i;
|
255
|
-
for (i = 0;i < 32;++i) e[i] = n[i];
|
256
|
-
e[0] &= 248;
|
257
|
-
e[31] &= 127;
|
258
|
-
e[31] |= 64;
|
259
|
-
for (i = 0;i < 32;++i) work[i] = p[i];
|
260
|
-
mainloop(work,e);
|
261
|
-
recip(work + 32,work + 32);
|
262
|
-
mult(work + 64,work,work + 32);
|
263
|
-
freeze(work + 64);
|
264
|
-
for (i = 0;i < 32;++i) q[i] = work[64 + i];
|
265
|
-
return 0;
|
266
|
-
}
|
267
|
-
|
268
|
-
#endif
|