[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 |
|
---|
[5eaf9af8] | 7 | <!ENTITY nettle-download-http "http://ftp.gnu.org/gnu/nettle/nettle-&nettle-version;.tar.gz">
|
---|
| 8 | <!ENTITY nettle-download-ftp "ftp://ftp.gnu.org/gnu/nettle/nettle-&nettle-version;.tar.gz">
|
---|
[2955093] | 9 | <!ENTITY nettle-md5sum "003d5147911317931dd453520eb234a5">
|
---|
[4890200] | 10 | <!ENTITY nettle-size "1.5 MB">
|
---|
[2955093] | 11 | <!ENTITY nettle-buildsize "94 MB">
|
---|
| 12 | <!ENTITY nettle-time "0.6 SBU">
|
---|
[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 |
|
---|
[4890200] | 37 | &lfs73_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">
|
---|
| 77 | <xref linkend="openssl"/>
|
---|
| 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 |
|
---|
[5eaf9af8] | 98 | <para>
|
---|
| 99 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 100 | </para>
|
---|
[0c6c35d] | 101 |
|
---|
| 102 | <screen role="root"><userinput>make install &&
|
---|
[2955093] | 103 | chmod -v 755 /usr/lib/libhogweed.so.2.5 /usr/lib/libnettle.so.4.7 &&
|
---|
[0c6c35d] | 104 | install -v -m755 -d /usr/share/doc/nettle-&nettle-version; &&
|
---|
| 105 | install -v -m644 nettle.html /usr/share/doc/nettle-&nettle-version;</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="content">
|
---|
| 110 | <title>Contents</title>
|
---|
| 111 |
|
---|
| 112 | <segmentedlist>
|
---|
| 113 | <segtitle>Installed Programs</segtitle>
|
---|
[5eaf9af8] | 114 | <segtitle>Installed Libraries</segtitle>
|
---|
| 115 | <segtitle>Installed Directory</segtitle>
|
---|
[0c6c35d] | 116 |
|
---|
| 117 | <seglistitem>
|
---|
[5eaf9af8] | 118 | <seg>
|
---|
| 119 | nettle-hash, nettle-lfib-stream, pkcs1-conv and sexp-conv
|
---|
| 120 | </seg>
|
---|
| 121 | <seg>
|
---|
| 122 | libhogweed.{so,a} and libnettle.{so,a}
|
---|
| 123 | </seg>
|
---|
| 124 | <seg>
|
---|
| 125 | /usr/include/nettle
|
---|
| 126 | </seg>
|
---|
[0c6c35d] | 127 | </seglistitem>
|
---|
| 128 | </segmentedlist>
|
---|
| 129 |
|
---|
| 130 | <variablelist>
|
---|
| 131 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 132 | <?dbfo list-presentation="list"?>
|
---|
| 133 | <?dbhtml list-presentation="table"?>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="nettle-hash">
|
---|
| 136 | <term><command>nettle-hash</command></term>
|
---|
| 137 | <listitem>
|
---|
[5eaf9af8] | 138 | <para>
|
---|
| 139 | calulates a hash value using a specified algorithm.
|
---|
| 140 | </para>
|
---|
[0c6c35d] | 141 | <indexterm zone="nettle nettle-hash">
|
---|
| 142 | <primary sortas="b-nettle-hash">nettle-hash</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="nettle-lfib-stream">
|
---|
| 148 | <term><command>nettle-lfib-stream</command></term>
|
---|
| 149 | <listitem>
|
---|
[5eaf9af8] | 150 | <para>
|
---|
| 151 | outputs a sequence of pseudorandom (non-cryptographic) bytes, using
|
---|
| 152 | Knuth's lagged fibonacci generator. The stream is useful for testing,
|
---|
[0d7900a] | 153 | but should not be used to generate cryptographic keys or anything
|
---|
[5eaf9af8] | 154 | else that needs real randomness.
|
---|
| 155 | </para>
|
---|
[0c6c35d] | 156 | <indexterm zone="nettle nettle-lfib-stream">
|
---|
| 157 | <primary sortas="b-nettle-lfib-stream">nettle-lfib-stream</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="pkcs1-conv">
|
---|
| 163 | <term><command>pkcs1-conv</command></term>
|
---|
| 164 | <listitem>
|
---|
[5eaf9af8] | 165 | <para>
|
---|
| 166 | converts private and public RSA keys from PKCS #1 format to
|
---|
| 167 | sexp format.
|
---|
| 168 | </para>
|
---|
[0c6c35d] | 169 | <indexterm zone="nettle pkcs1-conv">
|
---|
| 170 | <primary sortas="b-pkcs1-conv">pkcs1-conv</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="sexp-conv">
|
---|
| 176 | <term><command>sexp-conv</command></term>
|
---|
| 177 | <listitem>
|
---|
[5eaf9af8] | 178 | <para>
|
---|
| 179 | converts an s-expression to a different encoding.
|
---|
| 180 | </para>
|
---|
[0c6c35d] | 181 | <indexterm zone="nettle sexp-conv">
|
---|
| 182 | <primary sortas="b-sexp-conv">sexp-conv</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | </variablelist>
|
---|
| 188 |
|
---|
| 189 | </sect2>
|
---|
| 190 |
|
---|
| 191 | </sect1>
|
---|