From c5ced9b2d83c28c9c66e0e6be6a356aba0c5e0d6 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 19 Dec 2016 15:45:53 +0000 Subject: [PATCH] Remove unused get/set salt/key functions from toxencryptsave. --- toxencryptsave/toxencryptsave.c | 20 -------------------- 1 file changed, 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) free(pass_key); } -void tox_pass_key_get_salt(const Tox_Pass_Key *pass_key, uint8_t *salt) -{ - memcpy(salt, pass_key->salt, TOX_PASS_SALT_LENGTH); -} - -void tox_pass_key_set_salt(Tox_Pass_Key *pass_key, const uint8_t *salt) -{ - memcpy(pass_key->salt, salt, TOX_PASS_SALT_LENGTH); -} - -void tox_pass_key_get_key(const Tox_Pass_Key *pass_key, uint8_t *key) -{ - memcpy(key, pass_key->key, TOX_PASS_KEY_LENGTH); -} - -void tox_pass_key_set_key(Tox_Pass_Key *pass_key, const uint8_t *key) -{ - memcpy(pass_key->key, key, TOX_PASS_KEY_LENGTH); -} - /* Clients should consider alerting their users that, unlike plain data, if even one bit * becomes corrupted, the data will be entirely unrecoverable. * Ditto if they forget their password, there is no way to recover the data.