source: postlfs/security/cryptsetup.xml@ e38d70a

12.1 12.2 gimp3 ken/TL2024 lazarus plabs/newcss python3.11 rahul/power-profiles-daemon trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since e38d70a was 30940d7, checked in by Bruce Dubbs <bdubbs@…>, 9 months ago

Update to cryptsetup-2.6.1.

  • Property mode set to 100644
File size: 8.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY cryptsetup-download-http "&kernel-dl;/linux/utils/cryptsetup/v&cryptsetup-minor;/cryptsetup-&cryptsetup-version;.tar.xz">
8 <!ENTITY cryptsetup-download-ftp " ">
9 <!ENTITY cryptsetup-md5sum "f9451ea928dc600eb34dd9f4d9ca34e5">
10 <!ENTITY cryptsetup-size "11 MB">
11 <!ENTITY cryptsetup-buildsize "32 MB (add 5 MB for tests)">
12 <!ENTITY cryptsetup-time "0.2 SBU (add 7.6 SBU for tests)">
13]>
14
15<sect1 id="cryptsetup" xreflabel="cryptsetup-&cryptsetup-version;">
16 <?dbhtml filename="cryptsetup.html"?>
17
18
19 <title>cryptsetup-&cryptsetup-version;</title>
20
21 <indexterm zone="cryptsetup">
22 <primary sortas="a-cryptsetup">cryptsetup</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to cryptsetup</title>
27
28 <para>
29 cryptsetup is used to set up transparent encryption of block devices
30 using the kernel crypto API.
31 </para>
32
33 &lfs120_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&cryptsetup-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&cryptsetup-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &cryptsetup-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &cryptsetup-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &cryptsetup-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &cryptsetup-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69<!-- No longer needed with 2.3.2.
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing="compact">
72 <listitem>
73 <para>
74 Required patch:
75 <ulink url="&patch-root;/cryptsetup-&cryptsetup-version;-upstream_fixes-1.patch"/>
76 </para>
77 </listitem>
78 </itemizedlist>
79-->
80
81 <bridgehead renderas="sect3">cryptsetup Dependencies</bridgehead>
82
83 <bridgehead renderas="sect4">Required</bridgehead>
84 <para role="required">
85 <xref linkend="json-c"/>,
86 <xref linkend="lvm2"/>, and
87 <xref linkend="popt"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="libpwquality"/>,
93 <ulink url="https://github.com/P-H-C/phc-winner-argon2">argon2</ulink>,
94 <ulink url="https://www.libssh.org/">libssh</ulink>, and
95 <ulink url="https://www.openwall.com/passwdqc/">passwdqc</ulink>
96 </para>
97
98
99 </sect2>
100
101 <sect2 role="kernel" id="cryptsetup-kernel">
102 <title>Kernel Configuration</title>
103
104 <para>
105 Encrypted block devices require kernel support. To use it, the
106 appropriate kernel configuration parameters need to be set:
107 </para>
108
109 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
110 href="cryptsetup-kernel.xml"/>
111
112 <indexterm zone="cryptsetup cryptsetup-kernel">
113 <primary sortas="d-cryptsetup">cryptsetup</primary>
114 </indexterm>
115
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of cryptsetup</title>
120
121 <para>
122 Install <application>cryptsetup</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>
127./configure --prefix=/usr \
128 --disable-ssh-token \
129 --disable-asciidoc &amp;&amp;
130make</userinput></screen>
131
132 <para>
133 To test the result, issue as the <systemitem
134 class="username">root</systemitem> user: <command>make check</command>.
135 Some tests will fail if appropriate kernel configuration options are not
136 set. Some additional options that may be needed for tests are:
137<screen><literal>CONFIG_SCSI_LOWLEVEL,
138CONFIG_SCSI_DEBUG,
139CONFIG_BLK_DEV_DM_BUILTIN,
140CONFIG_CRYPTO_USER,
141CONFIG_CRYPTO_CRYPTD,
142CONFIG_CRYPTO_LRW,
143CONFIG_CRYPTO_XTS,
144CONFIG_CRYPTO_ESSIV,
145CONFIG_CRYPTO_CRCT10DIF,
146CONFIG_CRYPTO_AES_TI,
147CONFIG_CRYPTO_AES_NI_INTEL,
148CONFIG_CRYPTO_BLOWFISH,
149CONFIG_CRYPTO_CAST5,
150CONFIG_CRYPTO_SERPENT,
151CONFIG_CRYPTO_SERPENT_SSE2_X86_64,
152CONFIG_CRYPTO_SERPENT_AVX_X86_64,
153CONFIG_CRYPTO_SERPENT_AVX2_X86_64, and
154CONFIG_CRYPTO_TWOFISH_X86_64</literal></screen>
155 <!--I had 1 of 21 tests fail with the above crypto options in the
156 kernel. Eight tests were not run. Version 2.4.3.
157 Failed test was tcrypt-compat-test
158 tcrypt-images/tc_1-ripemd160-cbc-aes [FAILED]
159 bdubbs
160
161 Version 2.6.1 12/03/2023 -bdubbs
162 2 of 26 tests failed (6 tests were not run)
163 FAIL: keyring-compat-test
164 FAIL: tcrypt-compat-test
165 -->
166 </para>
167
168 <para>
169 Now, as the <systemitem class="username">root</systemitem> user:
170 </para>
171
172<screen role="root"><userinput>make install</userinput></screen>
173
174 </sect2>
175
176 <sect2 role="commands">
177 <title>Command Explanations</title>
178
179 <para>
180 <option>--disable-ssh-token</option>: This option is required if
181 the optional libssh dependency is not installed.
182 </para>
183
184 <para>
185 <option>--disable-asciidoc</option>: This option disables
186 regeneration of the man pages.
187 </para>
188 </sect2>
189
190 <sect2 role="configuration">
191 <title>Configuring cryptsetup</title>
192
193 <para>
194 Because of the number of possible configurations, setup of encrypted
195 volumes is beyond the scope of the BLFS book. Please see the
196 configuration guide in the cryptsetup <ulink
197 url="https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions#2-setup">
198 FAQ</ulink>.
199 </para>
200
201 </sect2>
202
203 <sect2 role="content">
204 <title>Contents</title>
205
206 <segmentedlist>
207 <segtitle>Installed Programs</segtitle>
208 <segtitle>Installed Libraries</segtitle>
209 <segtitle>Installed Directories</segtitle>
210
211 <seglistitem>
212 <seg>
213 cryptsetup,
214 cryptsetup-reencrypt,
215 integritysetup, and
216 veritysetup
217 </seg>
218 <seg>
219 libcryptsetup.so
220 </seg>
221 <seg>
222 None
223 </seg>
224 </seglistitem>
225 </segmentedlist>
226
227 <variablelist>
228 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
229 <?dbfo list-presentation="list"?>
230 <?dbhtml list-presentation="table"?>
231
232 <varlistentry id="cryptsetup-prog">
233 <term><command>cryptsetup</command></term>
234 <listitem>
235 <para>
236 is used to setup dm-crypt managed device-mapper mappings
237 </para>
238 <indexterm zone="cryptsetup cryptsetup-prog">
239 <primary sortas="b-cryptsetup">cryptsetup</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="cryptsetup-reencrypt">
245 <term><command>cryptsetup-reencrypt</command></term>
246 <listitem>
247 <para>
248 is a tool for offline LUKS device re-encryption
249 </para>
250 <indexterm zone="cryptsetup cryptsetup-reencrypt">
251 <primary sortas="b-cryptsetup-reencrypt">cryptsetup-reencrypt</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="integritysetup">
257 <term><command>integritysetup</command></term>
258 <listitem>
259 <para>
260 is a tool to manage dm-integrity (block level integrity) volumes
261 </para>
262 <indexterm zone="cryptsetup integritysetup">
263 <primary sortas="b-integritysetup">integritysetup</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="veritysetup">
269 <term><command>veritysetup</command></term>
270 <listitem>
271 <para>
272 is used to configure dm-verity managed device-mapper mappings.
273 Device-mapper verity target provides read-only transparent integrity
274 checking of block devices using kernel crypto API
275 </para>
276 <indexterm zone="cryptsetup veritysetup">
277 <primary sortas="b-veritysetup">veritysetup</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 </variablelist>
283
284 </sect2>
285
286</sect1>
Note: See TracBrowser for help on using the repository browser.