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 "6c0ce8be21a7687b89354c77757d0c5b">
|
---|
10 | <!ENTITY cryptsetup-size "11 MB">
|
---|
11 | <!ENTITY cryptsetup-buildsize "34 MB (add 130 MB for tests)">
|
---|
12 | <!ENTITY cryptsetup-time "0.2 SBU (add 9.6 SBU for tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="cryptsetup" xreflabel="cryptsetup-&cryptsetup-version;">
|
---|
16 | <?dbhtml filename="cryptsetup.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>cryptsetup-&cryptsetup-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="cryptsetup">
|
---|
26 | <primary sortas="a-cryptsetup">cryptsetup</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to cryptsetup</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | cryptsetup is used to set up transparent encryption of block devices
|
---|
34 | using the kernel crypto API.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs10_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&cryptsetup-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&cryptsetup-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &cryptsetup-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &cryptsetup-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &cryptsetup-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &cryptsetup-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <!-- No longer needed with 2.3.2.
|
---|
74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
75 | <itemizedlist spacing="compact">
|
---|
76 | <listitem>
|
---|
77 | <para>
|
---|
78 | Required patch:
|
---|
79 | <ulink url="&patch-root;/cryptsetup-&cryptsetup-version;-upstream_fixes-1.patch"/>
|
---|
80 | </para>
|
---|
81 | </listitem>
|
---|
82 | </itemizedlist>
|
---|
83 | -->
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect3">cryptsetup Dependencies</bridgehead>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
88 | <para role="required">
|
---|
89 | <xref linkend="json-c"/>,
|
---|
90 | <xref linkend="lvm2"/>, and
|
---|
91 | <xref linkend="popt"/>
|
---|
92 | </para>
|
---|
93 |
|
---|
94 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
95 | <para role="optional">
|
---|
96 | <xref linkend="libpwquality"/>,
|
---|
97 | <xref linkend="python2"/>,
|
---|
98 | <ulink url="https://github.com/P-H-C/phc-winner-argon2">argon2</ulink>, and
|
---|
99 | <ulink url="http://www.openwall.com/passwdqc/">passwdqc</ulink>
|
---|
100 | </para>
|
---|
101 |
|
---|
102 |
|
---|
103 | <para condition="html" role="usernotes">User Notes:
|
---|
104 | <ulink url="&blfs-wiki;/cryptsetup"/>
|
---|
105 | </para>
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | <sect2 role="kernel" id="cryptsetup-kernel">
|
---|
109 | <title>Kernel Configuration</title>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | Encrypted block devices require kernel support. To use it, the
|
---|
113 | appropriate kernel configuration parameters need to be set:
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <screen><literal>Device Drivers --->
|
---|
117 | [*] Multiple devices driver support (RAID and LVM) ---> [CONFIG_MD]
|
---|
118 | <*/M> Device mapper support [CONFIG_BLK_DEV_DM]
|
---|
119 | <*/M> Crypt target support [CONFIG_DM_CRYPT]
|
---|
120 |
|
---|
121 | Cryptographic API --->
|
---|
122 | <*/M> XTS support [CONFIG_CRYPTO_XTS]
|
---|
123 | <*/M> SHA224 and SHA256 digest algorithm [CONFIG_CRYPTO_SHA256]
|
---|
124 | <*/M> AES cipher algorithms [CONFIG_CRYPTO_AES]
|
---|
125 | <*/M> User-space interface for symmetric key cipher algorithms
|
---|
126 | [CONFIG_CRYPTO_USER_API_SKCIPHER]
|
---|
127 | For tests:
|
---|
128 | <*/M> Twofish cipher algorithm [CONFIG_CRYPTO_TWOFISH]</literal></screen>
|
---|
129 |
|
---|
130 | <indexterm zone="cryptsetup cryptsetup-kernel">
|
---|
131 | <primary sortas="d-cryptsetup">cryptsetup</primary>
|
---|
132 | </indexterm>
|
---|
133 |
|
---|
134 | </sect2>
|
---|
135 |
|
---|
136 | <sect2 role="installation">
|
---|
137 | <title>Installation of cryptsetup</title>
|
---|
138 |
|
---|
139 | <!-- No longer needed with 2.3.2
|
---|
140 | <para>
|
---|
141 | First, apply a patch to fix a build problem caused by API changes in
|
---|
142 | <xref role="nodep" linkend="json-c"/>:
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <screen><userinput remap="pre">patch -Np1 -i ../cryptsetup-&cryptsetup-version;-upstream_fixes-1.patch</userinput></screen>
|
---|
146 | -->
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | Install <application>cryptsetup</application> by running the following
|
---|
150 | commands:
|
---|
151 | </para>
|
---|
152 |
|
---|
153 | <screen><userinput>./configure --prefix=/usr &&
|
---|
154 | make</userinput></screen>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | To test the result, issue as the <systemitem
|
---|
158 | class="username">root</systemitem> user: <command>make check</command>.
|
---|
159 | Some tests may fail if the kernel configuration parameters above are not
|
---|
160 | set. <!--Three (of 21) tests are known to fail.-->
|
---|
161 | </para>
|
---|
162 |
|
---|
163 | <para>
|
---|
164 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
165 | </para>
|
---|
166 |
|
---|
167 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
168 |
|
---|
169 | </sect2>
|
---|
170 |
|
---|
171 | <!--sect2 role="commands">
|
---|
172 | <title>Command Explanations</title>
|
---|
173 |
|
---|
174 | </sect2-->
|
---|
175 |
|
---|
176 | <sect2 role="configuration">
|
---|
177 | <title>Configuring cryptsetup</title>
|
---|
178 |
|
---|
179 | <para>
|
---|
180 | Because of the number of possible configurations, setup of encrypted
|
---|
181 | volumes is beyond the scope of the BLFS book. Please see the
|
---|
182 | configuration guide in the cryptsetup <ulink
|
---|
183 | url="https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions#2-setup">
|
---|
184 | FAQ</ulink>.
|
---|
185 | </para>
|
---|
186 |
|
---|
187 | </sect2>
|
---|
188 |
|
---|
189 | <sect2 role="content">
|
---|
190 | <title>Contents</title>
|
---|
191 |
|
---|
192 | <segmentedlist>
|
---|
193 | <segtitle>Installed Programs</segtitle>
|
---|
194 | <segtitle>Installed Libraries</segtitle>
|
---|
195 | <segtitle>Installed Directories</segtitle>
|
---|
196 |
|
---|
197 | <seglistitem>
|
---|
198 | <seg>
|
---|
199 | cryptsetup,
|
---|
200 | cryptsetup-reencrypt,
|
---|
201 | integritysetup, and
|
---|
202 | veritysetup
|
---|
203 | </seg>
|
---|
204 | <seg>
|
---|
205 | libcryptsetup.so
|
---|
206 | </seg>
|
---|
207 | <seg>
|
---|
208 | None
|
---|
209 | </seg>
|
---|
210 | </seglistitem>
|
---|
211 | </segmentedlist>
|
---|
212 |
|
---|
213 | <variablelist>
|
---|
214 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
215 | <?dbfo list-presentation="list"?>
|
---|
216 | <?dbhtml list-presentation="table"?>
|
---|
217 |
|
---|
218 | <varlistentry id="cryptsetup-prog">
|
---|
219 | <term><command>cryptsetup</command></term>
|
---|
220 | <listitem>
|
---|
221 | <para>
|
---|
222 | is used to setup dm-crypt managed device-mapper mappings.
|
---|
223 | </para>
|
---|
224 | <indexterm zone="cryptsetup cryptsetup-prog">
|
---|
225 | <primary sortas="b-cryptsetup">cryptsetup</primary>
|
---|
226 | </indexterm>
|
---|
227 | </listitem>
|
---|
228 | </varlistentry>
|
---|
229 |
|
---|
230 | <varlistentry id="cryptsetup-reencrypt">
|
---|
231 | <term><command>cryptsetup-reencrypt</command></term>
|
---|
232 | <listitem>
|
---|
233 | <para>
|
---|
234 | is a for offline LUKS device re-encryption.
|
---|
235 | </para>
|
---|
236 | <indexterm zone="cryptsetup cryptsetup-reencrypt">
|
---|
237 | <primary sortas="b-cryptsetup-reencrypt">cryptsetup-reencrypt</primary>
|
---|
238 | </indexterm>
|
---|
239 | </listitem>
|
---|
240 | </varlistentry>
|
---|
241 |
|
---|
242 | <varlistentry id="integritysetup">
|
---|
243 | <term><command>integritysetup</command></term>
|
---|
244 | <listitem>
|
---|
245 | <para>
|
---|
246 | is a tool to manage dm-integrity (block level integrity) volumes.
|
---|
247 | </para>
|
---|
248 | <indexterm zone="cryptsetup integritysetup">
|
---|
249 | <primary sortas="b-integritysetup">integritysetup</primary>
|
---|
250 | </indexterm>
|
---|
251 | </listitem>
|
---|
252 | </varlistentry>
|
---|
253 |
|
---|
254 | <varlistentry id="veritysetup">
|
---|
255 | <term><command>veritysetup</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>
|
---|
258 | is used to configure dm-verity managed device-mapper mappings.
|
---|
259 | Device-mapper verity target provides read-only transparent integrity
|
---|
260 | checking of block devices using kernel crypto API.
|
---|
261 | </para>
|
---|
262 | <indexterm zone="cryptsetup veritysetup">
|
---|
263 | <primary sortas="b-veritysetup">veritysetup</primary>
|
---|
264 | </indexterm>
|
---|
265 | </listitem>
|
---|
266 | </varlistentry>
|
---|
267 |
|
---|
268 | </variablelist>
|
---|
269 |
|
---|
270 | </sect2>
|
---|
271 |
|
---|
272 | </sect1>
|
---|