[8250d8e] | 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 |
|
---|
[4af8cb5] | 7 | <!ENTITY libgcrypt-download-http " ">
|
---|
[8250d8e] | 8 | <!ENTITY libgcrypt-download-ftp "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-&libgcrypt-version;.tar.bz2">
|
---|
[8021ead] | 9 | <!ENTITY libgcrypt-md5sum "b54395a93cb1e57619943c082da09d5f">
|
---|
[9a19f1b] | 10 | <!ENTITY libgcrypt-size "2.4 MB">
|
---|
[8021ead] | 11 | <!ENTITY libgcrypt-buildsize "38 MB (additional 7 MB SBU for docs)">
|
---|
[3284a283] | 12 | <!ENTITY libgcrypt-time "0.3 SBU (additional 0.1 SBU for docs and
|
---|
| 13 | 0.8 SBU for tests)">
|
---|
[8250d8e] | 14 | ]>
|
---|
| 15 |
|
---|
[e79ed72] | 16 | <sect1 id="libgcrypt" xreflabel="libgcrypt-&libgcrypt-version;">
|
---|
[8250d8e] | 17 | <?dbhtml filename="libgcrypt.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[e79ed72] | 24 | <title>libgcrypt-&libgcrypt-version;</title>
|
---|
[8250d8e] | 25 |
|
---|
| 26 | <indexterm zone="libgcrypt">
|
---|
[e79ed72] | 27 | <primary sortas="a-libgcrypt">libgcrypt</primary>
|
---|
[8250d8e] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[e79ed72] | 31 | <title>Introduction to libgcrypt</title>
|
---|
[8250d8e] | 32 |
|
---|
[6d8f6dc] | 33 | <para>
|
---|
| 34 | The <application>libgcrypt</application> package contains a general
|
---|
| 35 | purpose crypto library based on the code used in
|
---|
| 36 | <application>GnuPG</application>. The library provides a high level
|
---|
| 37 | interface to cryptographic building blocks using an extendable and flexible
|
---|
| 38 | API.
|
---|
| 39 | </para>
|
---|
[8250d8e] | 40 |
|
---|
[c536e673] | 41 | &lfs76_checked;
|
---|
[43c1385] | 42 |
|
---|
[8250d8e] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[6d8f6dc] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&libgcrypt-download-http;"/>
|
---|
| 48 | </para>
|
---|
[8250d8e] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[6d8f6dc] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&libgcrypt-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[8250d8e] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[6d8f6dc] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &libgcrypt-md5sum;
|
---|
| 58 | </para>
|
---|
[8250d8e] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[6d8f6dc] | 61 | <para>
|
---|
| 62 | Download size: &libgcrypt-size;
|
---|
| 63 | </para>
|
---|
[8250d8e] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[6d8f6dc] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &libgcrypt-buildsize;
|
---|
| 68 | </para>
|
---|
[8250d8e] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[6d8f6dc] | 71 | <para>
|
---|
| 72 | Estimated build time: &libgcrypt-time;
|
---|
| 73 | </para>
|
---|
[8250d8e] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
[e79ed72] | 77 | <bridgehead renderas="sect3">libgcrypt Dependencies</bridgehead>
|
---|
[8250d8e] | 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[6d8f6dc] | 80 | <para role="required">
|
---|
| 81 | <xref linkend="libgpg-error"/>
|
---|
| 82 | </para>
|
---|
[8250d8e] | 83 |
|
---|
[390e0d7] | 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[6d8f6dc] | 85 | <para role="optional">
|
---|
| 86 | <xref linkend="pth"/>
|
---|
| 87 | </para>
|
---|
[390e0d7] | 88 |
|
---|
[8250d8e] | 89 | <para condition="html" role="usernotes">User Notes:
|
---|
[6d8f6dc] | 90 | <ulink url="&blfs-wiki;/libgcrypt"/>
|
---|
| 91 | </para>
|
---|
[8250d8e] | 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
[e79ed72] | 95 | <title>Installation of libgcrypt</title>
|
---|
[8250d8e] | 96 |
|
---|
[6d8f6dc] | 97 | <para>
|
---|
| 98 | Install <application>libgcrypt</application> by running the
|
---|
| 99 | following commands:
|
---|
| 100 | </para>
|
---|
[8250d8e] | 101 |
|
---|
[9a19f1b] | 102 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[8250d8e] | 103 | make</userinput></screen>
|
---|
| 104 |
|
---|
[6d8f6dc] | 105 | <para>
|
---|
| 106 | Only <command>info</command> documentation is shipped in the package
|
---|
| 107 | tarball. If you wish to build alternate formats of the documentation,
|
---|
| 108 | (you must have <xref linkend="texlive"/> installed to build the PDF
|
---|
| 109 | and PostScript documentation), then issue the following commands:
|
---|
| 110 | </para>
|
---|
[8250d8e] | 111 |
|
---|
[d9d862d] | 112 | <screen><userinput>make -C doc pdf ps html &&
|
---|
[8250d8e] | 113 | makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &&
|
---|
| 114 | makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi</userinput></screen>
|
---|
| 115 |
|
---|
[6d8f6dc] | 116 | <para>
|
---|
| 117 | To test the results, issue: <command>make check</command>.
|
---|
| 118 | </para>
|
---|
[8250d8e] | 119 |
|
---|
[6d8f6dc] | 120 | <para>
|
---|
| 121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
[8250d8e] | 123 |
|
---|
| 124 | <screen role="root"><userinput>make install &&
|
---|
[6d8f6dc] | 125 | install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
[acb57a0] | 126 | install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
|
---|
| 127 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
[8250d8e] | 128 |
|
---|
[3b06c28] | 129 | <para>
|
---|
| 130 | The shared library needs to be moved to
|
---|
| 131 | <filename class="directory">/lib</filename>, and as a result the
|
---|
| 132 | <filename class="extension">.so</filename> file in
|
---|
| 133 | <filename class="directory">/usr/lib</filename> will need to be
|
---|
| 134 | recreated. Run the following command as the
|
---|
| 135 | <systemitem class="username">root</systemitem> user:
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
| 138 | <screen><userinput remap="install">mv -v /usr/lib/libgcrypt.so.* /lib
|
---|
| 139 | ln -sfv ../../lib/$(readlink /usr/lib/libgcrypt.so) /usr/lib/libgcrypt.so</userinput></screen>
|
---|
| 140 |
|
---|
[6d8f6dc] | 141 | <para>
|
---|
| 142 | If you built the additional documentation, install it by issuing the
|
---|
| 143 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 144 | user:
|
---|
| 145 | </para>
|
---|
[8250d8e] | 146 |
|
---|
[6d8f6dc] | 147 | <screen role="root"><userinput>install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
[8250d8e] | 148 | install -v -m644 doc/gcrypt.html/* \
|
---|
| 149 | /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
[390e0d7] | 150 | install -v -m644 doc/gcrypt_nochunks.html \
|
---|
[8250d8e] | 151 | /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
| 152 | install -v -m644 doc/gcrypt.{pdf,ps,dvi,txt,texi} \
|
---|
| 153 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
| 154 |
|
---|
| 155 | </sect2>
|
---|
| 156 |
|
---|
[1bac96e3] | 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
| 160 | <para>
|
---|
| 161 | <option>--with-capabilities</option>: This option enables libcap2 support.
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
| 164 | </sect2>
|
---|
| 165 |
|
---|
[8250d8e] | 166 | <sect2 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
[390e0d7] | 170 | <segtitle>Installed Programs</segtitle>
|
---|
[d284bee] | 171 | <segtitle>Installed Library</segtitle>
|
---|
[8250d8e] | 172 | <segtitle>Installed Directory</segtitle>
|
---|
| 173 |
|
---|
| 174 | <seglistitem>
|
---|
[6d8f6dc] | 175 | <seg>
|
---|
[9a19f1b] | 176 | dumpsexp, hmac256, libgcrypt-config, and mpicalc
|
---|
[6d8f6dc] | 177 | </seg>
|
---|
| 178 | <seg>
|
---|
| 179 | libgcrypt.so
|
---|
| 180 | </seg>
|
---|
| 181 | <seg>
|
---|
| 182 | /usr/share/doc/libgcrypt-&libgcrypt-version;
|
---|
| 183 | </seg>
|
---|
[8250d8e] | 184 | </seglistitem>
|
---|
| 185 | </segmentedlist>
|
---|
| 186 |
|
---|
| 187 | <variablelist>
|
---|
| 188 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 189 | <?dbfo list-presentation="list"?>
|
---|
| 190 | <?dbhtml list-presentation="table"?>
|
---|
| 191 |
|
---|
| 192 | <varlistentry id="libgcrypt-lib">
|
---|
[6d8f6dc] | 193 | <term><filename class="libraryfile">libgcrypt.so</filename></term>
|
---|
[8250d8e] | 194 | <listitem>
|
---|
[6d8f6dc] | 195 | <para>
|
---|
| 196 | contains the cryptographic API functions.
|
---|
| 197 | </para>
|
---|
[8250d8e] | 198 | <indexterm zone="libgcrypt libgcrypt-lib">
|
---|
[6d8f6dc] | 199 | <primary sortas="c-libgcrypt">libgcrypt.so</primary>
|
---|
[8250d8e] | 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | </variablelist>
|
---|
| 205 |
|
---|
| 206 | </sect2>
|
---|
| 207 |
|
---|
| 208 | </sect1>
|
---|