[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">
|
---|
[2054004] | 9 | <!ENTITY libgcrypt-md5sum "993159b2924ae7b0e4eaff0743c2db35">
|
---|
| 10 | <!ENTITY libgcrypt-size "1.4 MB">
|
---|
| 11 | <!ENTITY libgcrypt-buildsize "27 MB">
|
---|
| 12 | <!ENTITY libgcrypt-time "0.3 SBU">
|
---|
[8250d8e] | 13 | ]>
|
---|
| 14 |
|
---|
[e79ed72] | 15 | <sect1 id="libgcrypt" xreflabel="libgcrypt-&libgcrypt-version;">
|
---|
[8250d8e] | 16 | <?dbhtml filename="libgcrypt.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[e79ed72] | 23 | <title>libgcrypt-&libgcrypt-version;</title>
|
---|
[8250d8e] | 24 |
|
---|
| 25 | <indexterm zone="libgcrypt">
|
---|
[e79ed72] | 26 | <primary sortas="a-libgcrypt">libgcrypt</primary>
|
---|
[8250d8e] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[e79ed72] | 30 | <title>Introduction to libgcrypt</title>
|
---|
[8250d8e] | 31 |
|
---|
[6d8f6dc] | 32 | <para>
|
---|
| 33 | The <application>libgcrypt</application> package contains a general
|
---|
| 34 | purpose crypto library based on the code used in
|
---|
| 35 | <application>GnuPG</application>. The library provides a high level
|
---|
| 36 | interface to cryptographic building blocks using an extendable and flexible
|
---|
| 37 | API.
|
---|
| 38 | </para>
|
---|
[8250d8e] | 39 |
|
---|
[15fc6d6] | 40 | &lfs74_checked;
|
---|
[43c1385] | 41 |
|
---|
[8250d8e] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[6d8f6dc] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&libgcrypt-download-http;"/>
|
---|
| 47 | </para>
|
---|
[8250d8e] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[6d8f6dc] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&libgcrypt-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[8250d8e] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[6d8f6dc] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &libgcrypt-md5sum;
|
---|
| 57 | </para>
|
---|
[8250d8e] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[6d8f6dc] | 60 | <para>
|
---|
| 61 | Download size: &libgcrypt-size;
|
---|
| 62 | </para>
|
---|
[8250d8e] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[6d8f6dc] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &libgcrypt-buildsize;
|
---|
| 67 | </para>
|
---|
[8250d8e] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[6d8f6dc] | 70 | <para>
|
---|
| 71 | Estimated build time: &libgcrypt-time;
|
---|
| 72 | </para>
|
---|
[8250d8e] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[e79ed72] | 76 | <bridgehead renderas="sect3">libgcrypt Dependencies</bridgehead>
|
---|
[8250d8e] | 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[6d8f6dc] | 79 | <para role="required">
|
---|
| 80 | <xref linkend="libgpg-error"/>
|
---|
| 81 | </para>
|
---|
[8250d8e] | 82 |
|
---|
[390e0d7] | 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[6d8f6dc] | 84 | <para role="optional">
|
---|
[68876b7] | 85 | <xref linkend="libcap"/> and
|
---|
[6d8f6dc] | 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 |
|
---|
[6d8f6dc] | 102 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[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 |
|
---|
[6d8f6dc] | 129 | <para>
|
---|
| 130 | If you built the additional documentation, install it by issuing the
|
---|
| 131 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 132 | user:
|
---|
| 133 | </para>
|
---|
[8250d8e] | 134 |
|
---|
[6d8f6dc] | 135 | <screen role="root"><userinput>install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
[8250d8e] | 136 | install -v -m644 doc/gcrypt.html/* \
|
---|
| 137 | /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
[390e0d7] | 138 | install -v -m644 doc/gcrypt_nochunks.html \
|
---|
[8250d8e] | 139 | /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
| 140 | install -v -m644 doc/gcrypt.{pdf,ps,dvi,txt,texi} \
|
---|
| 141 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
| 142 |
|
---|
| 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.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
[8250d8e] | 154 | <sect2 role="content">
|
---|
| 155 | <title>Contents</title>
|
---|
| 156 |
|
---|
| 157 | <segmentedlist>
|
---|
[390e0d7] | 158 | <segtitle>Installed Programs</segtitle>
|
---|
[d284bee] | 159 | <segtitle>Installed Library</segtitle>
|
---|
[8250d8e] | 160 | <segtitle>Installed Directory</segtitle>
|
---|
| 161 |
|
---|
| 162 | <seglistitem>
|
---|
[6d8f6dc] | 163 | <seg>
|
---|
| 164 | dumpsexp, hmac256 and libgcrypt-config
|
---|
| 165 | </seg>
|
---|
| 166 | <seg>
|
---|
| 167 | libgcrypt.so
|
---|
| 168 | </seg>
|
---|
| 169 | <seg>
|
---|
| 170 | /usr/share/doc/libgcrypt-&libgcrypt-version;
|
---|
| 171 | </seg>
|
---|
[8250d8e] | 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
| 174 |
|
---|
| 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="libgcrypt-lib">
|
---|
[6d8f6dc] | 181 | <term><filename class="libraryfile">libgcrypt.so</filename></term>
|
---|
[8250d8e] | 182 | <listitem>
|
---|
[6d8f6dc] | 183 | <para>
|
---|
| 184 | contains the cryptographic API functions.
|
---|
| 185 | </para>
|
---|
[8250d8e] | 186 | <indexterm zone="libgcrypt libgcrypt-lib">
|
---|
[6d8f6dc] | 187 | <primary sortas="c-libgcrypt">libgcrypt.so</primary>
|
---|
[8250d8e] | 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | </variablelist>
|
---|
| 193 |
|
---|
| 194 | </sect2>
|
---|
| 195 |
|
---|
| 196 | </sect1>
|
---|