diff options
author | Dubslow <bunslow@gmail.com> | 2015-03-31 19:30:09 -0500 |
---|---|---|
committer | Dubslow <bunslow@gmail.com> | 2015-03-31 19:30:09 -0500 |
commit | 9b66c57bd0ec8d7e89b7fa751d83ffabd1ce2e75 (patch) | |
tree | f04117c0ab975665ec1dd2f67f8a8afdcc7afdb0 /toxencryptsave/toxencryptsave.h | |
parent | a47fad15e08ab006c235d1203f731570ffea1ba0 (diff) |
Fix minor code duplication
Diffstat (limited to 'toxencryptsave/toxencryptsave.h')
-rw-r--r-- | toxencryptsave/toxencryptsave.h | 4 |
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 | */ |
169 | bool tox_derive_key_from_pass(uint8_t *passphrase, size_t pplength, uint8_t *out_key, TOX_ERR_KEY_DERIVATION *error); | 169 | bool 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 | */ |
174 | bool tox_derive_key_with_salt(uint8_t *passphrase, size_t pplength, uint8_t *salt, uint8_t *out_key, | 174 | bool 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); |