Commit Graph

27 Commits

Author SHA1 Message Date
Michael Greene
851f645cdd 100% test coverage - closes #115 2014-09-30 18:38:10 -07:00
Michael Greene
e52d130704 more coverage 2014-09-30 14:24:52 -07:00
Michael Greene
3d591d287b coverage changes 2014-09-30 11:26:35 -07:00
Michael Greene
6d8c6c7171 PEP 8 2014-09-29 15:43:23 -07:00
Michael Greene
d00010ef04 primary/subkey binding now fully works - closes #104; removed FileLoader class; renamed Exportable to Armorable; removed requests from requirements.txt; updated README.rst - closes #127; progress 2014-09-29 13:36:52 -07:00
Michael Greene
ee261fe8be initial pass of direct-key signing (0x1f) plus tests - #104 2014-09-26 16:56:25 -07:00
Michael Greene
38a4f9f8b1 rewrote PGPKey.parse; some other API changes; some cleanups; and a Python 2.x compatibility fix 2014-09-25 20:03:35 -07:00
Michael Greene
61bf253a0f Python 2.x compatibility fixes 2014-09-25 11:46:28 -07:00
Michael Greene
919c6357b2 replaced TypedProperty with sdproperty; replaced ClassProperty with classproperty 2014-09-24 15:55:42 -07:00
Michael Greene
9f16d3f98a can create new user ids for existing keys - #119
can sign user ids (directly) - #104
2014-09-15 18:22:59 -07:00
Michael Greene
61120029c2 Some minor code enhancements - mostly replaced list comprehensions with pure generators where possible; cleaned up Fingerprint.__new__ chunking somewhat 2014-09-15 13:19:37 -07:00
Michael Greene
6ce08fbcdb Now truly verifies embedded signatures - notably, type Primary Key Binding. Closes #99 2014-09-12 14:03:04 -07:00
Michael Greene
5265e32ffe header length updating first pass - closes #93 2014-09-03 14:15:45 -07:00
Michael Greene
8542e63652 leveraging six a bit better now; also, py27 should not be broken now 2014-08-22 20:03:11 -07:00
Michael Greene
9ea1d14ed0 updated tox pep8 to use a flake8 config section; PEP8 fixes; added one-pass signed messages (closes #103) 2014-08-22 14:32:43 -07:00
Michael Greene
95deebdc0d PGPKey is alive again! - #80
- Filled out EmbeddedSignature finally
 - Added EmbeddedSignatureHeader since Embeded Signatures don't have a tag or a length, just a version
 - Fixed a logic error in SubPackets.__contains__
 - Added tag class bases to *Key classes
 - Added a PacketTag enum
 - Shortened the names of the certification signature types in SignatureType
 - Expanded PGPSignature.prefs into separate methods
 - Added unit tests for PGPKey (for an rsa public key and an rsa private key)
 - This also brings us one step away from completing #76 and #71
2014-08-13 20:02:21 -07:00
Michael Greene
08e3f7a051 PGPSignature is alive again! - #80
- Two property methods are not yet because I don't have test data for them yet
 - Added __sig__ method to Signature(MPIs). DSASignature.__sig__ outputs in (hopefully) correct ASN.1 DER format
 - Removed keyfields.py finally
 - Changed expiration subpacket payloads to timedelta objects (as they should have been already)
 - Changed SignatureV4.hleft to SignatureV4.hash2 for consistency
 - Added unit test harness for basic loading of PGP blocks
 - Added unit test harness for loading/testing signature blocks
 - Added unit test stub for (eventual) loading/testing key blocks
2014-08-12 18:36:42 -07:00
Michael Greene
0415fd216f PEP 8 2014-08-10 03:14:07 -07:00
Michael Greene
5ba1095ec0 python 3.2 works now 2014-08-10 01:54:12 -07:00
Michael Greene
12d085a510 #93 for SubPacket Header typeid; CreationTime, Issuer length 2014-08-06 19:13:37 -07:00
Michael Greene
879d1c9a3c several things:
- now explicitly decoding to latin-1 when trying to decode strings
 - Issuer payload is now forced to 8 octets in length
 - moved the cool docstring for Header.parse that I made a long time ago 'cause I like it, into the new Header.parse
 - commented out ElGSignature for the time being
 - finished SignatureV4(VersionedPacket)
 - removed some commented lines that no longer needed to be kept around
 - added some reserved constants to HashAlgorithm
 - added Unknown to KeyServerPreferences; made it an IntEnum
2014-08-04 18:32:08 -07:00
Michael Greene
d102a9ef7d removed __slots__ for now 2014-07-31 22:07:23 -07:00
Michael Greene
103c209bba removed __pgpdump__ from everything that's live - #80 2014-07-31 15:33:10 -07:00
Michael Greene
8fd097f68b reimplemented subpackets to use the new object model; also, added some missing subpackets 2014-07-30 22:42:09 -07:00
Michael Greene
194976d8d9 saving current state 2014-07-23 12:49:58 -07:00
Michael Greene
8c8f8997ef PEP 8 2014-07-01 15:09:01 -07:00
Michael Greene
5dbc500f80 refactored subpackets into a subpackage; added User Attribute Subpacket support, and the only subpacket specified in RFC 4880 2014-07-01 14:08:17 -07:00