source: postlfs/security/cryptsetup.xml@ 6dcb9e77

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6dcb9e77 was 6dcb9e77, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Add volume_key-0.3.9 as a required dependency of libblockdev.
Add libbytesize-0.10 as a required depedency of libblockdev.
Add cryptsetup-1.7.5 as a dependency of libblockdev and required for udisks2.
Add libblockdev-2.9-1 as required depencency for udisks2-2.7.0.
Update to udisks2-2.7.0.

Yes, it was a PITA,

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18843 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.5 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 "https://www.kernel.org/pub/linux/utils/cryptsetup/v&cryptsetup-minor;/cryptsetup-&cryptsetup-version;.tar.xz">
8 <!ENTITY cryptsetup-download-ftp " ">
9 <!ENTITY cryptsetup-md5sum "d2d668223e795dcf750da44dc3e7076b">
10 <!ENTITY cryptsetup-size "1.2 MB">
11 <!ENTITY cryptsetup-buildsize "12 MB">
12 <!ENTITY cryptsetup-time "0.1 SBU (add 7.4 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 &lfs80_checked;
38 &gcc7_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&cryptsetup-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&cryptsetup-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &cryptsetup-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &cryptsetup-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &cryptsetup-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &cryptsetup-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">cryptsetup Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="libgcrypt"/>,
79 <xref linkend="nettle"/>,
80 <xref linkend="nss"/>,
81 <xref linkend="openssl"/>,
82 <xref linkend="popt"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="libpwquality"/>,
88 <xref linkend="lvm2"/>,
89 <xref linkend="python2"/>, and
90 <ulink url="http://www.openwall.com/passwdqc/">passwdqc</ulink>
91 </para>
92
93
94 <para condition="html" role="usernotes">User Notes:
95 <ulink url="&blfs-wiki;/cryptsetup"/>
96 </para>
97 </sect2>
98
99 <sect2 role="kernel" id="cryptsetup-kernel">
100 <title>Kernel Configuration</title>
101
102 <para>
103 Encrypted block devies require kernel support. To use it, the
104 appropriate kernel configuration parameters need to be set:
105 </para>
106
107<screen><literal>Device Drivers ---&gt;
108 [*] Multiple devices driver support (RAID and LVM) ---&gt; [CONFIG_MD]
109 &lt;*/M&gt; Device mapper support [CONFIG_BLK_DEV_DM]
110 &lt;*/M&gt; Crypt target support [CONFIG_DM_CRYPT]
111
112Cryptographic API ---&gt;
113 &lt;*/M&gt; XTS support [CONFIG_CRYPTO_XTS]
114 &lt;*/M&gt; SHA224 and SHA256 digest algorithm [CONFIG_CRYPTO_SHA256]
115 &lt;*/M&gt; AES cipher algorithms [CONFIG_CRYPTO_AES]
116 &lt;*/M&gt; AES cipher algorithms (x86_64) [CONFIG_CRYPTO_AES_X86_64]
117 &lt;*/M&gt; User-space interface for symmetric key cipher algorithms
118 [CONFIG_CRYPTO_USER_API_SKCIPHER]
119 For tests:
120 &lt;*/M&gt; Twofish cipher algorithm [CONFIG_CRYPTO_TWOFISH]</literal></screen>
121
122 <indexterm zone="cryptsetup cryptsetup-kernel">
123 <primary sortas="d-cryptsetup">cryptsetup</primary>
124 </indexterm>
125
126 </sect2>
127
128 <sect2 role="installation">
129 <title>Installation of cryptsetup</title>
130
131 <para>
132 Install <application>cryptsetup</application> by running the following
133 commands:
134 </para>
135
136<screen><userinput>./configure --prefix=/usr &amp;&amp;
137make</userinput></screen>
138
139 <para>
140 To test the result, issue as the <systemitem
141 class="username">root</systemitem> user: <command>make check</command>
142 </para>
143
144 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
145
146<screen role="root"><userinput>make install</userinput></screen>
147
148 </sect2>
149
150
151 <sect2 role="configuration">
152 <title>Configuring cryptsetup</title>
153
154 <para>
155 Introductory instructions for configuring encrypted block
156 devices TBD.
157 </para>
158
159 </sect2>
160
161 <sect2 role="content">
162 <title>Contents</title>
163
164 <segmentedlist>
165 <segtitle>Installed Programs</segtitle>
166 <segtitle>Installed Libraries</segtitle>
167 <segtitle>Installed Directories</segtitle>
168
169 <seglistitem>
170 <seg>
171 cryptsetup and
172 veritysetup
173 </seg>
174 <seg>
175 libcryptsetup.so
176 </seg>
177 <seg>
178 None
179 </seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="cryptsetup-prog">
189 <term><command>cryptsetup</command></term>
190 <listitem>
191 <para>
192 is used to setup dm-crypt managed device-mapper mappings.
193 </para>
194 <indexterm zone="cryptsetup cryptsetup-prog">
195 <primary sortas="b-cryptsetup">cryptsetup</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="veritysetup">
201 <term><command>veritysetup</command></term>
202 <listitem>
203 <para>
204 is used to configure dm-verity managed device-mapper mappings.
205 Device-mapper verity target provides read-only transparent integrity
206 checking of block devices using kernel crypto API.
207 </para>
208 <indexterm zone="cryptsetup veritysetup">
209 <primary sortas="b-veritysetup">veritysetup</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 </variablelist>
215
216 </sect2>
217
218</sect1>
Note: See TracBrowser for help on using the repository browser.