[0c6c35d] | 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 |
|
---|
[b9abcb5] | 7 | <!ENTITY nettle-download-http "https://ftp.gnu.org/gnu/nettle/nettle-&nettle-version;.tar.gz">
|
---|
[5eaf9af8] | 8 | <!ENTITY nettle-download-ftp "ftp://ftp.gnu.org/gnu/nettle/nettle-&nettle-version;.tar.gz">
|
---|
[b9abcb5] | 9 | <!ENTITY nettle-md5sum "b40fa88dc32f37a182b6b42092ebb144">
|
---|
| 10 | <!ENTITY nettle-size "1.8 MB">
|
---|
| 11 | <!ENTITY nettle-buildsize "60 MB (additional 88 MB for the tests)">
|
---|
| 12 | <!ENTITY nettle-time "0.2 SBU (additional 0.1 SBU for the tests)">
|
---|
[0c6c35d] | 13 | ]>
|
---|
| 14 |
|
---|
[5eaf9af8] | 15 | <sect1 id="nettle" xreflabel="Nettle-&nettle-version;">
|
---|
[0c6c35d] | 16 | <?dbhtml filename="nettle.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[5eaf9af8] | 23 | <title>Nettle-&nettle-version;</title>
|
---|
[0c6c35d] | 24 |
|
---|
| 25 | <indexterm zone="nettle">
|
---|
[5eaf9af8] | 26 | <primary sortas="a-Nettle">Nettle</primary>
|
---|
[0c6c35d] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[5eaf9af8] | 30 | <title>Introduction to Nettle</title>
|
---|
[0c6c35d] | 31 |
|
---|
[5eaf9af8] | 32 | <para>
|
---|
| 33 | The <application>Nettle</application> package contains the low-level
|
---|
| 34 | cryptographic library that is designed to fit easily in many contexts.
|
---|
[0c6c35d] | 35 | </para>
|
---|
| 36 |
|
---|
[1b7e027d] | 37 | &lfs77_checked; &gcc5_checked;
|
---|
[0c6c35d] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[5eaf9af8] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&nettle-download-http;"/>
|
---|
| 44 | </para>
|
---|
[0c6c35d] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[5eaf9af8] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&nettle-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[0c6c35d] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[5eaf9af8] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &nettle-md5sum;
|
---|
| 54 | </para>
|
---|
[0c6c35d] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[5eaf9af8] | 57 | <para>
|
---|
| 58 | Download size: &nettle-size;
|
---|
| 59 | </para>
|
---|
[0c6c35d] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[5eaf9af8] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &nettle-buildsize;
|
---|
| 64 | </para>
|
---|
[0c6c35d] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[5eaf9af8] | 67 | <para>
|
---|
| 68 | Estimated build time: &nettle-time;
|
---|
| 69 | </para>
|
---|
[0c6c35d] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[4890200] | 73 | <bridgehead renderas="sect3">Nettle Dependencies</bridgehead>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 76 | <para role="optional">
|
---|
[ecb79c8] | 77 | <xref linkend="openssl"/> (for examples)
|
---|
[4890200] | 78 | </para>
|
---|
| 79 |
|
---|
[0c6c35d] | 80 | <para condition="html" role="usernotes">User Notes:
|
---|
[5eaf9af8] | 81 | <ulink url="&blfs-wiki;/nettle"/>
|
---|
| 82 | </para>
|
---|
[0c6c35d] | 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2 role="installation">
|
---|
[5eaf9af8] | 86 | <title>Installation of Nettle</title>
|
---|
[0c6c35d] | 87 |
|
---|
[5eaf9af8] | 88 | <para>Install <application>Nettle</application> by running the following
|
---|
[0c6c35d] | 89 | commands:</para>
|
---|
| 90 |
|
---|
| 91 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 92 | make</userinput></screen>
|
---|
| 93 |
|
---|
[5eaf9af8] | 94 | <para>
|
---|
| 95 | To test the results, issue: <command>make check</command>.
|
---|
| 96 | </para>
|
---|
[0d7900a] | 97 |
|
---|
[105034a] | 98 | <para>
|
---|
| 99 | If you want to disable installing the static library, use this sed:
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
[b9abcb5] | 102 | <screen><userinput>sed -i '/^install-here/ s/ install-static//' Makefile</userinput></screen>
|
---|
[105034a] | 103 |
|
---|
[5eaf9af8] | 104 | <para>
|
---|
| 105 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 106 | </para>
|
---|
[0c6c35d] | 107 |
|
---|
| 108 | <screen role="root"><userinput>make install &&
|
---|
[fd8f285] | 109 | chmod -v 755 /usr/lib/lib{hogweed,nettle}.so &&
|
---|
| 110 | install -v -m755 -d /usr/share/doc/nettle-&nettle-version; &&
|
---|
[0c6c35d] | 111 | install -v -m644 nettle.html /usr/share/doc/nettle-&nettle-version;</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="content">
|
---|
| 116 | <title>Contents</title>
|
---|
| 117 |
|
---|
| 118 | <segmentedlist>
|
---|
| 119 | <segtitle>Installed Programs</segtitle>
|
---|
[5eaf9af8] | 120 | <segtitle>Installed Libraries</segtitle>
|
---|
| 121 | <segtitle>Installed Directory</segtitle>
|
---|
[0c6c35d] | 122 |
|
---|
| 123 | <seglistitem>
|
---|
[5eaf9af8] | 124 | <seg>
|
---|
[b9abcb5] | 125 | nettle-hash, nettle-lfib-stream, nettle-pbkdf2,
|
---|
| 126 | pkcs1-conv and sexp-conv
|
---|
[5eaf9af8] | 127 | </seg>
|
---|
| 128 | <seg>
|
---|
| 129 | libhogweed.{so,a} and libnettle.{so,a}
|
---|
| 130 | </seg>
|
---|
| 131 | <seg>
|
---|
[b9abcb5] | 132 | /usr/include/nettle and /usr/share/doc/nettle-&nettle-version;
|
---|
[5eaf9af8] | 133 | </seg>
|
---|
[0c6c35d] | 134 | </seglistitem>
|
---|
| 135 | </segmentedlist>
|
---|
| 136 |
|
---|
| 137 | <variablelist>
|
---|
| 138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 139 | <?dbfo list-presentation="list"?>
|
---|
| 140 | <?dbhtml list-presentation="table"?>
|
---|
| 141 |
|
---|
| 142 | <varlistentry id="nettle-hash">
|
---|
| 143 | <term><command>nettle-hash</command></term>
|
---|
| 144 | <listitem>
|
---|
[5eaf9af8] | 145 | <para>
|
---|
| 146 | calulates a hash value using a specified algorithm.
|
---|
| 147 | </para>
|
---|
[0c6c35d] | 148 | <indexterm zone="nettle nettle-hash">
|
---|
| 149 | <primary sortas="b-nettle-hash">nettle-hash</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="nettle-lfib-stream">
|
---|
| 155 | <term><command>nettle-lfib-stream</command></term>
|
---|
| 156 | <listitem>
|
---|
[5eaf9af8] | 157 | <para>
|
---|
[b9abcb5] | 158 | outputs a sequence of pseudorandom (non-cryptographic) bytes,
|
---|
| 159 | using Knuth's lagged fibonacci generator. The stream is useful for
|
---|
| 160 | testing, but should not be used to generate cryptographic keys or
|
---|
| 161 | anything else that needs real randomness.
|
---|
[5eaf9af8] | 162 | </para>
|
---|
[0c6c35d] | 163 | <indexterm zone="nettle nettle-lfib-stream">
|
---|
| 164 | <primary sortas="b-nettle-lfib-stream">nettle-lfib-stream</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
[b9abcb5] | 169 | <varlistentry id="nettle-pbkdf2">
|
---|
| 170 | <term><command>nettle-pbkdf2</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>
|
---|
| 173 | password-based key derivation function that take as input a
|
---|
| 174 | password or passphrase and typically strengthen it and protect
|
---|
| 175 | against certain pre-computation attacks by using salting and
|
---|
| 176 | expensive computation.
|
---|
| 177 | </para>
|
---|
| 178 | <indexterm zone="nettle nettle-pbkdf2">
|
---|
| 179 | <primary sortas="b-nettle-pbkdf2">nettle-pbkdf2</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
[0c6c35d] | 184 | <varlistentry id="pkcs1-conv">
|
---|
| 185 | <term><command>pkcs1-conv</command></term>
|
---|
| 186 | <listitem>
|
---|
[5eaf9af8] | 187 | <para>
|
---|
| 188 | converts private and public RSA keys from PKCS #1 format to
|
---|
| 189 | sexp format.
|
---|
| 190 | </para>
|
---|
[0c6c35d] | 191 | <indexterm zone="nettle pkcs1-conv">
|
---|
| 192 | <primary sortas="b-pkcs1-conv">pkcs1-conv</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="sexp-conv">
|
---|
| 198 | <term><command>sexp-conv</command></term>
|
---|
| 199 | <listitem>
|
---|
[5eaf9af8] | 200 | <para>
|
---|
| 201 | converts an s-expression to a different encoding.
|
---|
| 202 | </para>
|
---|
[0c6c35d] | 203 | <indexterm zone="nettle sexp-conv">
|
---|
| 204 | <primary sortas="b-sexp-conv">sexp-conv</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
| 209 | </variablelist>
|
---|
| 210 |
|
---|
| 211 | </sect2>
|
---|
| 212 |
|
---|
| 213 | </sect1>
|
---|