mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-04-20 13:59:11 +00:00
autodetect argon2id13 support and autoenable passphrase-based generation
This commit is contained in:
parent
565c2a968f
commit
541b043a25
1 changed files with 15 additions and 0 deletions
15
configure.ac
15
configure.ac
|
@ -121,6 +121,8 @@ then
|
|||
CFLAGS="$CFLAGS -msse2"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
AC_ARG_ENABLE([intfilter],
|
||||
[AS_HELP_STRING([--enable-intfilter@<:@=(32|64|128|native)@:>@],
|
||||
[use integers of specific size @<:@default=64@:>@ for filtering. faster but limits filter length to: 6 for 32-bit, 12 for 64-bit, 24 for 128-bit @<:@default=no@:>@])],
|
||||
|
@ -310,6 +312,19 @@ yes|pcre2)
|
|||
;;
|
||||
esac
|
||||
|
||||
|
||||
AC_MSG_CHECKING([whether ARGON2ID13 is supported by libsodium])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <sodium/crypto_pwhash.h>]],
|
||||
[[int alg = crypto_pwhash_ALG_ARGON2ID13;(void) alg;]]
|
||||
)],
|
||||
[AC_MSG_RESULT([yes])]
|
||||
[MYDEFS="$MYDEFS -DPASSPHRASE"],
|
||||
[AC_MSG_RESULT([no])]
|
||||
)
|
||||
|
||||
|
||||
# recreate dir tree, because otherwise gcc will fuck up
|
||||
(cd "$srcdir" && find ed25519 -type d) | xargs mkdir -p
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue