rbnacl-libsodium 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/lib/rbnacl/libsodium.rb +5 -5
- data/lib/rbnacl/libsodium/version.rb +1 -1
- data/rbnacl-libsodium.gemspec +5 -4
- data/vendor/libsodium/ChangeLog +4 -0
- data/vendor/libsodium/appveyor.yml +1 -1
- data/vendor/libsodium/autom4te.cache/output.1 +38 -10
- data/vendor/libsodium/autom4te.cache/output.6 +38 -10
- data/vendor/libsodium/autom4te.cache/requests +1035 -1035
- data/vendor/libsodium/autom4te.cache/traces.1 +212 -208
- data/vendor/libsodium/autom4te.cache/traces.6 +101 -100
- data/vendor/libsodium/builds/msvc/version.h +1 -1
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +0 -22
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +0 -66
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +0 -22
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +0 -66
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +0 -22
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +0 -66
- data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +0 -22
- data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +0 -66
- data/vendor/libsodium/configure +38 -10
- data/vendor/libsodium/configure.ac +12 -2
- data/vendor/libsodium/dist-build/emscripten.sh +1 -1
- data/vendor/libsodium/msvc-scripts/process.bat +1 -1
- data/vendor/libsodium/src/libsodium/Makefile.am +4 -4
- data/vendor/libsodium/src/libsodium/Makefile.in +53 -49
- data/vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_core/salsa20/ref/core_salsa20.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_core/salsa2012/ref/core_salsa2012.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_core/salsa208/ref/core_salsa208.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ref.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +3 -1
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna32.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/blake2b-long.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +1 -1
- data/vendor/libsodium/src/libsodium/{sodium → include/sodium/private}/common.h +0 -0
- data/vendor/libsodium/src/libsodium/{crypto_core/curve25519/ref10 → include/sodium/private}/curve25519_ref10.h +0 -0
- data/vendor/libsodium/test/default/aead_aes256gcm.c +1 -1
- data/vendor/libsodium/test/default/aead_chacha20poly1305.c +7 -5
- metadata +8 -12
@@ -6,7 +6,7 @@
|
|
6
6
|
#include "crypto_scalarmult_curve25519.h"
|
7
7
|
#include "randombytes.h"
|
8
8
|
#include "utils.h"
|
9
|
-
#include "
|
9
|
+
#include "private/curve25519_ref10.h"
|
10
10
|
|
11
11
|
int crypto_sign_ed25519_seed_keypair(unsigned char *pk, unsigned char *sk,
|
12
12
|
const unsigned char *seed)
|
@@ -8,7 +8,7 @@
|
|
8
8
|
#include "crypto_verify_32.h"
|
9
9
|
#include "randombytes.h"
|
10
10
|
#include "utils.h"
|
11
|
-
#include "
|
11
|
+
#include "private/curve25519_ref10.h"
|
12
12
|
|
13
13
|
int crypto_sign_edwards25519sha512batch_keypair(unsigned char *pk,
|
14
14
|
unsigned char *sk)
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#include "crypto_hash_sha512.h"
|
5
5
|
#include "crypto_sign_ed25519.h"
|
6
6
|
#include "utils.h"
|
7
|
-
#include "
|
7
|
+
#include "private/curve25519_ref10.h"
|
8
8
|
|
9
9
|
int
|
10
10
|
crypto_sign_ed25519_detached(unsigned char *sig, unsigned long long *siglen_p,
|
File without changes
|
File without changes
|
@@ -3179,7 +3179,7 @@ tv(void)
|
|
3179
3179
|
printf("Message length should have been set to zero after a failure\n");
|
3180
3180
|
}
|
3181
3181
|
if (crypto_aead_aes256gcm_decrypt(decrypted, &found_message_len,
|
3182
|
-
NULL,
|
3182
|
+
NULL, NULL,
|
3183
3183
|
randombytes_uniform(crypto_aead_aes256gcm_ABYTES),
|
3184
3184
|
ad, ad_len, nonce, key) != -1) {
|
3185
3185
|
printf("Verification of test vector #%u with a truncated tag failed\n",
|
@@ -111,8 +111,9 @@ tv(void)
|
|
111
111
|
}
|
112
112
|
m2len = 1;
|
113
113
|
if (crypto_aead_chacha20poly1305_decrypt(
|
114
|
-
m2, &m2len, NULL,
|
115
|
-
|
114
|
+
m2, &m2len, NULL, NULL,
|
115
|
+
randombytes_uniform(crypto_aead_chacha20poly1305_ABYTES),
|
116
|
+
NULL, 0U, nonce, firstkey) != -1) {
|
116
117
|
printf("crypto_aead_chacha20poly1305_decrypt() worked with a short "
|
117
118
|
"ciphertext\n");
|
118
119
|
}
|
@@ -281,8 +282,9 @@ tv_ietf(void)
|
|
281
282
|
}
|
282
283
|
m2len = 1;
|
283
284
|
if (crypto_aead_chacha20poly1305_ietf_decrypt(
|
284
|
-
m2, &m2len, NULL,
|
285
|
-
|
285
|
+
m2, &m2len, NULL, NULL,
|
286
|
+
randombytes_uniform(crypto_aead_chacha20poly1305_ietf_ABYTES),
|
287
|
+
NULL, 0U, nonce, firstkey) != -1) {
|
286
288
|
printf("crypto_aead_chacha20poly1305_ietf_decrypt() worked with a short "
|
287
289
|
"ciphertext\n");
|
288
290
|
}
|
@@ -314,7 +316,7 @@ tv_ietf(void)
|
|
314
316
|
printf("\n");
|
315
317
|
|
316
318
|
if (crypto_aead_chacha20poly1305_ietf_decrypt(c, &m2len, NULL, c, CLEN,
|
317
|
-
|
319
|
+
NULL, 0U, nonce, firstkey) != 0) {
|
318
320
|
printf("crypto_aead_chacha20poly1305_ietf_decrypt() failed (adlen=0)\n");
|
319
321
|
}
|
320
322
|
if (m2len != MLEN) {
|
metadata
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbnacl-libsodium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artiom Di
|
8
|
+
- Tony Arcieri
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
12
|
+
date: 2016-04-16 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rbnacl
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.0'
|
20
18
|
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: 3.0.1
|
@@ -24,9 +22,6 @@ dependencies:
|
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
24
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.0'
|
30
25
|
- - ">="
|
31
26
|
- !ruby/object:Gem::Version
|
32
27
|
version: 3.0.1
|
@@ -50,17 +45,18 @@ dependencies:
|
|
50
45
|
requirements:
|
51
46
|
- - ">="
|
52
47
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
48
|
+
version: '10'
|
54
49
|
type: :development
|
55
50
|
prerelease: false
|
56
51
|
version_requirements: !ruby/object:Gem::Requirement
|
57
52
|
requirements:
|
58
53
|
- - ">="
|
59
54
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
55
|
+
version: '10'
|
61
56
|
description:
|
62
57
|
email:
|
63
58
|
- kron82@gmail.com
|
59
|
+
- bascule@gmail.com
|
64
60
|
executables: []
|
65
61
|
extensions:
|
66
62
|
- ext/rbnacl/extconf.rb
|
@@ -257,7 +253,6 @@ files:
|
|
257
253
|
- vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/base.h
|
258
254
|
- vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/base2.h
|
259
255
|
- vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c
|
260
|
-
- vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.h
|
261
256
|
- vendor/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.c
|
262
257
|
- vendor/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.h
|
263
258
|
- vendor/libsodium/src/libsodium/crypto_core/hsalsa20/core_hsalsa20_api.c
|
@@ -451,6 +446,8 @@ files:
|
|
451
446
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_verify_32.h
|
452
447
|
- vendor/libsodium/src/libsodium/include/sodium/crypto_verify_64.h
|
453
448
|
- vendor/libsodium/src/libsodium/include/sodium/export.h
|
449
|
+
- vendor/libsodium/src/libsodium/include/sodium/private/common.h
|
450
|
+
- vendor/libsodium/src/libsodium/include/sodium/private/curve25519_ref10.h
|
454
451
|
- vendor/libsodium/src/libsodium/include/sodium/randombytes.h
|
455
452
|
- vendor/libsodium/src/libsodium/include/sodium/randombytes_nativeclient.h
|
456
453
|
- vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
|
@@ -462,7 +459,6 @@ files:
|
|
462
459
|
- vendor/libsodium/src/libsodium/randombytes/randombytes.c
|
463
460
|
- vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c
|
464
461
|
- vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c
|
465
|
-
- vendor/libsodium/src/libsodium/sodium/common.h
|
466
462
|
- vendor/libsodium/src/libsodium/sodium/core.c
|
467
463
|
- vendor/libsodium/src/libsodium/sodium/runtime.c
|
468
464
|
- vendor/libsodium/src/libsodium/sodium/utils.c
|