From 5ec57a0b4c6249bafb46fb7041430cc9b53e2372 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Thu, 10 Mar 2022 15:27:13 +0100 Subject: sys-fs/cryptsetup: add fips useflag Closes: https://bugs.gentoo.org/834920 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Mathieu Tortuyaux Closes: https://github.com/gentoo/gentoo/pull/24479 Signed-off-by: Sam James --- sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild | 5 +++-- sys-fs/cryptsetup/metadata.xml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sys-fs/cryptsetup') diff --git a/sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild b/sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild index 8287adbcacaf..f2ac3491ef69 100644 --- a/sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild +++ b/sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild @@ -16,10 +16,10 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~ CRYPTO_BACKENDS="gcrypt kernel nettle +openssl" # we don't support nss since it doesn't allow cryptsetup to be built statically # and it's missing ripemd160 support so it can't provide full backward compatibility -IUSE="${CRYPTO_BACKENDS} +argon2 nls pwquality reencrypt ssh static static-libs test +udev urandom" +IUSE="${CRYPTO_BACKENDS} +argon2 fips nls pwquality reencrypt ssh static static-libs test +udev urandom" RESTRICT="!test? ( test )" REQUIRED_USE="^^ ( ${CRYPTO_BACKENDS//+/} ) - static? ( !gcrypt !ssh !udev )" # 496612, 832711 + static? ( !gcrypt !ssh !udev !fips )" # 496612, 832711 LIB_DEPEND=" dev-libs/json-c:=[static-libs(+)] @@ -91,6 +91,7 @@ src_configure() { $(use_enable !urandom dev-random) $(use_enable ssh ssh-token) $(usex argon2 '' '--with-luks2-pbkdf=pbkdf2') + $(use_enable fips) ) econf "${myeconfargs[@]}" } diff --git a/sys-fs/cryptsetup/metadata.xml b/sys-fs/cryptsetup/metadata.xml index 7ecc557fd2b4..5f7443faf40f 100644 --- a/sys-fs/cryptsetup/metadata.xml +++ b/sys-fs/cryptsetup/metadata.xml @@ -7,6 +7,7 @@ Enable password hashing algorithm from app-crypt/argon2 + Enable FIPS mode restrictions Use dev-libs/libgcrypt crypto backend Use kernel crypto backend (mainly for embedded systems) Use dev-libs/nettle crypto backend -- cgit v1.2.3-65-gdbad