summaryrefslogtreecommitdiff
path: root/toxencryptsave
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-12-19 15:45:53 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-12-19 15:48:24 +0000
commitc5ced9b2d83c28c9c66e0e6be6a356aba0c5e0d6 (patch)
treeda4da9e438078cf49aa8b21f80958f942e71516e /toxencryptsave
parent4733f849faa1c982cf15f8893e2371794efbc90f (diff)
Remove unused get/set salt/key functions from toxencryptsave.
Diffstat (limited to 'toxencryptsave')
-rw-r--r--toxencryptsave/toxencryptsave.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/toxencryptsave/toxencryptsave.c b/toxencryptsave/toxencryptsave.c
index 19aa2a14..8d4cf6fa 100644
--- a/toxencryptsave/toxencryptsave.c
+++ b/toxencryptsave/toxencryptsave.c
@@ -62,26 +62,6 @@ void tox_pass_key_free(Tox_Pass_Key *pass_key)
62 free(pass_key); 62 free(pass_key);
63} 63}
64 64
65void tox_pass_key_get_salt(const Tox_Pass_Key *pass_key, uint8_t *salt)
66{
67 memcpy(salt, pass_key->salt, TOX_PASS_SALT_LENGTH);
68}
69
70void tox_pass_key_set_salt(Tox_Pass_Key *pass_key, const uint8_t *salt)
71{
72 memcpy(pass_key->salt, salt, TOX_PASS_SALT_LENGTH);
73}
74
75void tox_pass_key_get_key(const Tox_Pass_Key *pass_key, uint8_t *key)
76{
77 memcpy(key, pass_key->key, TOX_PASS_KEY_LENGTH);
78}
79
80void tox_pass_key_set_key(Tox_Pass_Key *pass_key, const uint8_t *key)
81{
82 memcpy(pass_key->key, key, TOX_PASS_KEY_LENGTH);
83}
84
85/* Clients should consider alerting their users that, unlike plain data, if even one bit 65/* Clients should consider alerting their users that, unlike plain data, if even one bit
86 * becomes corrupted, the data will be entirely unrecoverable. 66 * becomes corrupted, the data will be entirely unrecoverable.
87 * Ditto if they forget their password, there is no way to recover the data. 67 * Ditto if they forget their password, there is no way to recover the data.