diff options
Diffstat (limited to 'toxencryptsave')
-rw-r--r-- | toxencryptsave/toxencryptsave.c | 20 |
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 | ||
65 | void 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 | |||
70 | void 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 | |||
75 | void 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 | |||
80 | void 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. |