Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38d19268 authored by Ben Hutchings's avatar Ben Hutchings Committed by Mimi Zohar
Browse files

IMA: Correct Kconfig dependencies for hash selection



IMA uses the hash algorithm too early to be able to use a module.
Require the selected hash algorithm to be built-in.

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
parent 6f6723e2
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -96,19 +96,19 @@ choice


	config IMA_DEFAULT_HASH_SHA1
	config IMA_DEFAULT_HASH_SHA1
		bool "SHA1 (default)"
		bool "SHA1 (default)"
		depends on CRYPTO_SHA1
		depends on CRYPTO_SHA1=y


	config IMA_DEFAULT_HASH_SHA256
	config IMA_DEFAULT_HASH_SHA256
		bool "SHA256"
		bool "SHA256"
		depends on CRYPTO_SHA256 && !IMA_TEMPLATE
		depends on CRYPTO_SHA256=y && !IMA_TEMPLATE


	config IMA_DEFAULT_HASH_SHA512
	config IMA_DEFAULT_HASH_SHA512
		bool "SHA512"
		bool "SHA512"
		depends on CRYPTO_SHA512 && !IMA_TEMPLATE
		depends on CRYPTO_SHA512=y && !IMA_TEMPLATE


	config IMA_DEFAULT_HASH_WP512
	config IMA_DEFAULT_HASH_WP512
		bool "WP512"
		bool "WP512"
		depends on CRYPTO_WP512 && !IMA_TEMPLATE
		depends on CRYPTO_WP512=y && !IMA_TEMPLATE
endchoice
endchoice


config IMA_DEFAULT_HASH
config IMA_DEFAULT_HASH