summaryrefslogtreecommitdiff
path: root/toxencryptsave/toxencryptsave.h
diff options
context:
space:
mode:
authorDubslow <bunslow@gmail.com>2014-09-11 19:29:18 -0500
committerDubslow <bunslow@gmail.com>2014-09-11 19:29:18 -0500
commit61bfa596b67225282c0496a55cf3cd831d8321ec (patch)
tree11586d07cae28bd07a0e1b1cd2edb7ce8d33a7bd /toxencryptsave/toxencryptsave.h
parent74434c7798e0a8fc581ad15984e8b3f0abf3fa9d (diff)
Add magic number, auto tests still required
Diffstat (limited to 'toxencryptsave/toxencryptsave.h')
-rw-r--r--toxencryptsave/toxencryptsave.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxencryptsave/toxencryptsave.h b/toxencryptsave/toxencryptsave.h
index c32716f8..64617b27 100644
--- a/toxencryptsave/toxencryptsave.h
+++ b/toxencryptsave/toxencryptsave.h
@@ -54,6 +54,13 @@ int tox_encrypted_save(const Tox *tox, uint8_t *data, uint8_t *passphrase, uint3
54 */ 54 */
55int tox_encrypted_load(Tox *tox, const uint8_t *data, uint32_t length, uint8_t *passphrase, uint32_t pplength); 55int tox_encrypted_load(Tox *tox, const uint8_t *data, uint32_t length, uint8_t *passphrase, uint32_t pplength);
56 56
57/* Determines whether or not the given data is encrypted (by checking the magic number)
58 *
59 * returns 1 if it is encrypted
60 * returns 0 otherwise
61 */
62int tox_is_data_encrypted(const uint8_t *data);
63
57#ifdef __cplusplus 64#ifdef __cplusplus
58} 65}
59#endif 66#endif