[82eddd4] | 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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY pycrypto-download-http "&pymodules-dl;/p/pycrypto/pycrypto-&pycrypto-version;.tar.gz">
|
---|
[82eddd4] | 8 | <!ENTITY pycrypto-download-ftp " ">
|
---|
| 9 | <!ENTITY pycrypto-md5sum "55a61a054aa66812daf5161a0d5d7eda">
|
---|
| 10 | <!ENTITY pycrypto-size "440 KB">
|
---|
| 11 | <!ENTITY pycrypto-buildsize "14 MB">
|
---|
| 12 | <!ENTITY pycrypto-time "0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin pycrypto -->
|
---|
[ec50b6f] | 16 | <sect2 id="pycrypto" xreflabel="PyCrypto-&pycrypto-version;">
|
---|
[82eddd4] | 17 |
|
---|
| 18 | <title>PyCrypto-&pycrypto-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="pycrypto">
|
---|
| 21 | <primary sortas="a-pycrypto">pycrypto</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to the PyCrypto Module</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | <application>PyCrypto</application> is a collection of both secure hash
|
---|
| 29 | functions (such as SHA256 and RIPEMD160), and various encryption
|
---|
| 30 | algorithms (AES, DES, RSA, ElGamal, etc.).
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[15f411e] | 33 | &lfs90_checked;
|
---|
[82eddd4] | 34 |
|
---|
| 35 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&pycrypto-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&pycrypto-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &pycrypto-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &pycrypto-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &pycrypto-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &pycrypto-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect4">PyCrypto Dependencies</bridgehead>
|
---|
| 70 |
|
---|
[f6ee672] | 71 | <bridgehead renderas="sect5">Recommended</bridgehead>
|
---|
| 72 | <para role="recommended">
|
---|
[60ddbaf] | 73 | <xref linkend="python2"/>
|
---|
[82eddd4] | 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <para condition="html" role="usernotes">
|
---|
| 77 | User Notes: <ulink url="&blfs-wiki;/pycrypto"/>
|
---|
| 78 | </para>
|
---|
| 79 | </sect3>
|
---|
| 80 |
|
---|
| 81 | <sect3 role="installation">
|
---|
| 82 | <title>Installation of PyCrypto</title>
|
---|
| 83 |
|
---|
| 84 | <note>
|
---|
| 85 | <para>
|
---|
| 86 | Both <application>Python 2</application> and
|
---|
| 87 | <application>Python 3</application> modules can
|
---|
| 88 | be built and installed without any conflicts.
|
---|
| 89 | </para>
|
---|
| 90 | </note>
|
---|
| 91 |
|
---|
| 92 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
| 93 |
|
---|
| 94 | <para>
|
---|
[77deb22e] | 95 | To build the <application>Python 2</application> and
|
---|
| 96 | <application>Python 3</application> modules, run the following commands:
|
---|
[82eddd4] | 97 | </para>
|
---|
| 98 |
|
---|
[77deb22e] | 99 | <screen><userinput>python2 setup.py build &&
|
---|
| 100 | python3 setup.py build</userinput></screen>
|
---|
[82eddd4] | 101 |
|
---|
| 102 | <para>
|
---|
[77deb22e] | 103 | To install both modules, run the following commands as the
|
---|
[82eddd4] | 104 | <systemitem class="username">root</systemitem> user:
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
[77deb22e] | 107 | <screen role="root"><userinput>python2 setup.py install --optimize=1 &&
|
---|
| 108 | python3 setup.py install --optimize=1</userinput></screen>
|
---|
[82eddd4] | 109 |
|
---|
| 110 | </sect3>
|
---|
| 111 |
|
---|
| 112 | <sect3 role="content">
|
---|
| 113 | <title>Contents</title>
|
---|
| 114 |
|
---|
| 115 | <segmentedlist>
|
---|
| 116 | <segtitle>Installed Programs</segtitle>
|
---|
| 117 | <segtitle>Installed Libraries</segtitle>
|
---|
| 118 | <segtitle>Installed Directories</segtitle>
|
---|
| 119 |
|
---|
| 120 | <seglistitem>
|
---|
| 121 | <seg>
|
---|
| 122 | None
|
---|
| 123 | </seg>
|
---|
| 124 | <seg>
|
---|
[77deb22e] | 125 | pycrypto-&pycrypto-version;-py&python2-majorver;.egg-info and/or
|
---|
| 126 | pycrypto-&pycrypto-version;-py&python3-majorver;.egg-info
|
---|
[82eddd4] | 127 | </seg>
|
---|
| 128 | <seg>
|
---|
| 129 | /usr/lib/python&python2-majorver;/site-packages/Crypto and/or
|
---|
| 130 | /usr/lib/python&python3-majorver;/site-packages/Crypto
|
---|
| 131 | </seg>
|
---|
| 132 | </seglistitem>
|
---|
| 133 | </segmentedlist>
|
---|
| 134 |
|
---|
| 135 | </sect3>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 | <!--End pycrypto -->
|
---|