glfs/postlfs/security/nettle.xml
Bruce Dubbs b9874725d3 Many tags.
Mostly Programming and Xorg sections and dependencies.
2024-02-15 19:26:48 -06:00

211 lines
6.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!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;
<!ENTITY nettle-download-http "&gnu-http;/nettle/nettle-&nettle-version;.tar.gz">
<!ENTITY nettle-download-ftp " ">
<!ENTITY nettle-md5sum "29fcd2dec6bf5b48e5e3ffb3cbc4779e">
<!ENTITY nettle-size "2.3 MB">
<!ENTITY nettle-buildsize "95 MB (with tests)">
<!ENTITY nettle-time "0.2 SBU (with tests; both using parallelism=4)">
]>
<sect1 id="nettle" xreflabel="Nettle-&nettle-version;">
<?dbhtml filename="nettle.html"?>
<title>Nettle-&nettle-version;</title>
<indexterm zone="nettle">
<primary sortas="a-Nettle">Nettle</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Nettle</title>
<para>
The <application>Nettle</application> package contains a low-level
cryptographic library that is designed to fit easily in many contexts.
</para>
&lfs121_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&nettle-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&nettle-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &nettle-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &nettle-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &nettle-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &nettle-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Nettle Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="valgrind"/> (optional for the tests)
</para>
</sect2>
<sect2 role="installation">
<title>Installation of Nettle</title>
<para>
Install <application>Nettle</application> by running the following
commands:
</para>
<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>make check</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install &amp;&amp;
chmod -v 755 /usr/lib/lib{hogweed,nettle}.so &amp;&amp;
install -v -m755 -d /usr/share/doc/nettle-&nettle-version; &amp;&amp;
install -v -m644 nettle.{html,pdf} /usr/share/doc/nettle-&nettle-version;</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
nettle-hash, nettle-lfib-stream, nettle-pbkdf2,
pkcs1-conv and sexp-conv
</seg>
<seg>
libhogweed.so and libnettle.so
</seg>
<seg>
/usr/include/nettle and /usr/share/doc/nettle-&nettle-version;
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="nettle-hash">
<term><command>nettle-hash</command></term>
<listitem>
<para>
calculates a hash value using a specified algorithm
</para>
<indexterm zone="nettle nettle-hash">
<primary sortas="b-nettle-hash">nettle-hash</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="nettle-lfib-stream">
<term><command>nettle-lfib-stream</command></term>
<listitem>
<para>
outputs a sequence of pseudorandom (non-cryptographic) bytes,
using Knuth's lagged fibonacci generator. The stream is useful for
testing, but should not be used to generate cryptographic keys or
anything else that needs real randomness
</para>
<indexterm zone="nettle nettle-lfib-stream">
<primary sortas="b-nettle-lfib-stream">nettle-lfib-stream</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="nettle-pbkdf2">
<term><command>nettle-pbkdf2</command></term>
<listitem>
<para>
is a password-based key derivation function that takes a password
or a passphrase as input and returns a strengthened password,
which is protected against pre-computation attacks by using
salting and other expensive computations.
</para>
<indexterm zone="nettle nettle-pbkdf2">
<primary sortas="b-nettle-pbkdf2">nettle-pbkdf2</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="pkcs1-conv">
<term><command>pkcs1-conv</command></term>
<listitem>
<para>
converts private and public RSA keys from PKCS #1 format to
sexp format
</para>
<indexterm zone="nettle pkcs1-conv">
<primary sortas="b-pkcs1-conv">pkcs1-conv</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="sexp-conv">
<term><command>sexp-conv</command></term>
<listitem>
<para>
converts an s-expression to a different encoding
</para>
<indexterm zone="nettle sexp-conv">
<primary sortas="b-sexp-conv">sexp-conv</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>