Add support for Argon2 from libgcrypt.

Argon2 is available since version 1.10, but we need version
that allows empty passwords (1.11).
This commit is contained in:
Milan Broz
2022-08-12 22:21:42 +02:00
parent bc426bba67
commit 34953cb10f
6 changed files with 207 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
subdir('argon2')
if use_internal_argon2
subdir('argon2')
endif
libcrypto_backend_dependencies = [
crypto_backend_library,
@@ -25,7 +27,7 @@ if use_internal_pbkdf2
libcrypto_backend_sources += files('pbkdf2_generic.c')
endif
if get_option('argon-implementation') == 'internal'
if use_internal_argon2 and get_option('argon-implementation') == 'internal'
libcrypto_backend_link_with += libargon2
elif get_option('argon-implementation') == 'libargon2'
libcrypto_backend_dependencies += libargon2_external