diff options
author | dubslow <bill@mint> | 2014-09-12 21:15:05 -0500 |
---|---|---|
committer | dubslow <bill@mint> | 2014-09-12 21:15:05 -0500 |
commit | 579e7998b7c33962c645b9476949aa58c76be876 (patch) | |
tree | 92682d3c73e828b48a3b33d81c478a581053b0a8 /toxencryptsave/toxencryptsave.c | |
parent | c26c6d86aeb2a0dd672ff7611394ebbf806d70c7 (diff) |
encrypted save fully work with both libsodium and nacl
they both reliably pass "make check"
Diffstat (limited to 'toxencryptsave/toxencryptsave.c')
-rw-r--r-- | toxencryptsave/toxencryptsave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxencryptsave/toxencryptsave.c b/toxencryptsave/toxencryptsave.c index ae042199..f4fdbe61 100644 --- a/toxencryptsave/toxencryptsave.c +++ b/toxencryptsave/toxencryptsave.c | |||
@@ -63,7 +63,7 @@ int tox_encrypted_save(const Tox *tox, uint8_t *data, uint8_t *passphrase, uint3 | |||
63 | * once the pwhash competition (https://password-hashing.net/) is over */ | 63 | * once the pwhash competition (https://password-hashing.net/) is over */ |
64 | uint8_t salt[crypto_pwhash_scryptsalsa208sha256_SALTBYTES]; | 64 | uint8_t salt[crypto_pwhash_scryptsalsa208sha256_SALTBYTES]; |
65 | uint8_t key[crypto_box_KEYBYTES]; | 65 | uint8_t key[crypto_box_KEYBYTES]; |
66 | randombytes_buf(salt, sizeof salt); | 66 | randombytes(salt, sizeof salt); |
67 | 67 | ||
68 | if (crypto_pwhash_scryptsalsa208sha256( | 68 | if (crypto_pwhash_scryptsalsa208sha256( |
69 | key, sizeof(key), passphrase, pplength, salt, | 69 | key, sizeof(key), passphrase, pplength, salt, |