Use const to communicate intent.

pull/2/head
Christopher Wellons 2017-03-05 19:18:47 -05:00
parent d2de5a30f6
commit b1856fb9eb
1 changed files with 4 additions and 1 deletions

View File

@ -326,7 +326,10 @@ secure_creat(const char *file)
* Optionally provide an 8-byte salt.
*/
static void
key_derive(char *passphrase, u8 *buf, unsigned long iterations, u8 *salt)
key_derive(const char *passphrase,
u8 *buf,
unsigned long iterations,
const u8 *salt)
{
size_t len = strlen(passphrase);
unsigned long i;