summaryrefslogtreecommitdiff
path: root/toxencryptsave/toxencryptsave.h
diff options
context:
space:
mode:
authorDubslow <bunslow@gmail.com>2015-03-31 19:30:09 -0500
committerDubslow <bunslow@gmail.com>2015-03-31 19:30:09 -0500
commit9b66c57bd0ec8d7e89b7fa751d83ffabd1ce2e75 (patch)
treef04117c0ab975665ec1dd2f67f8a8afdcc7afdb0 /toxencryptsave/toxencryptsave.h
parenta47fad15e08ab006c235d1203f731570ffea1ba0 (diff)
Fix minor code duplication
Diffstat (limited to 'toxencryptsave/toxencryptsave.h')
-rw-r--r--toxencryptsave/toxencryptsave.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxencryptsave/toxencryptsave.h b/toxencryptsave/toxencryptsave.h
index 2ee4af46..51f75c66 100644
--- a/toxencryptsave/toxencryptsave.h
+++ b/toxencryptsave/toxencryptsave.h
@@ -168,8 +168,8 @@ bool tox_pass_decrypt(const uint8_t *data, size_t length, uint8_t *passphrase, s
168 */ 168 */
169bool tox_derive_key_from_pass(uint8_t *passphrase, size_t pplength, uint8_t *out_key, TOX_ERR_KEY_DERIVATION *error); 169bool tox_derive_key_from_pass(uint8_t *passphrase, size_t pplength, uint8_t *out_key, TOX_ERR_KEY_DERIVATION *error);
170 170
171/* Same as above, except with use the given salt for deterministic key derivation. 171/* Same as above, except use the given salt for deterministic key derivation.
172 * The salt must be tox_salt_length() bytes in length. 172 * The salt must be TOX_PASS_SALT_LENGTH bytes in length.
173 */ 173 */
174bool tox_derive_key_with_salt(uint8_t *passphrase, size_t pplength, uint8_t *salt, uint8_t *out_key, 174bool tox_derive_key_with_salt(uint8_t *passphrase, size_t pplength, uint8_t *salt, uint8_t *out_key,
175 TOX_ERR_KEY_DERIVATION *error); 175 TOX_ERR_KEY_DERIVATION *error);