J08nY
d4f5fa0359
Add IssuerFingerprint subpacket per draft-ietf-openpgp-rfc4880bis.
...
- GPG creates these subpackets in key revocation signatures for
example from at least version 2.1.18, even though they are only
in an OpenPGP draft.
- The draft can be downloaded from:
https://tools.ietf.org/html/draft-ietf-openpgp-rfc4880bis-02
- Section 5.2.3.27 specifies the new subpacket format:
https://tools.ietf.org/html/draft-ietf-openpgp-rfc4880bis-02#section-5.2.3.27
2017-08-07 16:34:13 +02:00
J08nY
741fbcbee3
Add PGPKeyring.load() for PGPKey instance param.
...
- Allows one to load a PGPKey into a PGPKeyring via the load
method. A copy of the PGPKey is added to the keyring. Perhaps
a different method (?add?) might be added in the future.
2017-08-07 16:17:46 +02:00
J08nY
671661ae0f
Fix bogus print in PGPKey.__copy__.
2017-08-07 15:45:18 +02:00
Michael Greene
afdde8c40e
initial fix for changes in latest pyasn1
2017-08-04 16:15:24 -07:00
Michael Greene
41bff26e46
test suite kerjiggering
2017-08-04 13:19:32 -07:00
Michael Greene
4e435e97a2
PEP8 pass
2017-08-04 13:00:47 -07:00
Michael Greene
a76d9456e4
sneaking this one in - quick change so PyCharm's static analyzer stops complaining about calling Packet with a data argument
2017-08-04 12:55:04 -07:00
Michael Greene
56b21bae89
#204 - document which exceptions can be raised from PGPKey.decrypt
2017-08-04 12:53:24 -07:00
Michael Greene
f8c572a43b
added missing KeyActions decorator so PGPKey.decrypt is guarded correctly. Fixes #204
2017-08-04 12:48:02 -07:00
Michael Greene
5ac069f524
Merge pull request #200 from J08nY/fix/armorable-empty-string
...
Fix PGPKey.from_blob('') not raising an exception. Fixes #199 .
2017-08-04 11:37:18 -07:00
Michael Greene
480e7943f5
Merge pull request #191 from J08nY/fix/encrypt-then-sign
...
Fix encrypt then sign. #186
2017-08-04 11:23:45 -07:00
J08nY
00d9217f19
Parse partial length headers correctly.
2017-08-04 17:14:17 +02:00
J08nY
b7226e1777
Fix PGPKey.from_blob('') not raising an exception. Fixes #199 .
2017-07-28 14:55:30 +02:00
Michael Greene
752ed14755
Merge pull request #193 from J08nY/fix/cleartext-tests
...
Fix cleartext signature handling. Fixes #192 .
2017-06-29 14:38:55 -07:00
J08nY
16c951b1ae
Fix cleartext signature handling. Fixes #192 .
2017-06-29 22:12:41 +02:00
Michael Greene
b6a8b67c70
Merge pull request #190 from J08nY/fix/packet-tag-repr
...
Fix wrong hexadecimal number prefix in Packet.__repr__.
2017-06-29 11:19:12 -07:00
J08nY
2b6dbb7fb2
Don't raise when encountering an unknown key. Fixes #177 (partly).
2017-06-29 16:02:09 +02:00
Michael Greene
ddaca9338a
#194 - copy subpubs correctly
2017-06-28 15:34:29 -07:00
J08nY
b388b1bff3
Export signatures even on an encrypted PGPMessage. Fixes #187 .
2017-06-27 01:21:42 +02:00
J08nY
9fe8ffd31c
Fix signing of encrypted messages. Fixes #186 .
2017-06-27 01:14:33 +02:00
J08nY
3a2ef11309
Fix wrong hexadecimal number prefix in Packet.__repr__.
2017-06-26 23:27:44 +02:00
J08nY
29dfb22a84
Fix armor regex being too greedy in cleartext matching.
...
- Tests should pass now.
2017-06-22 12:27:08 +02:00
Michael Greene
33ba06fd62
#184 - second trailing newline should be optional for cleartext messages, as it isn't always present.
2017-06-21 17:54:42 -07:00
Michael Greene
233db42910
removed trailing __ on Armorable class constants
2017-06-21 17:50:54 -07:00
Michael Greene
d3556490c5
Merge pull request #181 from J08nY/feature/armor-regex
...
Add Armorable.is_armor(text) for detecting ASCII-armored data.
2017-06-21 17:48:43 -07:00
J08nY
44ba606007
Fix PGPKey.decrypt misusing message.issuers instead of encrypters.
...
- We only want to see if our key/subkey fingerprint is in some of
the PKESKs, we don't care if it's in the signatures.
2017-06-21 00:03:26 +02:00
J08nY
af67384b34
Add Armorable.is_armor(text) for detecting ASCII-armored data.
2017-06-20 20:17:42 +02:00
Daniel Kahn Gillmor
ad6905d57a
prefer https links where possible
2017-04-26 13:02:12 -04:00
Michael Greene
8bceaa0a9f
#172 - correctly calculate the secret key checksum
...
[skip ci]
2017-04-25 17:52:23 -07:00
Michael Greene
c9c679c86b
next version coming up
...
[skip ci]
2017-04-25 17:51:55 -07:00
Michael Greene
df926e19e4
documentation
...
[skip ci]
2017-03-20 10:13:58 -07:00
Michael Greene
2d6667ee53
just version things
...
[skip ci]
2017-03-01 12:40:39 -08:00
Michael Greene
c9d39e3ebc
unit test cleanups and additions
2017-02-27 10:05:57 -08:00
Michael Greene
6977939da5
#166 - apply workaround from @SirCmpwn for changes to EnumMeta in Python 3.6
...
- also add Python 3.6 to the tox/travis test matrices
2017-02-27 10:05:57 -08:00
Michael Greene
c5d26db522
unit test suite is finally fixed, I think!
2017-02-16 20:25:43 -08:00
Michael Greene
2514c3908d
fixed broken subkey translation when generating the public half of a private key - fixes #168
2017-02-16 17:22:35 -08:00
Michael Greene
1773593242
- added missing __copy__ implementations
...
- fixed a weird signature bug and simplified the way signature hashdata is computed for keys
- fixed and simplified backwards math for padding ByteFlag signature subpackets
- added PGPKey.key_size property
[skip ci]
2017-01-11 14:02:49 -08:00
Michael Greene
5d08583856
always return consistent argument numbers
2016-12-20 14:31:59 -08:00
Michael Greene
0c941948a3
improved the test to check that the resulting count value is actually close to the target, and improved tune_count accordingly - closes #157
2016-06-09 16:13:12 -07:00
Michael Greene
e1515f755a
- made HashAlgorithm.tune_count more robust and added a regression test for it - closes #157
...
- PEP8
2016-06-09 14:59:13 -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
2a5e8209ea
- added Brainpool Standard curve support (matching GnuPG) for users with openssl >= 1.0.2
...
- bumped dev branch version to 0.5.0
2016-04-22 17:10:51 -07:00
Michael Greene
54385958fb
updated docs; fixed a couple of typos and documentation errors
...
[skip ci]
2016-04-22 14:06:41 -07:00
Michael Greene
9501954a15
updated docs
...
[skip ci]
2016-04-21 20:51:32 -07:00
Michael Greene
848c8afe28
- added SECP256K1 curve to EllipticCurveOID because GnuPG supports it
...
- marked some regression tests as such
- minor organization stuff
[skip ci]
2016-04-21 18:46:28 -07:00
Michael Greene
dc83611b9a
removed some unnecessary code; this should bring current test coverage up to 100%
2016-04-21 17:07:35 -07:00
Michael Greene
a893965ebe
more test coverage
2016-04-21 16:48:58 -07:00
Michael Greene
2817059e8f
unit test coverage and a couple of minor fixed bugs found from running those tests
2016-04-21 16:07:31 -07:00
Michael Greene
a7140e3ef7
python 2 fix, because base64.b64decode raises TypeError there instead of binascii.Error
2016-04-18 19:22:52 -07:00