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