summaryrefslogtreecommitdiff
path: root/toxencryptsave
diff options
context:
space:
mode:
Diffstat (limited to 'toxencryptsave')
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c2
-rw-r--r--toxencryptsave/defines.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c
index e2de3e5f..3aab156f 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c
@@ -201,7 +201,7 @@ crypto_pwhash_scryptsalsa208sha256_str_verify(const char str[crypto_pwhash_scryp
201 return -1; 201 return -1;
202 } 202 }
203 escrypt_free_local(&escrypt_local); 203 escrypt_free_local(&escrypt_local);
204 ret = crypto_memcmp(wanted, str, sizeof wanted); 204 ret = crypto_memcmp((const uint8_t *) wanted, (const uint8_t *) str, sizeof wanted);
205 crypto_memzero(wanted, sizeof wanted); 205 crypto_memzero(wanted, sizeof wanted);
206 206
207 return ret; 207 return ret;
diff --git a/toxencryptsave/defines.h b/toxencryptsave/defines.h
index 0bc1d9ed..8a490344 100644
--- a/toxencryptsave/defines.h
+++ b/toxencryptsave/defines.h
@@ -1,7 +1,7 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H 1#ifndef C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H
2#define C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H 2#define C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H
3 3
4#define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave" 4#define TOX_ENC_SAVE_MAGIC_NUMBER ((const uint8_t *)"toxEsave")
5#define TOX_ENC_SAVE_MAGIC_LENGTH 8 5#define TOX_ENC_SAVE_MAGIC_LENGTH 8
6 6
7#endif 7#endif