[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[8250d8e] | 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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY libgcrypt-download-http "&gnupg-http;/libgcrypt/libgcrypt-&libgcrypt-version;.tar.bz2">
|
---|
[14d673a2] | 8 | <!ENTITY libgcrypt-download-ftp " ">
|
---|
[70c888c] | 9 | <!ENTITY libgcrypt-md5sum "321c4975cfd6a496f0530b65a673f9a4">
|
---|
| 10 | <!ENTITY libgcrypt-size "4.0 MB">
|
---|
| 11 | <!ENTITY libgcrypt-buildsize "146 MB (with tests)">
|
---|
| 12 | <!ENTITY libgcrypt-time "0.6 SBU (with documentation; add 0.4 SBU for tests)">
|
---|
[8250d8e] | 13 | ]>
|
---|
| 14 |
|
---|
[e79ed72] | 15 | <sect1 id="libgcrypt" xreflabel="libgcrypt-&libgcrypt-version;">
|
---|
[8250d8e] | 16 | <?dbhtml filename="libgcrypt.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[e79ed72] | 19 | <title>libgcrypt-&libgcrypt-version;</title>
|
---|
[8250d8e] | 20 |
|
---|
| 21 | <indexterm zone="libgcrypt">
|
---|
[e79ed72] | 22 | <primary sortas="a-libgcrypt">libgcrypt</primary>
|
---|
[8250d8e] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[e79ed72] | 26 | <title>Introduction to libgcrypt</title>
|
---|
[8250d8e] | 27 |
|
---|
[6d8f6dc] | 28 | <para>
|
---|
| 29 | The <application>libgcrypt</application> package contains a general
|
---|
| 30 | purpose crypto library based on the code used in
|
---|
| 31 | <application>GnuPG</application>. The library provides a high level
|
---|
| 32 | interface to cryptographic building blocks using an extendable and flexible
|
---|
| 33 | API.
|
---|
| 34 | </para>
|
---|
[8250d8e] | 35 |
|
---|
[1241ea19] | 36 | &lfs121_checked;
|
---|
[43c1385] | 37 |
|
---|
[8250d8e] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[6d8f6dc] | 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&libgcrypt-download-http;"/>
|
---|
| 43 | </para>
|
---|
[8250d8e] | 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
[6d8f6dc] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&libgcrypt-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[8250d8e] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[6d8f6dc] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &libgcrypt-md5sum;
|
---|
| 53 | </para>
|
---|
[8250d8e] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[6d8f6dc] | 56 | <para>
|
---|
| 57 | Download size: &libgcrypt-size;
|
---|
| 58 | </para>
|
---|
[8250d8e] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[6d8f6dc] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &libgcrypt-buildsize;
|
---|
| 63 | </para>
|
---|
[8250d8e] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[6d8f6dc] | 66 | <para>
|
---|
| 67 | Estimated build time: &libgcrypt-time;
|
---|
| 68 | </para>
|
---|
[8250d8e] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[e79ed72] | 72 | <bridgehead renderas="sect3">libgcrypt Dependencies</bridgehead>
|
---|
[8250d8e] | 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[6d8f6dc] | 75 | <para role="required">
|
---|
| 76 | <xref linkend="libgpg-error"/>
|
---|
| 77 | </para>
|
---|
[8250d8e] | 78 |
|
---|
[390e0d7] | 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[6d8f6dc] | 80 | <para role="optional">
|
---|
[0a6ba20] | 81 | <!-- <xref linkend="libcap-pam"/> -->
|
---|
[d2da67c] | 82 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
[6d8f6dc] | 83 | </para>
|
---|
[390e0d7] | 84 |
|
---|
[8250d8e] | 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
[e79ed72] | 88 | <title>Installation of libgcrypt</title>
|
---|
[8250d8e] | 89 |
|
---|
[6d8f6dc] | 90 | <para>
|
---|
| 91 | Install <application>libgcrypt</application> by running the
|
---|
| 92 | following commands:
|
---|
| 93 | </para>
|
---|
[8250d8e] | 94 |
|
---|
[9a19f1b] | 95 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[a42c273] | 96 | make &&
|
---|
| 97 |
|
---|
| 98 | make -C doc html &&
|
---|
| 99 | makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &&
|
---|
| 100 | makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi</userinput></screen>
|
---|
[8250d8e] | 101 |
|
---|
[ef37a4d4] | 102 | <!-- The commands for building the pdf and ps formats are broken.
|
---|
[6d8f6dc] | 103 | <para>
|
---|
[a42c273] | 104 | The above commands build the documentation in html and plaintext
|
---|
| 105 | formats. If you wish to build alternate formats of the documentation, you
|
---|
| 106 | need <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>). Issue
|
---|
| 107 | the following command:
|
---|
[6d8f6dc] | 108 | </para>
|
---|
[8250d8e] | 109 |
|
---|
[42d28d7] | 110 | <screen remap="doc"><userinput>make -C doc pdf</userinput></screen>
|
---|
[ef37a4d4] | 111 | -->
|
---|
[6d8f6dc] | 112 | <para>
|
---|
| 113 | To test the results, issue: <command>make check</command>.
|
---|
| 114 | </para>
|
---|
[8250d8e] | 115 |
|
---|
[6d8f6dc] | 116 | <para>
|
---|
| 117 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 118 | </para>
|
---|
[8250d8e] | 119 |
|
---|
| 120 | <screen role="root"><userinput>make install &&
|
---|
[6d8f6dc] | 121 | install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
[acb57a0] | 122 | install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
|
---|
[a42c273] | 123 | /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
| 124 |
|
---|
| 125 | install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
| 126 | install -v -m644 doc/gcrypt.html/* \
|
---|
| 127 | /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
| 128 | install -v -m644 doc/gcrypt_nochunks.html \
|
---|
| 129 | /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
| 130 | install -v -m644 doc/gcrypt.{txt,texi} \
|
---|
[acb57a0] | 131 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
[ef37a4d4] | 132 | <!--
|
---|
[6d8f6dc] | 133 | <para>
|
---|
[a42c273] | 134 | If you built alternate formats of the documentation, install them by
|
---|
| 135 | issuing the following command as the
|
---|
| 136 | <systemitem class="username">root</systemitem> user:
|
---|
[6d8f6dc] | 137 | </para>
|
---|
[8250d8e] | 138 |
|
---|
[a42c273] | 139 | <screen role="root"
|
---|
| 140 | remap="doc"><userinput>install -v -m644 doc/gcrypt.{pdf,ps,dvi} \
|
---|
[8250d8e] | 141 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
[ef37a4d4] | 142 | -->
|
---|
[8250d8e] | 143 | </sect2>
|
---|
| 144 |
|
---|
[1bac96e3] | 145 | <sect2 role="commands">
|
---|
| 146 | <title>Command Explanations</title>
|
---|
| 147 |
|
---|
| 148 | <para>
|
---|
| 149 | <option>--with-capabilities</option>: This option enables libcap2 support.
|
---|
[b1be08a] | 150 | Note that this breaks <xref linkend="cryptsetup"/>
|
---|
[1bac96e3] | 151 | </para>
|
---|
| 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
[8250d8e] | 155 | <sect2 role="content">
|
---|
| 156 | <title>Contents</title>
|
---|
| 157 |
|
---|
| 158 | <segmentedlist>
|
---|
[390e0d7] | 159 | <segtitle>Installed Programs</segtitle>
|
---|
[d284bee] | 160 | <segtitle>Installed Library</segtitle>
|
---|
[8250d8e] | 161 | <segtitle>Installed Directory</segtitle>
|
---|
| 162 |
|
---|
| 163 | <seglistitem>
|
---|
[6d8f6dc] | 164 | <seg>
|
---|
[fb57bd99] | 165 | dumpsexp, hmac256, and mpicalc
|
---|
[6d8f6dc] | 166 | </seg>
|
---|
| 167 | <seg>
|
---|
| 168 | libgcrypt.so
|
---|
| 169 | </seg>
|
---|
| 170 | <seg>
|
---|
| 171 | /usr/share/doc/libgcrypt-&libgcrypt-version;
|
---|
| 172 | </seg>
|
---|
[8250d8e] | 173 | </seglistitem>
|
---|
| 174 | </segmentedlist>
|
---|
| 175 |
|
---|
| 176 | <variablelist>
|
---|
| 177 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 178 | <?dbfo list-presentation="list"?>
|
---|
| 179 | <?dbhtml list-presentation="table"?>
|
---|
| 180 |
|
---|
[e23d8fcb] | 181 | <varlistentry id="dumpsexp">
|
---|
| 182 | <term><command>dumpsexp</command></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>
|
---|
[4c24eb0a] | 185 | is a debug tool for S-expressions
|
---|
[e23d8fcb] | 186 | </para>
|
---|
| 187 | <indexterm zone="libgcrypt dumpsexp">
|
---|
| 188 | <primary sortas="b-dumpsexp">dumpsexp</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
[39dd48b] | 193 | <varlistentry id="hmac256">
|
---|
| 194 | <term><command>hmac256</command></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>
|
---|
| 197 | is a standalone HMAC-SHA-256 implementation used to compute
|
---|
[4c24eb0a] | 198 | an HMAC-SHA-256 authentication code
|
---|
[39dd48b] | 199 | </para>
|
---|
| 200 | <indexterm zone="libgcrypt hmac256">
|
---|
| 201 | <primary sortas="b-hmac256">hmac256</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
[e23d8fcb] | 206 | <varlistentry id="mpicalc">
|
---|
| 207 | <term><command>mpicalc</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>
|
---|
[4c24eb0a] | 210 | is a RPN (Reverse Polish Notation) calculator
|
---|
[e23d8fcb] | 211 | </para>
|
---|
| 212 | <indexterm zone="libgcrypt mpicalc">
|
---|
| 213 | <primary sortas="b-mpicalc">mpicalc</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
[8250d8e] | 218 | <varlistentry id="libgcrypt-lib">
|
---|
[6d8f6dc] | 219 | <term><filename class="libraryfile">libgcrypt.so</filename></term>
|
---|
[8250d8e] | 220 | <listitem>
|
---|
[6d8f6dc] | 221 | <para>
|
---|
[4c24eb0a] | 222 | contains the cryptographic API functions
|
---|
[6d8f6dc] | 223 | </para>
|
---|
[8250d8e] | 224 | <indexterm zone="libgcrypt libgcrypt-lib">
|
---|
[6d8f6dc] | 225 | <primary sortas="c-libgcrypt">libgcrypt.so</primary>
|
---|
[8250d8e] | 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
| 229 |
|
---|
| 230 | </variablelist>
|
---|
| 231 |
|
---|
| 232 | </sect2>
|
---|
| 233 |
|
---|
| 234 | </sect1>
|
---|