[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">
|
---|
[16e895e] | 9 | <!ENTITY libgcrypt-md5sum "4c13c5fa43147866f993d73ee62af176">
|
---|
[9a19f1b] | 10 | <!ENTITY libgcrypt-size "2.4 MB">
|
---|
[16e895e] | 11 | <!ENTITY libgcrypt-buildsize "38 MB (additional 8 MB for docs)">
|
---|
[3284a283] | 12 | <!ENTITY libgcrypt-time "0.3 SBU (additional 0.1 SBU for docs and
|
---|
[39dd48b] | 13 | 0.3 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 |
|
---|
[7c12cabe] | 41 | &lfs78_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">
|
---|
[56605b9] | 86 | <xref linkend="libcap-pam"/> and
|
---|
[d2da67c] | 87 | <xref linkend="pth"/>,
|
---|
| 88 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
[6d8f6dc] | 89 | </para>
|
---|
[390e0d7] | 90 |
|
---|
[8250d8e] | 91 | <para condition="html" role="usernotes">User Notes:
|
---|
[6d8f6dc] | 92 | <ulink url="&blfs-wiki;/libgcrypt"/>
|
---|
| 93 | </para>
|
---|
[8250d8e] | 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
[e79ed72] | 97 | <title>Installation of libgcrypt</title>
|
---|
[8250d8e] | 98 |
|
---|
[6d8f6dc] | 99 | <para>
|
---|
| 100 | Install <application>libgcrypt</application> by running the
|
---|
| 101 | following commands:
|
---|
| 102 | </para>
|
---|
[8250d8e] | 103 |
|
---|
[9a19f1b] | 104 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[8250d8e] | 105 | make</userinput></screen>
|
---|
| 106 |
|
---|
[6d8f6dc] | 107 | <para>
|
---|
| 108 | Only <command>info</command> documentation is shipped in the package
|
---|
| 109 | tarball. If you wish to build alternate formats of the documentation,
|
---|
| 110 | (you must have <xref linkend="texlive"/> installed to build the PDF
|
---|
| 111 | and PostScript documentation), then issue the following commands:
|
---|
| 112 | </para>
|
---|
[8250d8e] | 113 |
|
---|
[bd3f3e1] | 114 | <screen><userinput>make -j1 -C doc pdf ps html &&
|
---|
[8250d8e] | 115 | makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &&
|
---|
| 116 | makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi</userinput></screen>
|
---|
| 117 |
|
---|
[6d8f6dc] | 118 | <para>
|
---|
| 119 | To test the results, issue: <command>make check</command>.
|
---|
| 120 | </para>
|
---|
[8250d8e] | 121 |
|
---|
[6d8f6dc] | 122 | <para>
|
---|
| 123 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 124 | </para>
|
---|
[8250d8e] | 125 |
|
---|
| 126 | <screen role="root"><userinput>make install &&
|
---|
[6d8f6dc] | 127 | install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
[acb57a0] | 128 | install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
|
---|
| 129 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
[8250d8e] | 130 |
|
---|
[6d8f6dc] | 131 | <para>
|
---|
| 132 | If you built the additional documentation, install it by issuing the
|
---|
| 133 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 134 | user:
|
---|
| 135 | </para>
|
---|
[8250d8e] | 136 |
|
---|
[6d8f6dc] | 137 | <screen role="root"><userinput>install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
[8250d8e] | 138 | install -v -m644 doc/gcrypt.html/* \
|
---|
| 139 | /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
[390e0d7] | 140 | install -v -m644 doc/gcrypt_nochunks.html \
|
---|
[8250d8e] | 141 | /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
| 142 | install -v -m644 doc/gcrypt.{pdf,ps,dvi,txt,texi} \
|
---|
| 143 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
| 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
[1bac96e3] | 147 | <sect2 role="commands">
|
---|
| 148 | <title>Command Explanations</title>
|
---|
| 149 |
|
---|
| 150 | <para>
|
---|
| 151 | <option>--with-capabilities</option>: This option enables libcap2 support.
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
[8250d8e] | 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <segmentedlist>
|
---|
[390e0d7] | 160 | <segtitle>Installed Programs</segtitle>
|
---|
[d284bee] | 161 | <segtitle>Installed Library</segtitle>
|
---|
[8250d8e] | 162 | <segtitle>Installed Directory</segtitle>
|
---|
| 163 |
|
---|
| 164 | <seglistitem>
|
---|
[6d8f6dc] | 165 | <seg>
|
---|
[9a19f1b] | 166 | dumpsexp, hmac256, libgcrypt-config, and mpicalc
|
---|
[6d8f6dc] | 167 | </seg>
|
---|
| 168 | <seg>
|
---|
| 169 | libgcrypt.so
|
---|
| 170 | </seg>
|
---|
| 171 | <seg>
|
---|
| 172 | /usr/share/doc/libgcrypt-&libgcrypt-version;
|
---|
| 173 | </seg>
|
---|
[8250d8e] | 174 | </seglistitem>
|
---|
| 175 | </segmentedlist>
|
---|
| 176 |
|
---|
| 177 | <variablelist>
|
---|
| 178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 179 | <?dbfo list-presentation="list"?>
|
---|
| 180 | <?dbhtml list-presentation="table"?>
|
---|
| 181 |
|
---|
[e23d8fcb] | 182 | <varlistentry id="dumpsexp">
|
---|
| 183 | <term><command>dumpsexp</command></term>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>
|
---|
| 186 | is a debug tool for S-expressions.
|
---|
| 187 | </para>
|
---|
| 188 | <indexterm zone="libgcrypt dumpsexp">
|
---|
| 189 | <primary sortas="b-dumpsexp">dumpsexp</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
[39dd48b] | 194 | <varlistentry id="hmac256">
|
---|
| 195 | <term><command>hmac256</command></term>
|
---|
| 196 | <listitem>
|
---|
| 197 | <para>
|
---|
| 198 | is a standalone HMAC-SHA-256 implementation used to compute
|
---|
| 199 | an HMAC-SHA-256 authentication code.
|
---|
| 200 | </para>
|
---|
| 201 | <indexterm zone="libgcrypt hmac256">
|
---|
| 202 | <primary sortas="b-hmac256">hmac256</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
[e23d8fcb] | 207 | <varlistentry id="libgcrypt-config">
|
---|
| 208 | <term><command>libgcrypt-config</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>
|
---|
| 211 | determines the compile and linker flags that should be used to
|
---|
| 212 | compile and link programs that use <filename class="libraryfile">libgcrypt</filename>.
|
---|
| 213 | </para>
|
---|
| 214 | <indexterm zone="libgcrypt libgcrypt-config">
|
---|
| 215 | <primary sortas="b-libgcrypt-config">libgcrypt-config</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 |
|
---|
| 220 | <varlistentry id="mpicalc">
|
---|
| 221 | <term><command>mpicalc</command></term>
|
---|
| 222 | <listitem>
|
---|
| 223 | <para>
|
---|
| 224 | is a RPN (Reverse Polish Notation) calculator.
|
---|
| 225 | </para>
|
---|
| 226 | <indexterm zone="libgcrypt mpicalc">
|
---|
| 227 | <primary sortas="b-mpicalc">mpicalc</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
[8250d8e] | 232 | <varlistentry id="libgcrypt-lib">
|
---|
[6d8f6dc] | 233 | <term><filename class="libraryfile">libgcrypt.so</filename></term>
|
---|
[8250d8e] | 234 | <listitem>
|
---|
[6d8f6dc] | 235 | <para>
|
---|
| 236 | contains the cryptographic API functions.
|
---|
| 237 | </para>
|
---|
[8250d8e] | 238 | <indexterm zone="libgcrypt libgcrypt-lib">
|
---|
[6d8f6dc] | 239 | <primary sortas="c-libgcrypt">libgcrypt.so</primary>
|
---|
[8250d8e] | 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | </variablelist>
|
---|
| 245 |
|
---|
| 246 | </sect2>
|
---|
| 247 |
|
---|
| 248 | </sect1>
|
---|