summaryrefslogtreecommitdiffstats
path: root/rules/cryptsetup.in
blob: 1a4f8f814c947f0418994b79de7a3bacf4403b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## SECTION=disk_and_file

menuconfig CRYPTSETUP
	select JSON_C
	select LVM2
	select LIBUUID
	select LIBPOPT
	select LIBBLKID
	select LIBGCRYPT	if CRYPTSETUP_CRYPT_BACKEND_GCRYPT
	select OPENSSL		if CRYPTSETUP_CRYPT_BACKEND_OPENSSL
	select NETTLE		if CRYPTSETUP_CRYPT_BACKEND_NETTLE
	tristate
	prompt "cryptsetup                    "
	help
	  Cryptsetup is a utility used to conveniently setup disk encryption
	  based on the dm-crypt kernel module.
	  It also includes veritysetup, used to setup dm-verity block integrity
	  checking of read-only targets, as well as integritysetup to setup
	  dm-integrity block integrity checking of read-write targets.

if CRYPTSETUP

choice
	prompt "Crypto backend"

	config CRYPTSETUP_CRYPT_BACKEND_KERNEL
	bool "kernel"

	config CRYPTSETUP_CRYPT_BACKEND_GCRYPT
	bool "gcrypt"

	config CRYPTSETUP_CRYPT_BACKEND_OPENSSL
	bool "openssl"

	config CRYPTSETUP_CRYPT_BACKEND_NETTLE
	bool "nettle"
endchoice

config CRYPTSETUP_CRYPT_BACKEND
	string
	default "kernel"	if CRYPTSETUP_CRYPT_BACKEND_KERNEL
	default "gcrypt"	if CRYPTSETUP_CRYPT_BACKEND_GCRYPT
	default "openssl"	if CRYPTSETUP_CRYPT_BACKEND_OPENSSL
	default "nettle"	if CRYPTSETUP_CRYPT_BACKEND_NETTLE

config CRYPTSETUP_CRYPTSETUP
	bool
	prompt "install cryptsetup"

config CRYPTSETUP_INTEGRITYSETUP
	bool
	prompt "install integritysetup"

config CRYPTSETUP_VERITYSETUP
	bool
	prompt "install veritysetup"

endif