Commit Graph

672 Commits

Author SHA1 Message Date
Michael Greene
70038ef002 fixed a null-byte padding issue with decryption using RSA 2014-09-30 15:58:45 -07:00
Michael Greene
b1204fb5ac more coverage 2014-09-30 15:27:14 -07:00
Michael Greene
e52d130704 more coverage 2014-09-30 14:24:52 -07:00
Michael Greene
ef1decb445 second verse, same as the first 2014-09-30 13:41:05 -07:00
Michael Greene
368382356f coverage stuff 2014-09-30 13:32:15 -07:00
Michael Greene
3ce4b0626a coverage 2014-09-30 12:07:40 -07:00
Michael Greene
3d591d287b coverage changes 2014-09-30 11:26:35 -07:00
Michael Greene
0a887b3e56 added new exception class, PGPEncryptionError; added some additional test coverage for exception raising scenarios 2014-09-29 17:07:56 -07:00
Michael Greene
5f4986737b some cleanups in PGPKeyring.load 2014-09-29 16:15:10 -07:00
Michael Greene
6d8c6c7171 PEP 8 2014-09-29 15:43:23 -07:00
Michael Greene
45afe9946f decrypting messages encrypted with multiple passphrases now works reliably; the MDC packet is now actually checked (using a constant time comparison function) after decryption 2014-09-29 15:21:17 -07:00
Michael Greene
3e27d98a26 almost forgot to set the feature flag on self signatures after rewriting PGPKey.verify
[skip ci]
2014-09-29 13:43:01 -07:00
Michael Greene
c7f7b03763 skip signatures not marked as exportable - closes #101 2014-09-29 13:39:43 -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
6ce75c6669 subkey binding now works - #104 2014-09-27 19:40:39 -07:00
Michael Greene
61487e536b added a test to directly sign a subkey 2014-09-26 19:45:07 -07:00
Michael Greene
a1f5f1df3e better checking of possible subject/signature type combinations; (sub)key revocation signature generation - #104 2014-09-26 19:14:45 -07:00
Michael Greene
efc5f6fc5e Python 3.2 compatibility fix 2014-09-26 17:30:34 -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
dba6e3a76a modified test_exports slightly; added tox.sh for more easily dealing with tox on OSX systems with a brewed openssl
[skip ci]
2014-09-26 15:02:33 -07:00
Michael Greene
522ebcd535 added missing super calls to __init__ so multiple/diamond inheritance resolves correctly; removed some commented code that no longer needs to exist 2014-09-26 14:24:22 -07:00
Michael Greene
b2956e774b moved deque bisect-insertion to a utility function; added bisect-based deque item re-sorting function - closes #124 2014-09-26 13:20:50 -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
9583136c35 creating new photo UIDs now works - #118; signing photo UIDs is now actually being tested 2014-09-25 13:15:19 -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
31ec94b191 PEP 8
[skip ci]
2014-09-23 16:04:11 -07:00
Michael Greene
2060dd886b PEP 8
[skip ci]
2014-09-23 16:04:03 -07:00
Michael Greene
d5409e845a - PGPSignature is now orderable by its creation date
- Exportable.ascii_unarmor now ignores carriage returns
 - PGPUID is now exposed as part of the primary API
 - PGPKey.add_uid now consumes a PGPUID - #118, #119
 - fixed bisect/deque.rotate stuff to work correctly
2014-09-23 15:50:49 -07:00
Michael Greene
7629bc79d0 api usability enhancements; more unit test stuff 2014-09-22 17:25:22 -07:00
Michael Greene
d1ed333535 progress 2014-09-22 17:14:31 -07:00
Michael Greene
29ace81b5e certificate revocation signing now tested - #104 2014-09-19 10:51:46 -07:00
Michael Greene
2982be3603 uid signing; uid removal - closes #119; added "add_signature" method to PGPUID to ensure that certification signatures are added in sorted order; made primary signature retrieval more robust 2014-09-18 17:05:46 -07:00
Michael Greene
8030c52b49 another minor code clean 2014-09-17 18:44:11 -07:00
Michael Greene
398fe7263b some additional refactoring for minor performance improvement and (hopefully) readability 2014-09-17 18:25:26 -07:00
Michael Greene
6a11bbb6f1 added new classmethod PGPSignature.from_sigpkt to reduce code reuse and allow them to be instantiated/installed in list comprehensions 2014-09-17 17:53:20 -07:00
Michael Greene
39b4743fd4 some unit test overhauling 2014-09-17 17:52:13 -07:00
Michael Greene
8fdc9dd1f6 Python 2.7 unit test fix 2014-09-17 12:03:31 -07:00
Michael Greene
124c0000b6 moar progress
[skip ci]
2014-09-16 20:27:34 -07:00
Michael Greene
28b1f1b86d some much needed test and testdata cleanups; fixed verification being skipped in test_reg_bug_56; resolved regression test_reg_bug_56 was meant to prevent 2014-09-16 20:22:53 -07:00
Michael Greene
65a78cf3ca the final newline in PGP blocks is now optional 2014-09-16 17:15:00 -07:00
Michael Greene
36e83c2683 massively sped up crc24 computation by iterating over the data instead of doing pop(0) - closes #68 2014-09-16 14:52:21 -07:00
Michael Greene
4a374dca69 a little input validation 2014-09-16 13:27:04 -07:00
Michael Greene
cda965fdf4 asdfdsgqwetqty 2014-09-16 13:23:51 -07:00
Michael Greene
040faa17e5 maybe finally fixed 2014-09-16 13:14:57 -07:00
Michael Greene
9c4f66a519 test 2014-09-16 13:06:26 -07:00
Michael Greene
423728d9b8 user id certification now fully tested and working properly - #104 2014-09-16 12:38:08 -07:00
Michael Greene
08e804ff33 asdf 2014-09-15 18:56:53 -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
51cab7715a another test bug possibly fixed 2014-09-15 17:20:13 -07:00