-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ZFS_PROP_PASSPHRASE_KDF (passphrasekdf) property and argon2id13
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
- Loading branch information
1 parent
b06259a
commit 8cdd4e7
Showing
12 changed files
with
260 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
dnl # | ||
dnl # Check for libcrypto. Used for userspace password derivation via PBKDF2. | ||
dnl # Check for libcrypto and libargon. Used for userspace password derivation via PBKDF2 and argon2id. | ||
dnl # | ||
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBCRYPTO], [ | ||
ZFS_AC_FIND_SYSTEM_LIBRARY(LIBCRYPTO, [libcrypto], [openssl/evp.h], [], [crypto], [PKCS5_PBKDF2_HMAC_SHA1], [], [ | ||
AC_MSG_FAILURE([ | ||
*** evp.h missing, libssl-devel package required])]) | ||
ZFS_AC_FIND_SYSTEM_LIBRARY(LIBCRYPTO_SSL, [libcrypto], [openssl/evp.h], [], [crypto], [PKCS5_PBKDF2_HMAC_SHA1], [], [ | ||
AC_MSG_FAILURE([*** evp.h missing, libssl-devel package required])]) | ||
# ARGON2 is included in openssl 3.2: once this is widely distributed, we should detect it and drop the libargon2 dep | ||
ZFS_AC_FIND_SYSTEM_LIBRARY(LIBCRYPTO_ARGON2, [libargon2], [argon2.h], [], [argon2], [argon2id_hash_raw], [], [ | ||
AC_MSG_FAILURE([*** libargon2-dev package required])]) | ||
LIBCRYPTO_CFLAGS="$LIBCRYPTO_SSL_CFLAGS $LIBCRYPTO_ARGON2_CFLAGS" | ||
LIBCRYPTO_LIBS="$LIBCRYPTO_SSL_LIBS $LIBCRYPTO_ARGON2_LIBS" | ||
AC_SUBST(LIBCRYPTO_CFLAGS, []) | ||
AC_SUBST(LIBCRYPTO_LIBS, []) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.