2017-06-22 05:49:37 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY cryptsetup-download-http "&kernel-dl;/linux/utils/cryptsetup/v&cryptsetup-minor;/cryptsetup-&cryptsetup-version;.tar.xz">
|
2017-06-22 05:49:37 +08:00
|
|
|
<!ENTITY cryptsetup-download-ftp " ">
|
|
|
|
<!ENTITY cryptsetup-md5sum "d2d668223e795dcf750da44dc3e7076b">
|
|
|
|
<!ENTITY cryptsetup-size "1.2 MB">
|
|
|
|
<!ENTITY cryptsetup-buildsize "12 MB">
|
|
|
|
<!ENTITY cryptsetup-time "0.1 SBU (add 7.4 SBU for tests)">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="cryptsetup" xreflabel="cryptsetup-&cryptsetup-version;">
|
|
|
|
<?dbhtml filename="cryptsetup.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>cryptsetup-&cryptsetup-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="cryptsetup">
|
|
|
|
<primary sortas="a-cryptsetup">cryptsetup</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to cryptsetup</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
cryptsetup is used to set up transparent encryption of block devices
|
|
|
|
using the kernel crypto API.
|
|
|
|
</para>
|
|
|
|
|
2017-08-25 09:56:23 +08:00
|
|
|
&lfs81_checked;
|
2017-06-22 05:49:37 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&cryptsetup-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&cryptsetup-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &cryptsetup-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &cryptsetup-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &cryptsetup-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &cryptsetup-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">cryptsetup Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="libgcrypt"/>,
|
|
|
|
<xref linkend="nettle"/>,
|
2017-08-25 09:56:23 +08:00
|
|
|
<xref linkend="lvm2"/>,
|
2017-06-22 05:49:37 +08:00
|
|
|
<xref linkend="nss"/>,
|
|
|
|
<xref linkend="openssl"/>,
|
|
|
|
<xref linkend="popt"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="libpwquality"/>,
|
|
|
|
<xref linkend="lvm2"/>,
|
|
|
|
<xref linkend="python2"/>, and
|
|
|
|
<ulink url="http://www.openwall.com/passwdqc/">passwdqc</ulink>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/cryptsetup"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="kernel" id="cryptsetup-kernel">
|
|
|
|
<title>Kernel Configuration</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Encrypted block devies require kernel support. To use it, the
|
|
|
|
appropriate kernel configuration parameters need to be set:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><literal>Device Drivers --->
|
|
|
|
[*] Multiple devices driver support (RAID and LVM) ---> [CONFIG_MD]
|
|
|
|
<*/M> Device mapper support [CONFIG_BLK_DEV_DM]
|
|
|
|
<*/M> Crypt target support [CONFIG_DM_CRYPT]
|
|
|
|
|
|
|
|
Cryptographic API --->
|
|
|
|
<*/M> XTS support [CONFIG_CRYPTO_XTS]
|
|
|
|
<*/M> SHA224 and SHA256 digest algorithm [CONFIG_CRYPTO_SHA256]
|
|
|
|
<*/M> AES cipher algorithms [CONFIG_CRYPTO_AES]
|
|
|
|
<*/M> AES cipher algorithms (x86_64) [CONFIG_CRYPTO_AES_X86_64]
|
|
|
|
<*/M> User-space interface for symmetric key cipher algorithms
|
|
|
|
[CONFIG_CRYPTO_USER_API_SKCIPHER]
|
|
|
|
For tests:
|
|
|
|
<*/M> Twofish cipher algorithm [CONFIG_CRYPTO_TWOFISH]</literal></screen>
|
|
|
|
|
|
|
|
<indexterm zone="cryptsetup cryptsetup-kernel">
|
|
|
|
<primary sortas="d-cryptsetup">cryptsetup</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of cryptsetup</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>cryptsetup</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To test the result, issue as the <systemitem
|
|
|
|
class="username">root</systemitem> user: <command>make check</command>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring cryptsetup</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Introductory instructions for configuring encrypted block
|
|
|
|
devices TBD.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
cryptsetup and
|
|
|
|
veritysetup
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libcryptsetup.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="cryptsetup-prog">
|
|
|
|
<term><command>cryptsetup</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to setup dm-crypt managed device-mapper mappings.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="cryptsetup cryptsetup-prog">
|
|
|
|
<primary sortas="b-cryptsetup">cryptsetup</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="veritysetup">
|
|
|
|
<term><command>veritysetup</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to configure dm-verity managed device-mapper mappings.
|
|
|
|
Device-mapper verity target provides read-only transparent integrity
|
|
|
|
checking of block devices using kernel crypto API.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="cryptsetup veritysetup">
|
|
|
|
<primary sortas="b-veritysetup">veritysetup</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|