[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 " ">
|
---|
[d953bb9] | 10 | <!ENTITY libgcrypt-md5sum "348cc4601ca34307fc6cd6c945467743">
|
---|
[2901bef] | 11 | <!ENTITY libgcrypt-size "2.9 MB">
|
---|
[572609a6] | 12 | <!ENTITY libgcrypt-buildsize "44 MB (with tests; add 8 MB for building docs)">
|
---|
[ce508efa] | 13 | <!ENTITY libgcrypt-time "0.3 SBU (with docs; 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 | <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 |
|
---|
[11193870] | 41 | &lfs91_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">
|
---|
[0a6ba20] | 86 | <!-- <xref linkend="libcap-pam"/> -->
|
---|
| 87 | <xref linkend="pth"/> and
|
---|
[d2da67c] | 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 &&
|
---|
[a42c273] | 105 | make &&
|
---|
| 106 |
|
---|
| 107 | make -C doc html &&
|
---|
| 108 | makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &&
|
---|
| 109 | makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi</userinput></screen>
|
---|
[8250d8e] | 110 |
|
---|
[6d8f6dc] | 111 | <para>
|
---|
[a42c273] | 112 | The above commands build the documentation in html and plaintext
|
---|
| 113 | formats. If you wish to build alternate formats of the documentation, you
|
---|
| 114 | need <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>). Issue
|
---|
| 115 | the following command:
|
---|
[6d8f6dc] | 116 | </para>
|
---|
[8250d8e] | 117 |
|
---|
[a42c273] | 118 | <screen remap="doc"><userinput>make -C doc pdf ps</userinput></screen>
|
---|
[8250d8e] | 119 |
|
---|
[6d8f6dc] | 120 | <para>
|
---|
| 121 | To test the results, issue: <command>make check</command>.
|
---|
| 122 | </para>
|
---|
[8250d8e] | 123 |
|
---|
[6d8f6dc] | 124 | <para>
|
---|
| 125 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 126 | </para>
|
---|
[8250d8e] | 127 |
|
---|
| 128 | <screen role="root"><userinput>make install &&
|
---|
[6d8f6dc] | 129 | install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
[acb57a0] | 130 | install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
|
---|
[a42c273] | 131 | /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
| 132 |
|
---|
| 133 | install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
| 134 | install -v -m644 doc/gcrypt.html/* \
|
---|
| 135 | /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
---|
| 136 | install -v -m644 doc/gcrypt_nochunks.html \
|
---|
| 137 | /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
---|
| 138 | install -v -m644 doc/gcrypt.{txt,texi} \
|
---|
[acb57a0] | 139 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
[8250d8e] | 140 |
|
---|
[6d8f6dc] | 141 | <para>
|
---|
[a42c273] | 142 | If you built alternate formats of the documentation, install them by
|
---|
| 143 | issuing the following command as the
|
---|
| 144 | <systemitem class="username">root</systemitem> user:
|
---|
[6d8f6dc] | 145 | </para>
|
---|
[8250d8e] | 146 |
|
---|
[a42c273] | 147 | <screen role="root"
|
---|
| 148 | remap="doc"><userinput>install -v -m644 doc/gcrypt.{pdf,ps,dvi} \
|
---|
[8250d8e] | 149 | /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
---|
| 150 |
|
---|
| 151 | </sect2>
|
---|
| 152 |
|
---|
[1bac96e3] | 153 | <sect2 role="commands">
|
---|
| 154 | <title>Command Explanations</title>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | <option>--with-capabilities</option>: This option enables libcap2 support.
|
---|
[b1be08a] | 158 | Note that this breaks <xref linkend="cryptsetup"/>
|
---|
[1bac96e3] | 159 | </para>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
[8250d8e] | 163 | <sect2 role="content">
|
---|
| 164 | <title>Contents</title>
|
---|
| 165 |
|
---|
| 166 | <segmentedlist>
|
---|
[390e0d7] | 167 | <segtitle>Installed Programs</segtitle>
|
---|
[d284bee] | 168 | <segtitle>Installed Library</segtitle>
|
---|
[8250d8e] | 169 | <segtitle>Installed Directory</segtitle>
|
---|
| 170 |
|
---|
| 171 | <seglistitem>
|
---|
[6d8f6dc] | 172 | <seg>
|
---|
[9a19f1b] | 173 | dumpsexp, hmac256, libgcrypt-config, and mpicalc
|
---|
[6d8f6dc] | 174 | </seg>
|
---|
| 175 | <seg>
|
---|
| 176 | libgcrypt.so
|
---|
| 177 | </seg>
|
---|
| 178 | <seg>
|
---|
| 179 | /usr/share/doc/libgcrypt-&libgcrypt-version;
|
---|
| 180 | </seg>
|
---|
[8250d8e] | 181 | </seglistitem>
|
---|
| 182 | </segmentedlist>
|
---|
| 183 |
|
---|
| 184 | <variablelist>
|
---|
| 185 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 186 | <?dbfo list-presentation="list"?>
|
---|
| 187 | <?dbhtml list-presentation="table"?>
|
---|
| 188 |
|
---|
[e23d8fcb] | 189 | <varlistentry id="dumpsexp">
|
---|
| 190 | <term><command>dumpsexp</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>
|
---|
| 193 | is a debug tool for S-expressions.
|
---|
| 194 | </para>
|
---|
| 195 | <indexterm zone="libgcrypt dumpsexp">
|
---|
| 196 | <primary sortas="b-dumpsexp">dumpsexp</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
[39dd48b] | 201 | <varlistentry id="hmac256">
|
---|
| 202 | <term><command>hmac256</command></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>
|
---|
| 205 | is a standalone HMAC-SHA-256 implementation used to compute
|
---|
| 206 | an HMAC-SHA-256 authentication code.
|
---|
| 207 | </para>
|
---|
| 208 | <indexterm zone="libgcrypt hmac256">
|
---|
| 209 | <primary sortas="b-hmac256">hmac256</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
[e23d8fcb] | 214 | <varlistentry id="libgcrypt-config">
|
---|
| 215 | <term><command>libgcrypt-config</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>
|
---|
| 218 | determines the compile and linker flags that should be used to
|
---|
| 219 | compile and link programs that use <filename class="libraryfile">libgcrypt</filename>.
|
---|
| 220 | </para>
|
---|
| 221 | <indexterm zone="libgcrypt libgcrypt-config">
|
---|
| 222 | <primary sortas="b-libgcrypt-config">libgcrypt-config</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="mpicalc">
|
---|
| 228 | <term><command>mpicalc</command></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>
|
---|
| 231 | is a RPN (Reverse Polish Notation) calculator.
|
---|
| 232 | </para>
|
---|
| 233 | <indexterm zone="libgcrypt mpicalc">
|
---|
| 234 | <primary sortas="b-mpicalc">mpicalc</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
[8250d8e] | 239 | <varlistentry id="libgcrypt-lib">
|
---|
[6d8f6dc] | 240 | <term><filename class="libraryfile">libgcrypt.so</filename></term>
|
---|
[8250d8e] | 241 | <listitem>
|
---|
[6d8f6dc] | 242 | <para>
|
---|
| 243 | contains the cryptographic API functions.
|
---|
| 244 | </para>
|
---|
[8250d8e] | 245 | <indexterm zone="libgcrypt libgcrypt-lib">
|
---|
[6d8f6dc] | 246 | <primary sortas="c-libgcrypt">libgcrypt.so</primary>
|
---|
[8250d8e] | 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | </variablelist>
|
---|
| 252 |
|
---|
| 253 | </sect2>
|
---|
| 254 |
|
---|
| 255 | </sect1>
|
---|