Permalink
Switch branches/tags
Commits on Jan 29, 2014
  1. Add recent testdata additions to MANIFEST

    toofishes committed Jan 29, 2014
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Jan 27, 2014
  1. Version updates, copyright, etc.

    toofishes committed Jan 27, 2014
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  2. Added tests for modulus_bitlen

    Tobias Mueller (ideabox) authored and toofishes committed Jun 5, 2012
  3. packet: Added a modulus_bitlen field to indicate the size of the RSA key

    Tobias Mueller (ideabox) authored and toofishes committed Jun 5, 2012
    I was hesitating to add this, because it's a calculation that is not
    necessarily needed by the user of pgpdump. But then again, that is the
    case for nearly every data computed by pgpdump. It'd probably be smart
    to make all fields needing calculation a lazy Property() and update the
    fields after calculation.
  4. Python 2.6 compat: convert bytearray objects when necessary

    toofishes committed Jan 27, 2014
    Thanks to Avram Lubkin for the original patch to make this possible.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  5. Python 2.6 compat: unittest usage

    toofishes committed Jan 27, 2014
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  6. Python 2.6 compat: don't use keyword args to decode()

    toofishes committed Jan 27, 2014
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  7. Support partial body length headers

    tyll authored and toofishes committed May 7, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  8. new_tag_length(): Add reference to RFC4880

    tyll authored and toofishes committed May 7, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  9. new_tag_length(): Return offset for all read data

    tyll authored and toofishes committed May 7, 2013
    Make new_tag_length() return an offset with the amount of data read by
    it instead of one less, i.e. it returns at least an offset of '1'.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  10. Treat .txt as ASCII when reading files

    toofishes committed Jan 27, 2014
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Feb 3, 2013
  1. Update MANIFEST.in with new test data

    toofishes committed Feb 3, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  2. Update Copyright for 2013

    toofishes committed Feb 3, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  3. Implement parsing of mode 1002 secret key packets

    toofishes committed Feb 3, 2013
    This is a GnuPG extension when the secret key data is stored on a smart
    card or in a hardware security module. We blew up before when
    encountering this unexpected type; now we will parse and continue on
    without problems.
    
    Based on work by Ondrej Mikle and reading RFC 4880 and taking a quick
    glance at the GnuPG source.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  4. Add a .mailmap file

    toofishes committed Feb 3, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  5. Sample of smartcard-tied 'private' GPG key

    hiviah authored and toofishes committed Feb 3, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  6. Add a hexlify helper util function

    toofishes committed Feb 3, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  7. Refactor S2K lookup

    toofishes committed Feb 3, 2013
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Oct 30, 2012
  1. Made the parsefile function yield packets it read

    Tobias Mueller (ideabox) authored and toofishes committed Jun 4, 2012
    This changes the interface of the function but I don't want to replicate
    that function in all the filters that I apply on top of the parsed data.
    My usecase is smth like this:
        for filename in sys.argv[1:]:
            for packet in ifilter(filter, parsefile(filename)):
                print(packet)
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  2. Remove deprecated 'datetime' methods

    toofishes committed Oct 30, 2012
    These were marked deprecated in the 1.2 release, so I feel fine removing
    them post-1.4 release.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Oct 22, 2012
  1. Prep for 1.4 release

    toofishes committed Oct 22, 2012
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  2. Include tests for the SecretKeyPacket and SecretSubkeyPacket

    abeluck authored and toofishes committed Aug 3, 2012
    Dan: ensure they are Py3K compatible.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Aug 18, 2012
  1. Added support for SecretKey and SecretSubKey packet formats

    abeluck authored and toofishes committed Aug 3, 2012
    Dan: minor style cleanups, fix Python 3 compatibility.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Aug 9, 2012
  1. Add string-to-key specifier types

    abeluck authored and toofishes committed Aug 3, 2012
  2. Add cipher algorithm types and lookup methods

    abeluck authored and toofishes committed Aug 3, 2012
    Dan: a bit of cleanup for PEP8 compliance.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  3. Add more return values from parse() methods

    toofishes committed Aug 9, 2012
    Like was done in an earlier commit for PublicKeyPacket objects.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on May 12, 2012
  1. Update MANIFEST.in

    toofishes committed May 12, 2012
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  2. Add test cases for PublicKeyEncryptedSessionKeyPacket

    toofishes committed May 12, 2012
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  3. Small tweaks to PublicKeyEncryptedSessionKeyPacket

    toofishes committed May 12, 2012
    Validate the version number before continuing to parse, and store
    version in a specific field for this packet type like we do for the
    others.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  4. Added support for PublicKeyEncryptedSessionKeyPacket

    stef authored and toofishes committed May 11, 2012
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on May 8, 2012
  1. Bump to version 1.3

    toofishes committed May 8, 2012
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Apr 24, 2012
  1. Compile user-matching regex only once

    toofishes committed Apr 24, 2012
    The builtin regex caching should do this as well, but move it out of
    line just to make sure (as well as potentially make PyPy go faster).
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Commits on Apr 9, 2012
  1. Support version 3 ElGamal public keys

    toofishes committed Apr 9, 2012
    We're entering territory modern verisons of GPG don't even support. The
    "correct" values are determined from those that the keyserver is telling
    us, and a test case is added using those values from a rather old key.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>
  2. Test class refactor

    toofishes committed Apr 9, 2012
    Move some utility methods into a helper class, use multiple inheritance,
    split long ParseTestCase class into two classes.
    
    Signed-off-by: Dan McGee <dpmcgee@gmail.com>