aboutsummaryrefslogtreecommitdiff
path: root/pow/POW-0.7/README
blob: f418e2af31e5033c1de3fb7d5140b4851d940782 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
Python OpenSSL Wrappers - http://www.sourceforge.net/projects/pow
=================================================================

Instalation.
------------
To install POW you will need to have OpenSSL libraries installed on you 
computer.  I have been working on Suse8.0/Gentoo1.2 and with OpenSSL 0.9.6.

run the following command to compile and install the module:

   root@alecto:/tmp/pow > python setup.py install

Testing
-------
To test POW, run test.py in the testing directory.

Notes
=====

notBefore, notAfter, thisUpdate, nextUpdate, revocationDate
-----------------------------------------------------------
The objects are now all set using a UTCTime string instead of an integer.  
The reasons for this are as follows:
	the time functions are unreliable and building them into the 
	encodeer/decoder cuased some testing problems.

	it allows the use of Python's strptime function which incerases 
	portablity

	easier to work around problems with a specific version of 
	strptime/strftime.

PEM Encoded Public RSA Key Backward Incompatibity
-------------------------------------------------
Previous versions of POW have been incompatible with the openssl
application in regards to reading pem encoded public RSA keys.  To fix this
I changed the function for reading and writing public keys in pem format to
be compitable wiht openssl.  This virsion of POW will not be able to read
keys encoded in the old format.  It would be possible to get round this by
saving them in DER format using POW-0.6 and resaving them in PEM format
using POW-0.7

Patent Encumbered Ciphers
-------------------------
If I run the above command on my machine I get these warnings which indicate 
the linker could not find a symbol in the source code or any of the 
libraries the source is linked against.  

././pow.c: In function `evp_cipher_factory':
././pow.c:292: warning: implicit declaration of function `EVP_rc5_32_12_16_cbc'
././pow.c:292: warning: return makes pointer from integer without a cast
././pow.c:293: warning: implicit declaration of function `EVP_rc5_32_12_16_cfb'
././pow.c:293: warning: return makes pointer from integer without a cast
././pow.c:294: warning: implicit declaration of function `EVP_rc5_32_12_16_ecb'
././pow.c:294: warning: return makes pointer from integer without a cast
././pow.c:295: warning: implicit declaration of function `EVP_rc5_32_12_16_ofb'
././pow.c:295: warning: return makes pointer from integer without a cast

The OpenSSL package which comes with Suse 7.2 does not have support for the
RC5 cipher.  The configure script which comes with OpenSSL can create a
Makefile which builds libraries without any of the ciphers so it may be
necessary to build POW without support for some ciphers.  This can be done
by issuing an extra command to setup.py.  

The first command build_ext, builds C and C++ extensions and can be used to
add directories to search for include files and libraries. For a list of
these options run the command:

   root@alecto:/tmp/pow > python setup.py --help build_ext

To fix this problem we need to add an extra #define for the C preprocessor:

   root@alecto:/tmp/pow > python setup.py build_ext -D NO_RC5_32_12_16 install

Possible defines are:

   NO_DES
   NO_RC4
   NO_IDEA
   NO_RC2
   NO_BF
   NO_CAST5
   NO_RC5_32_12_16   

Extras
------
There are a couple of extra file included for completeness which I used to 
build the documentation.

POW.pdf  -- The module documentation produced direct from the doc strings.
doc.sh   -- This script sets up the enviroment and runs xdoc.py, jade and
            pdfjadetex.
doc.py   -- This script processes the doc strings to produce DocBook SGML.
doc.xsl  -- This is the style sheet used to turn the doc strings into one
            document.
POW.dsl  -- This is the DSSSL driver file used to drive OpenJade.

Version 1.72 of the DSSSL DocBook style sheets were used, along with Xalan
to perform the XSL transformation.  

Changes
-------
Hmac added 0.6.1
DER encoding and decoding routinse added 0.7
Many PKIX objects added 0.7
Routrines for manipulating extensions for:
   X509
   X509CRL
   X509Revoked
added 0.7
PEM encoding routine for public RSA keys changed 0.7

Acknowledgements
----------------
Thanks to Pete Gutmann who wrote the invaluable dumpasn1.
Thanks to Goetz Isenmann for patch for Windows.