2007-08-17 01:55:14 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY libgcrypt-download-http "&gnupg-http;/libgcrypt/libgcrypt-&libgcrypt-version;.tar.bz2">
|
2019-04-04 02:41:52 +08:00
|
|
|
<!ENTITY libgcrypt-download-ftp "&gnupg-ftp;/libgcrypt/libgcrypt-&libgcrypt-version;.tar.bz2">
|
2017-11-25 18:02:34 +08:00
|
|
|
<!ENTITY libgcrypt-download-ftp " ">
|
2020-07-07 20:42:50 +08:00
|
|
|
<!ENTITY libgcrypt-md5sum "e9dfc1e789a2a42f36917c543fcd7862">
|
2018-06-16 05:36:01 +08:00
|
|
|
<!ENTITY libgcrypt-size "2.9 MB">
|
2020-07-07 20:42:50 +08:00
|
|
|
<!ENTITY libgcrypt-buildsize "48 MB (with tests; add 8 MB for documentation)">
|
|
|
|
<!ENTITY libgcrypt-time "0.3 SBU (with documentation; add 0.4 SBU for tests)">
|
2007-08-17 01:55:14 +08:00
|
|
|
]>
|
|
|
|
|
2011-11-10 08:14:36 +08:00
|
|
|
<sect1 id="libgcrypt" xreflabel="libgcrypt-&libgcrypt-version;">
|
2007-08-17 01:55:14 +08:00
|
|
|
<?dbhtml filename="libgcrypt.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2011-11-10 08:14:36 +08:00
|
|
|
<title>libgcrypt-&libgcrypt-version;</title>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
|
|
|
<indexterm zone="libgcrypt">
|
2011-11-10 08:14:36 +08:00
|
|
|
<primary sortas="a-libgcrypt">libgcrypt</primary>
|
2007-08-17 01:55:14 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2011-11-10 08:14:36 +08:00
|
|
|
<title>Introduction to libgcrypt</title>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
The <application>libgcrypt</application> package contains a general
|
|
|
|
purpose crypto library based on the code used in
|
|
|
|
<application>GnuPG</application>. The library provides a high level
|
|
|
|
interface to cryptographic building blocks using an extendable and flexible
|
|
|
|
API.
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2020-08-17 12:26:53 +08:00
|
|
|
&lfs10_checked;
|
2009-07-27 03:03:13 +08:00
|
|
|
|
2007-08-17 01:55:14 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&libgcrypt-download-http;"/>
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&libgcrypt-download-ftp;"/>
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &libgcrypt-md5sum;
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Download size: &libgcrypt-size;
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &libgcrypt-buildsize;
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &libgcrypt-time;
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2011-11-10 08:14:36 +08:00
|
|
|
<bridgehead renderas="sect3">libgcrypt Dependencies</bridgehead>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref linkend="libgpg-error"/>
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2009-02-23 12:33:20 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para role="optional">
|
2017-02-23 08:35:47 +08:00
|
|
|
<!-- <xref linkend="libcap-pam"/> -->
|
|
|
|
<xref linkend="pth"/> and
|
2015-01-12 06:40:54 +08:00
|
|
|
<xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
2013-03-23 08:09:51 +08:00
|
|
|
</para>
|
2009-02-23 12:33:20 +08:00
|
|
|
|
2007-08-17 01:55:14 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2013-03-23 08:09:51 +08:00
|
|
|
<ulink url="&blfs-wiki;/libgcrypt"/>
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2011-11-10 08:14:36 +08:00
|
|
|
<title>Installation of libgcrypt</title>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Install <application>libgcrypt</application> by running the
|
|
|
|
following commands:
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2013-12-18 20:55:46 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
2019-05-21 20:39:37 +08:00
|
|
|
make &&
|
|
|
|
|
|
|
|
make -C doc html &&
|
|
|
|
makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &&
|
|
|
|
makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi</userinput></screen>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
2019-05-21 20:39:37 +08:00
|
|
|
The above commands build the documentation in html and plaintext
|
|
|
|
formats. If you wish to build alternate formats of the documentation, you
|
|
|
|
need <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>). Issue
|
|
|
|
the following command:
|
2013-03-23 08:09:51 +08:00
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2019-05-21 20:39:37 +08:00
|
|
|
<screen remap="doc"><userinput>make -C doc pdf ps</userinput></screen>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make check</command>.
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install &&
|
2013-03-23 08:09:51 +08:00
|
|
|
install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
2010-11-06 06:59:30 +08:00
|
|
|
install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
|
2019-05-21 20:39:37 +08:00
|
|
|
/usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
|
|
|
|
|
|
|
install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
|
|
|
install -v -m644 doc/gcrypt.html/* \
|
|
|
|
/usr/share/doc/libgcrypt-&libgcrypt-version;/html &&
|
|
|
|
install -v -m644 doc/gcrypt_nochunks.html \
|
|
|
|
/usr/share/doc/libgcrypt-&libgcrypt-version; &&
|
|
|
|
install -v -m644 doc/gcrypt.{txt,texi} \
|
2010-11-06 06:59:30 +08:00
|
|
|
/usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
2019-05-21 20:39:37 +08:00
|
|
|
If you built alternate formats of the documentation, install them by
|
|
|
|
issuing the following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
2013-03-23 08:09:51 +08:00
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
|
2019-05-21 20:39:37 +08:00
|
|
|
<screen role="root"
|
|
|
|
remap="doc"><userinput>install -v -m644 doc/gcrypt.{pdf,ps,dvi} \
|
2007-08-17 01:55:14 +08:00
|
|
|
/usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2013-07-23 00:10:34 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>--with-capabilities</option>: This option enables libcap2 support.
|
2018-12-01 06:22:17 +08:00
|
|
|
Note that this breaks <xref linkend="cryptsetup"/>
|
2013-07-23 00:10:34 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2007-08-17 01:55:14 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2009-02-23 12:33:20 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
2009-07-27 06:07:09 +08:00
|
|
|
<segtitle>Installed Library</segtitle>
|
2007-08-17 01:55:14 +08:00
|
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<seg>
|
2013-12-18 20:55:46 +08:00
|
|
|
dumpsexp, hmac256, libgcrypt-config, and mpicalc
|
2013-03-23 08:09:51 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libgcrypt.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/share/doc/libgcrypt-&libgcrypt-version;
|
|
|
|
</seg>
|
2007-08-17 01:55:14 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2015-05-30 05:14:06 +08:00
|
|
|
<varlistentry id="dumpsexp">
|
|
|
|
<term><command>dumpsexp</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a debug tool for S-expressions.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libgcrypt dumpsexp">
|
|
|
|
<primary sortas="b-dumpsexp">dumpsexp</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-03-16 05:51:07 +08:00
|
|
|
<varlistentry id="hmac256">
|
|
|
|
<term><command>hmac256</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a standalone HMAC-SHA-256 implementation used to compute
|
|
|
|
an HMAC-SHA-256 authentication code.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libgcrypt hmac256">
|
|
|
|
<primary sortas="b-hmac256">hmac256</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-05-30 05:14:06 +08:00
|
|
|
<varlistentry id="libgcrypt-config">
|
|
|
|
<term><command>libgcrypt-config</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
determines the compile and linker flags that should be used to
|
|
|
|
compile and link programs that use <filename class="libraryfile">libgcrypt</filename>.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libgcrypt libgcrypt-config">
|
|
|
|
<primary sortas="b-libgcrypt-config">libgcrypt-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="mpicalc">
|
|
|
|
<term><command>mpicalc</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a RPN (Reverse Polish Notation) calculator.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libgcrypt mpicalc">
|
|
|
|
<primary sortas="b-mpicalc">mpicalc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-08-17 01:55:14 +08:00
|
|
|
<varlistentry id="libgcrypt-lib">
|
2013-03-23 08:09:51 +08:00
|
|
|
<term><filename class="libraryfile">libgcrypt.so</filename></term>
|
2007-08-17 01:55:14 +08:00
|
|
|
<listitem>
|
2013-03-23 08:09:51 +08:00
|
|
|
<para>
|
|
|
|
contains the cryptographic API functions.
|
|
|
|
</para>
|
2007-08-17 01:55:14 +08:00
|
|
|
<indexterm zone="libgcrypt libgcrypt-lib">
|
2013-03-23 08:09:51 +08:00
|
|
|
<primary sortas="c-libgcrypt">libgcrypt.so</primary>
|
2007-08-17 01:55:14 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|