source: postlfs/security/cryptsetup.xml@ eed39e3

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since eed39e3 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 9.2 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 "2303d57e78d4977344188a46e125095c">
10 <!ENTITY cryptsetup-size "11 MB">
11 <!ENTITY cryptsetup-buildsize "29 MB (add 5 MB for tests)">
12 <!ENTITY cryptsetup-time "0.2 SBU (add 19 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 &lfs112_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 <para condition="html" role="usernotes">User Notes:
100 <ulink url="&blfs-wiki;/cryptsetup"/>
101 </para>
102 </sect2>
103
104 <sect2 role="kernel" id="cryptsetup-kernel">
105 <title>Kernel Configuration</title>
106
107 <para>
108 Encrypted block devices require kernel support. To use it, the
109 appropriate kernel configuration parameters need to be set:
110 </para>
111
112<screen><literal>Device Drivers ---&gt;
113 [*] Multiple devices driver support (RAID and LVM) ---&gt; [CONFIG_MD]
114 &lt;*/M&gt; Device mapper support [CONFIG_BLK_DEV_DM]
115 &lt;*/M&gt; Crypt target support [CONFIG_DM_CRYPT]
116
117Cryptographic API ---&gt;
118 &lt;*/M&gt; XTS support [CONFIG_CRYPTO_XTS]
119 &lt;*/M&gt; SHA224 and SHA256 digest algorithm [CONFIG_CRYPTO_SHA256]
120 &lt;*/M&gt; AES cipher algorithms [CONFIG_CRYPTO_AES]
121 &lt;*/M&gt; User-space interface for symmetric key cipher algorithms
122 [CONFIG_CRYPTO_USER_API_SKCIPHER]
123 For tests:
124 &lt;*/M&gt; Twofish cipher algorithm [CONFIG_CRYPTO_TWOFISH]</literal></screen>
125
126 <indexterm zone="cryptsetup cryptsetup-kernel">
127 <primary sortas="d-cryptsetup">cryptsetup</primary>
128 </indexterm>
129
130 </sect2>
131
132 <sect2 role="installation">
133 <title>Installation of cryptsetup</title>
134
135<!-- No longer needed with 2.3.2
136 <para>
137 First, apply a patch to fix a build problem caused by API changes in
138 <xref role="nodep" linkend="json-c"/>:
139 </para>
140
141<screen><userinput remap="pre">patch -Np1 -i ../cryptsetup-&cryptsetup-version;-upstream_fixes-1.patch</userinput></screen>
142-->
143
144 <para>
145 Install <application>cryptsetup</application> by running the following
146 commands:
147 </para>
148
149<screen><userinput>./configure --prefix=/usr --disable-ssh-token &amp;&amp;
150make</userinput></screen>
151
152 <para>
153 To test the result, issue as the <systemitem
154 class="username">root</systemitem> user: <command>make check</command>.
155 Some tests will fail if appropriate kernel configuration options are not
156 set. Some additional options that may be needed for tests are:
157 CONFIG_SCSI_LOWLEVEL,
158 CONFIG_SCSI_DEBUG,
159 CONFIG_BLK_DEV_DM_BUILTIN,
160 CONFIG_CRYPTO_USER,
161 CONFIG_CRYPTO_CRYPTD,
162 CONFIG_CRYPTO_LRW,
163 CONFIG_CRYPTO_XTS,
164 CONFIG_CRYPTO_ESSIV,
165 CONFIG_CRYPTO_CRCT10DIF,
166 CONFIG_CRYPTO_AES_TI,
167 CONFIG_CRYPTO_AES_NI_INTEL,
168 CONFIG_CRYPTO_BLOWFISH,
169 CONFIG_CRYPTO_CAST5,
170 CONFIG_CRYPTO_SERPENT,
171 CONFIG_CRYPTO_SERPENT_SSE2_X86_64,
172 CONFIG_CRYPTO_SERPENT_AVX_X86_64,
173 CONFIG_CRYPTO_SERPENT_AVX2_X86_64, and
174 CONFIG_CRYPTO_TWOFISH_X86_64.
175 <!--I had 1 of 21 tests fail with the above crypto options in the
176 kernel. Eight tests were not run. Version 2.4.3.
177 Failed test was tcrypt-compat-test
178 tcrypt-images/tc_1-ripemd160-cbc-aes [FAILED]
179 bdubbs -->
180 </para>
181
182 <para>
183 Now, as the <systemitem class="username">root</systemitem> user:
184 </para>
185
186<screen role="root"><userinput>make install</userinput></screen>
187
188 </sect2>
189
190 <sect2 role="commands">
191 <title>Command Explanations</title>
192 <para>
193 <option>--disable-ssh-token</option>: This option is required if
194 the optional libssh dependency is not installed.
195 </para>
196 </sect2>
197
198 <sect2 role="configuration">
199 <title>Configuring cryptsetup</title>
200
201 <para>
202 Because of the number of possible configurations, setup of encrypted
203 volumes is beyond the scope of the BLFS book. Please see the
204 configuration guide in the cryptsetup <ulink
205 url="https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions#2-setup">
206 FAQ</ulink>.
207 </para>
208
209 </sect2>
210
211 <sect2 role="content">
212 <title>Contents</title>
213
214 <segmentedlist>
215 <segtitle>Installed Programs</segtitle>
216 <segtitle>Installed Libraries</segtitle>
217 <segtitle>Installed Directories</segtitle>
218
219 <seglistitem>
220 <seg>
221 cryptsetup,
222 cryptsetup-reencrypt,
223 integritysetup, and
224 veritysetup
225 </seg>
226 <seg>
227 libcryptsetup.so
228 </seg>
229 <seg>
230 None
231 </seg>
232 </seglistitem>
233 </segmentedlist>
234
235 <variablelist>
236 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
237 <?dbfo list-presentation="list"?>
238 <?dbhtml list-presentation="table"?>
239
240 <varlistentry id="cryptsetup-prog">
241 <term><command>cryptsetup</command></term>
242 <listitem>
243 <para>
244 is used to setup dm-crypt managed device-mapper mappings
245 </para>
246 <indexterm zone="cryptsetup cryptsetup-prog">
247 <primary sortas="b-cryptsetup">cryptsetup</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="cryptsetup-reencrypt">
253 <term><command>cryptsetup-reencrypt</command></term>
254 <listitem>
255 <para>
256 is a tool for offline LUKS device re-encryption
257 </para>
258 <indexterm zone="cryptsetup cryptsetup-reencrypt">
259 <primary sortas="b-cryptsetup-reencrypt">cryptsetup-reencrypt</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="integritysetup">
265 <term><command>integritysetup</command></term>
266 <listitem>
267 <para>
268 is a tool to manage dm-integrity (block level integrity) volumes
269 </para>
270 <indexterm zone="cryptsetup integritysetup">
271 <primary sortas="b-integritysetup">integritysetup</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="veritysetup">
277 <term><command>veritysetup</command></term>
278 <listitem>
279 <para>
280 is used to configure dm-verity managed device-mapper mappings.
281 Device-mapper verity target provides read-only transparent integrity
282 checking of block devices using kernel crypto API
283 </para>
284 <indexterm zone="cryptsetup veritysetup">
285 <primary sortas="b-veritysetup">veritysetup</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 </variablelist>
291
292 </sect2>
293
294</sect1>
Note: See TracBrowser for help on using the repository browser.