[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 |
|
---|
| 7 | <!ENTITY nettle-download-http "http://www.lysator.liu.se/~nisse/archive/nettle-&nettle-version;.tar.gz">
|
---|
| 8 | <!ENTITY nettle-download-ftp "ftp://ftp.lysator.liu.se/pub/security/lsh/nettle-&nettle-version;.tar.gz">
|
---|
| 9 | <!ENTITY nettle-md5sum "450be8c4886d46c09f49f568ad6fa013">
|
---|
| 10 | <!ENTITY nettle-size "1.0 MB">
|
---|
| 11 | <!ENTITY nettle-buildsize "121 MB">
|
---|
| 12 | <!ENTITY nettle-time "0.2 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="nettle" xreflabel="nettle-&nettle-version;">
|
---|
| 16 | <?dbhtml filename="nettle.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>nettle-&nettle-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="nettle">
|
---|
| 26 | <primary sortas="a-nettle">nettle</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to nettle</title>
|
---|
| 31 |
|
---|
[bf0fcb2] | 32 | <para>The <application>nettle</application> package is a low-level
|
---|
[0c6c35d] | 33 | cryptographic library that is designed to fit easily in many contexts.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[55b07cb] | 36 | &lfs71_checked;
|
---|
[0c6c35d] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&nettle-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&nettle-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &nettle-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &nettle-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &nettle-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &nettle-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <para condition="html" role="usernotes">User Notes:
|
---|
| 61 | <ulink url="&blfs-wiki;/nettle"/></para>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | <sect2 role="installation">
|
---|
| 66 | <title>Installation of nettle</title>
|
---|
| 67 |
|
---|
| 68 | <para>Install <application>nettle</application> by running the following
|
---|
| 69 | commands:</para>
|
---|
| 70 |
|
---|
| 71 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 72 | make</userinput></screen>
|
---|
| 73 |
|
---|
| 74 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 75 |
|
---|
| 76 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 77 |
|
---|
| 78 | <screen role="root"><userinput>make install &&
|
---|
| 79 | install -v -m755 -d /usr/share/doc/nettle-&nettle-version; &&
|
---|
| 80 | install -v -m644 nettle.html /usr/share/doc/nettle-&nettle-version;</userinput></screen>
|
---|
| 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
[f37eef8b] | 84 | <sect2 role="commands">
|
---|
| 85 | <title>Command Explanations</title>
|
---|
| 86 |
|
---|
| 87 | <para><option>--enable-shared</option>: This switch will ensure
|
---|
| 88 | that shared, as well as static, libraries will be built. If you
|
---|
| 89 | have linked the packages which use these libraries
|
---|
| 90 | (<application>gnutls</application> and
|
---|
| 91 | <application>glib-networking</application>, perhaps others) to the
|
---|
| 92 | shared libraries, and ever have to rebuild
|
---|
| 93 | <application>libnettle</application> to fix a vulnerability, you
|
---|
| 94 | will not have to recompile those other applications.</para>
|
---|
| 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
[0c6c35d] | 98 | <sect2 role="content">
|
---|
| 99 | <title>Contents</title>
|
---|
| 100 |
|
---|
| 101 | <segmentedlist>
|
---|
| 102 | <segtitle>Installed Programs</segtitle>
|
---|
| 103 | <segtitle>Installed Library</segtitle>
|
---|
| 104 | <segtitle>Installed Directories</segtitle>
|
---|
| 105 |
|
---|
| 106 | <seglistitem>
|
---|
| 107 | <seg>nettle-hash, nettle-lfib-stream, pkcs1-conv, and sexp-conv</seg>
|
---|
[f37eef8b] | 108 | <seg>libhogweed.a and libnettle.a : optionally, libhogweed.so and
|
---|
| 109 | libnettle.so</seg>
|
---|
[0c6c35d] | 110 | <seg>/usr/include/nettle</seg>
|
---|
| 111 | </seglistitem>
|
---|
| 112 | </segmentedlist>
|
---|
| 113 |
|
---|
| 114 | <variablelist>
|
---|
| 115 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 116 | <?dbfo list-presentation="list"?>
|
---|
| 117 | <?dbhtml list-presentation="table"?>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="nettle-hash">
|
---|
| 120 | <term><command>nettle-hash</command></term>
|
---|
| 121 | <listitem>
|
---|
| 122 | <para>calulates a hash value using a specified algorithm.</para>
|
---|
| 123 | <indexterm zone="nettle nettle-hash">
|
---|
| 124 | <primary sortas="b-nettle-hash">nettle-hash</primary>
|
---|
| 125 | </indexterm>
|
---|
| 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="nettle-lfib-stream">
|
---|
| 130 | <term><command>nettle-lfib-stream</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>outputs a sequence of pseudorandom (non-cryptographic) bytes,
|
---|
| 133 | using Knuth's lagged fibonacci generator. The stream is useful for
|
---|
| 134 | testing, but should not be used to generate cryptographic keys or anything
|
---|
| 135 | else that needs real randomness.</para>
|
---|
| 136 | <indexterm zone="nettle nettle-lfib-stream">
|
---|
| 137 | <primary sortas="b-nettle-lfib-stream">nettle-lfib-stream</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 | </listitem>
|
---|
| 140 | </varlistentry>
|
---|
| 141 |
|
---|
| 142 | <varlistentry id="pkcs1-conv">
|
---|
| 143 | <term><command>pkcs1-conv</command></term>
|
---|
| 144 | <listitem>
|
---|
| 145 | <para>converts private and public RSA keys from PKCS #1 format to
|
---|
| 146 | sexp format.</para>
|
---|
| 147 | <indexterm zone="nettle pkcs1-conv">
|
---|
| 148 | <primary sortas="b-pkcs1-conv">pkcs1-conv</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
| 153 | <varlistentry id="sexp-conv">
|
---|
| 154 | <term><command>sexp-conv</command></term>
|
---|
| 155 | <listitem>
|
---|
| 156 | <para>converts an s-expression to a different encoding.</para>
|
---|
| 157 | <indexterm zone="nettle sexp-conv">
|
---|
| 158 | <primary sortas="b-sexp-conv">sexp-conv</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
| 163 | </variablelist>
|
---|
| 164 |
|
---|
| 165 | </sect2>
|
---|
| 166 |
|
---|
| 167 | </sect1>
|
---|