Enable to use system libargon2.

Rename --disable-argon2 to --disable-internal-argon2 option
and add --enable-libargon2 flag to allow system libarhgon2.
This commit is contained in:
Milan Broz
2017-10-04 12:07:55 +02:00
parent 7e53c87f5c
commit 8dc35a7906
10 changed files with 30 additions and 20 deletions

View File

@@ -81,13 +81,11 @@ int pkcs5_pbkdf2(const char *hash,
unsigned int hash_block_size);
#endif
#if USE_INTERNAL_ARGON2
/* internal Argon2 implementation */
/* Argon2 implementation wrapper */
int argon2(const char *type, const char *password, size_t password_length,
const char *salt, size_t salt_length,
char *key, size_t key_length,
uint32_t iterations, uint32_t memory, uint32_t parallel);
#endif
/* CRC32 */
uint32_t crypt_crc32(uint32_t seed, const unsigned char *buf, size_t len);