Commit Graph

1197 Commits

Author SHA1 Message Date
Michael Greene
0d52908adb started test_PGPKeys 2014-04-24 18:05:31 -07:00
Michael Greene
68162089a2 updated test_PGPSignature 2014-04-24 18:05:15 -07:00
Michael Greene
4163505efc removed test_PGPKeyLoader for now 2014-04-24 18:05:06 -07:00
Michael Greene
ba493d23d4 more new test data 2014-04-24 18:04:48 -07:00
Michael Greene
39bbdb6653 renamed self.payload to self.packets; changed type from collections.OrderedDict to simple list 2014-04-24 18:04:39 -07:00
Michael Greene
e3f1a65462 commented out PGPKeyLoader for the time being 2014-04-24 18:04:07 -07:00
Michael Greene
b4b1acbdc9 added PubKey to the PGPPacket factory; added stub for class PubKey(Packet) 2014-04-24 18:03:51 -07:00
Michael Greene
93784f8ad6 added PubKey and PrivKey tags to the list 2014-04-24 18:03:21 -07:00
Michael Greene
4ae914b883 this was hiding issues 2014-04-24 18:02:58 -07:00
Michael Greene
14103dfab9 updated test_PGPSignature to work with code changes 2014-04-24 17:21:33 -07:00
Michael Greene
6ab26785df moved SIGNATURE_MAGIC into new Enum class Magic at Magic.Signature; added magic for PubKey and PrivKey 2014-04-24 17:21:07 -07:00
Michael Greene
1191f43182 abstracted the ASCII parsing (and building) from signature.SignaturePacket to pgp.PGPBlock to prevent code duplication 2014-04-24 17:20:31 -07:00
Michael Greene
a3d92e0f7a renamed packet to packetblob because packetblob may, in fact, contain more than one packet 2014-04-24 17:19:13 -07:00
Michael Greene
1d7b2bc22c PEP 8 2014-04-24 17:18:46 -07:00
Michael Greene
608be780ab "" 2014-04-24 17:18:31 -07:00
Michael Greene
48a9a8bfe7 moved PGPError to pgpy.errors because circular-import errors 2014-04-24 17:18:22 -07:00
Michael Greene
bcb9802634 removed all references to self.raw now that we can reconstruct all fields to reduce memory footprint 2014-04-24 16:09:39 -07:00
Michael Greene
15bdf752b0 added __bytes__() to FileLoader 2014-04-24 15:50:46 -07:00
Michael Greene
55265c9391 removed import for hashlib
updated import for regex blocks
added logic to search for the signature block so we can load an inline signature
2014-04-24 15:49:10 -07:00
Michael Greene
c9bd85ad77 moved regex blocks from pgp.py to reg.py 2014-04-24 15:48:17 -07:00
Michael Greene
003f0e7604 added CanonicalDocument to Header.Type so reading an inline message signature doesn't raise an exception 2014-04-24 15:47:52 -07:00
Michael Greene
b8360f3da7 updated fixture to load additional testdata 2014-04-24 15:47:07 -07:00
Michael Greene
b7a06c56df updated fixtures to load new testdata 2014-04-24 15:46:43 -07:00
Michael Greene
8e3f4c368d new testdata 2014-04-24 15:46:14 -07:00
Michael Greene
0adc9eed47 testdata tools 2014-04-24 15:46:05 -07:00
Michael Greene
a4590dcd4e removed .debs from testdata 2014-04-24 15:45:56 -07:00
Michael Greene
611f8714b5 README images should reference PGPy, not Debutils 2014-04-24 11:45:05 -07:00
Michael Greene
424fb71d59 simplified bytes_to_int and int_to_bytes; added the ability for int_to_bytes to zero pad 2014-04-23 23:51:13 -07:00
Michael Greene
bd387c44df front-loaded the file loading to prevent a sync issue with comparing the files - was seeing a situation where I would download the Debian-sid Release.gpg file to parse, then download again to check against pgpdump, and pgpdump would get a newer version. 2014-04-23 23:50:18 -07:00
Michael Greene
afdc6d5d68 copied these two files over from Debutils for testing FileLoader 2014-04-23 23:49:11 -07:00
Michael Greene
7277b7901b copied test_FileLoader.py over from debutils 2014-04-23 23:48:32 -07:00
Michael Greene
a5f0ac8fbc added __bytes__() magic methods where needed to lay the groundwork for generating new packets instead of only reading them 2014-04-23 23:48:13 -07:00
Michael Greene
2f4409e1bf made file path detection more robust - this can probably be pared down a bit later 2014-04-23 23:47:25 -07:00
Michael Greene
3b25de23a1 added missing requirement for python < 3.4: enum34 2014-04-22 22:50:35 -07:00
Michael Greene
e99b249e9d added missing package: pgpy.packet 2014-04-22 22:47:19 -07:00
Michael Greene
06d5e05dfb fixed import statement 2014-04-22 22:47:00 -07:00
Michael Greene
9855400578 moved over from debutils; reorganized slightly 2014-04-22 22:39:21 -07:00
Michael Greene
cc7ceba725 important Python package stuff 2014-04-22 22:38:59 -07:00
Michael Greene
22658b9ac6 initial test data 2014-04-22 22:38:42 -07:00
Michael Greene
6a89768f0a moved test harnesses over from debutils 2014-04-22 22:38:33 -07:00
Michael Greene
d10e4d567a copied tox.ini over from debutils 2014-04-22 22:38:17 -07:00
Michael Greene
dbf865c0a1 copied .travis.yml over from Debutils 2014-04-22 22:38:01 -07:00
Michael Greene
7dac44d291 added installation instructions to README 2014-04-22 22:37:41 -07:00
Michael Greene
eb301e0c92 renamed README.md to README.rst 2014-04-22 22:30:05 -07:00
Michael Greene
1eaa1ed20c initial base level package 2014-04-22 21:16:34 -07:00
Michael Greene
ac40dae80a added .idea to gitignore 2014-04-22 21:16:15 -07:00
Michael Greene
1199264504 Initial commit 2014-04-22 21:11:34 -07:00