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