Commit Graph

15 Commits

Author SHA1 Message Date
Michael Greene
c9d39e3ebc unit test cleanups and additions 2017-02-27 10:05:57 -08:00
Michael Greene
0ab3a67288 cleanup
[skip ci]
2017-02-16 20:36:00 -08:00
Michael Greene
3321022287 significantly updated unit test suite to work with py.test 3.x; renamed a few files 2017-01-11 14:04:42 -08:00
Michael Greene
6bc5029843 minor test output cleanup
[skip ci]
2016-06-09 14:51:59 -07:00
Michael Greene
fcb5058ae5 - better organization for running the tests, plus slight change to the fix itself [#156]
- locked py.test to 2.9.1 for now so I can figure out the changes to fixtures that are breaking my tests later
2016-06-02 16:47:44 -07:00
Michael Greene
b5893e6e6b updated Armorable.is_ascii to include carriage returns; updated Armorable.unarmor regex to be more forgiving of line endings and trailing spaces [#156] 2016-06-02 15:42:31 -07:00
Michael Greene
cd60dfe7b6 update six and change uses of six.reraise to six.raise_from 2016-04-18 18:59:39 -07:00
Michael Greene
f31a802c73 - Implemented proper parsing of ECDH keys - closes #110
- Additional code needed to generate ECDH keys also added
 - Encrypt/decrypt using ECDH also works
 - Added some code to the test harness to start making it work with gpg 2.1
 - Fixed key generation tests to test generating keys using all possible algorithms
 - Updated documentation sources to reflect these changes
2016-02-15 22:48:01 -08:00
Michael Greene
95e60a433e - changed PGPSignature.expires_at to return None instead of False to be consistent with PGPKey.expires_at
- #151:
   - fixed an issue with PGPKey.is_expired where the resulting value was inverted if the key has an expiration date set
   - added junk key testdata/blocks/expyro.asc and amended test_03_armor to include it for the purposes of exercising the is_expired property
 - #95:
  - added initial parsing of partial-lengths
  - added some initial test data to work with; testing with that test data is skipped for the moment since it is guaranteed to fail
2015-07-29 13:38:22 -07:00
Michael Greene
c76ba55ee5 - Implemented proper parsing of ECDSA keys - closes #109
- Added ECDSA signing and verification - closes #111
 - ECDSA key generation is also supported
 - refactored some of the signing/verification machinery to simplify code in PGPKey._sign and PGPKey.verify
 - fixed a bug with Signature subpacket ByteFlags where the byte output was not being properly null-padded to the length of the subpacket when necessary, which led to the potential for key outputs that would fail to parse properly if update_hlen was not called (which is silly)
 - fixed string formatting UserID packets when the comment and/or email address are missing - closes #142
 - implemented OpaquePubKey and OpaquePrivKey so that keys using unimplemented formats can still be loaded without error, even if they can't be used
 - enabled initial key action testing using ecc.1.pub.asc and ecc.1.sec.asc (which also required copying the two signatures from ecc.1.pub.asc to ecc.1.sec.asc)
 - improved test output for some tests with auto-ids that were formed in an unfortunate manner
2015-06-10 22:39:21 -07:00
Michael Greene
8ee07a2ef8 - renamed PGPSignature.expired to PGPSignature.is_expired for consistency
- renamed PGPSignature.expires to PGPSignature.expires_at for consistency
 - added missing property PGPKey.expires_at
 - added documentation to PGPUID's class docstring to indicate that it implements __format__ for GnuPG-like formatting of User IDs.
2014-10-17 14:44:57 -07:00
Michael Greene
3f45f05ddf whoops 2014-10-07 17:02:09 -07:00
Michael Greene
9233b9fa1f coverage 2014-10-06 13:25:45 -07:00
Michael Greene
accac2f702 - Selection of signing/encrypting user id is now possible; closes #121
- Forced ByteFlag subpackets to take/return sets now instead of lists
 - removed some properties from PGPKey
 - added new classmethod `from_blob` to Armorable
 - made some modifications to the unit tests to work with this stuff
2014-10-06 13:12:32 -07:00
Michael Greene
b1204fb5ac more coverage 2014-09-30 15:27:14 -07:00