Use the dedicated type for the argon2 type id

This commit is contained in:
Frank Denis 2017-09-07 13:53:21 +02:00
parent 378304f818
commit e06c70afe8

View File

@ -218,7 +218,7 @@ crypto_pwhash_argon2i_str_verify(const char str[crypto_pwhash_argon2i_STRBYTES],
static int static int
_needs_rehash(const char *str, unsigned long long opslimit, size_t memlimit, _needs_rehash(const char *str, unsigned long long opslimit, size_t memlimit,
int type) argon2_type type)
{ {
unsigned char *fodder; unsigned char *fodder;
argon2_context ctx; argon2_context ctx;