This commit is contained in:
Frank Denis 2017-04-28 12:19:32 +02:00
parent ea2273540a
commit f6cab99f64

View File

@ -122,9 +122,9 @@ crypto_pwhash_argon2i_memlimit_sensitive(void)
} }
int int
crypto_pwhash_argon2i(unsigned char* const out, unsigned long long outlen, crypto_pwhash_argon2i(unsigned char *const out, unsigned long long outlen,
const char* const passwd, unsigned long long passwdlen, const char *const passwd, unsigned long long passwdlen,
const unsigned char* const salt, const unsigned char *const salt,
unsigned long long opslimit, size_t memlimit, int alg) unsigned long long opslimit, size_t memlimit, int alg)
{ {
memset(out, 0, outlen); memset(out, 0, outlen);
@ -152,8 +152,8 @@ crypto_pwhash_argon2i(unsigned char* const out, unsigned long long outlen,
} }
int int
crypto_pwhash_argon2i_str(char out[crypto_pwhash_argon2i_STRBYTES], crypto_pwhash_argon2i_str(char out[crypto_pwhash_argon2i_STRBYTES],
const char* const passwd, const char *const passwd,
unsigned long long passwdlen, unsigned long long passwdlen,
unsigned long long opslimit, size_t memlimit) unsigned long long opslimit, size_t memlimit)
{ {
@ -183,7 +183,7 @@ crypto_pwhash_argon2i_str(char out[crypto_pwhash_argon2i_STRBYTES],
int int
crypto_pwhash_argon2i_str_verify(const char str[crypto_pwhash_argon2i_STRBYTES], crypto_pwhash_argon2i_str_verify(const char str[crypto_pwhash_argon2i_STRBYTES],
const char* const passwd, const char *const passwd,
unsigned long long passwdlen) unsigned long long passwdlen)
{ {
if (passwdlen > ARGON2_MAX_PWD_LENGTH) { if (passwdlen > ARGON2_MAX_PWD_LENGTH) {