diff options
author | irungentoo <irungentoo@gmail.com> | 2015-01-15 21:00:45 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-01-15 21:00:45 -0500 |
commit | 553a8dd7bdab4bfed36352bb3fdf2ce2f514d0fb (patch) | |
tree | 5a2c93234cb67ccd7d2dc6a42b8e36f4bca17279 /toxencryptsave | |
parent | f07c588ef54fc3b980380366486ef070e24c5bbb (diff) |
Fixed warning.
Diffstat (limited to 'toxencryptsave')
-rw-r--r-- | toxencryptsave/toxencryptsave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxencryptsave/toxencryptsave.c b/toxencryptsave/toxencryptsave.c index b6453a89..9172f512 100644 --- a/toxencryptsave/toxencryptsave.c +++ b/toxencryptsave/toxencryptsave.c | |||
@@ -121,7 +121,7 @@ int tox_derive_key_with_salt(uint8_t *passphrase, uint32_t pplength, uint8_t *sa | |||
121 | /* note that, according to the documentation, a generic pwhash interface will be created | 121 | /* note that, according to the documentation, a generic pwhash interface will be created |
122 | * once the pwhash competition (https://password-hashing.net/) is over */ | 122 | * once the pwhash competition (https://password-hashing.net/) is over */ |
123 | if (crypto_pwhash_scryptsalsa208sha256( | 123 | if (crypto_pwhash_scryptsalsa208sha256( |
124 | key, sizeof(key), passkey, sizeof(passkey), salt, | 124 | key, sizeof(key), (char *)passkey, sizeof(passkey), salt, |
125 | crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE * 2, /* slightly stronger */ | 125 | crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE * 2, /* slightly stronger */ |
126 | crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE) != 0) { | 126 | crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE) != 0) { |
127 | /* out of memory most likely */ | 127 | /* out of memory most likely */ |
@@ -280,7 +280,7 @@ int tox_pass_decrypt(const uint8_t *data, uint32_t length, uint8_t *passphrase, | |||
280 | 280 | ||
281 | if (crypto_pwhash_scryptsalsa208sha256( | 281 | if (crypto_pwhash_scryptsalsa208sha256( |
282 | key + crypto_pwhash_scryptsalsa208sha256_SALTBYTES, | 282 | key + crypto_pwhash_scryptsalsa208sha256_SALTBYTES, |
283 | crypto_box_KEYBYTES, passkey, sizeof(passkey), salt, | 283 | crypto_box_KEYBYTES, (char *)passkey, sizeof(passkey), salt, |
284 | crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE * 2, /* slightly stronger */ | 284 | crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE * 2, /* slightly stronger */ |
285 | crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE) != 0) { | 285 | crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE) != 0) { |
286 | /* out of memory most likely */ | 286 | /* out of memory most likely */ |