Treat .txt as ASCII when reading files

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
new_tag_length(): Return offset for all read data

Make new_tag_length() return an offset with the amount of data read by
it instead of one less, i.e. it returns at least an offset of '1'.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
new_tag_length(): Add reference to RFC4880

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Support partial body length headers

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Python 2.6 compat: don't use keyword args to decode()

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Python 2.6 compat: unittest usage

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Python 2.6 compat: convert bytearray objects when necessary

Thanks to Avram Lubkin for the original patch to make this possible.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
packet: Added a modulus_bitlen field to indicate the size of the RSA key

I was hesitating to add this, because it's a calculation that is not
necessarily needed by the user of pgpdump. But then again, that is the
case for nearly every data computed by pgpdump. It'd probably be smart
to make all fields needing calculation a lazy Property() and update the
fields after calculation.
Added tests for modulus_bitlen
Version updates, copyright, etc.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Add recent testdata additions to MANIFEST

Signed-off-by: Dan McGee <dpmcgee@gmail.com>