Commit Graph

  • 167b2986d7 validate_signature_field now raises a ValidationError if it finds an issue. William Grant 2011-03-19 18:04:41 +11:00
  • 80c518d30b Fix EMSA-PKCS1-v1_5-ENCODE digest length check. The spec requires at least 8 bytes of padding. William Grant 2011-03-19 17:33:11 +11:00
  • d5ffbac38a EMSA_PKCS1_v_1_5_encode now works out the hash ID itself. William Grant 2011-03-19 17:14:14 +11:00
  • fab1be9f2d Comment key data. William Grant 2011-03-19 16:48:09 +11:00
  • e47c470acf Test dkim.crypto. William Grant 2011-03-19 16:45:25 +11:00
  • 152458defe Test RSASSA. William Grant 2011-03-19 16:39:57 +11:00
  • 2ee087da01 Extract parse_pem_private_key, and test it and parse_public_key. William Grant 2011-03-19 16:23:48 +11:00
  • d79c856ef0 RSA tests. William Grant 2011-03-19 15:03:53 +11:00
  • bcbf8feacf Add int2str/str2int tests. William Grant 2011-03-17 22:47:50 +11:00
  • 916d61bdff Add EMSA-PKCS1-v1_5-ENCODE tests. One fails because we don't require at least 8 bytes of padding. William Grant 2011-03-17 22:39:45 +11:00
  • f1c9fe1911 Move dkim.util tests into test_util. William Grant 2011-03-16 23:20:52 +11:00
  • 9aea8985fb Support multiple test modules. William Grant 2011-03-16 23:03:52 +11:00
  • 6ceace530e merge lp:~mbp/pydkim/587783-relaxed Scott Kitterman 2011-03-15 02:00:59 -04:00
  • ae64299e14 ChangeLog correction Martin Pool 2011-03-15 16:43:25 +11:00
  • c646369d66 Update fix for bug 587783 verifying relaxed signatures Martin Pool 2011-03-15 16:30:16 +11:00
  • 00164b8b5c * Change py_modules to packages in setup.py so it will install correctly. * Explicitly mark all files modified from the original upstream (licensing paranoia). Scott Kitterman 2011-03-15 00:10:03 -04:00
  • ae9ffbc86f Factor out most crypto bits into their own functions and modules, where they can sensibly be tested. William Grant 2011-03-13 18:55:30 +11:00
  • f1720d15f3 Fix up copyright notice. William Grant 2011-03-13 18:07:21 +11:00
  • 440dd14de0 Correct crypto exception handling. William Grant 2011-03-12 17:19:59 +11:00
  • bafc0d5ea6 Raise a DigestTooLarge exception if it won't fit within the requested message length. William Grant 2011-03-12 15:46:58 +11:00
  • bd7a6e6933 Slightly improved asn1 docstrings. William Grant 2011-03-12 15:41:02 +11:00
  • 7fa823748d crypto docstrings. William Grant 2011-03-12 15:37:25 +11:00
  • 7dec2e4697 Merge trunk. William Grant 2011-03-12 12:32:14 +11:00
  • c19043d70f Use a better, tested Tag=Value parser. William Grant 2011-03-12 12:28:39 +11:00
  • e74405d27a Raise more descriptive exceptions, DuplicateTag and InvalidTagSpec. William Grant 2011-03-12 12:24:55 +11:00
  • 160718f9b2 Add @param. William Grant 2011-03-12 12:18:22 +11:00
  • f6b9bb1b27 Factor out a few functions. Not yet tested. William Grant 2011-03-12 12:16:48 +11:00
  • 142285bc03 More docstrings. William Grant 2011-03-12 12:09:43 +11:00
  • ed497a40d6 Add docstrings to the two crypto functions. William Grant 2011-03-12 12:05:15 +11:00
  • fdd36b7cd4 Add basic end-to-end tests. William Grant 2011-03-12 11:22:37 +11:00
  • 44cb4c357d Only exclude .testrepository at the root. William Grant 2011-03-12 11:20:30 +11:00
  • f9c2c2dcd9 Add license header to test_dkim. William Grant 2011-03-10 09:32:15 +11:00
  • cbe755269c Restore erroneously removed license header. William Grant 2011-03-10 09:31:03 +11:00
  • bbe60e0646 int2str returns a string instead of a list, so the ''.join() is redundant. William Grant 2011-03-10 00:05:42 +11:00
  • 7526317dfe Unexport EMSA_PKCS1_v1_5_encode; it's only used by RSASSA_PKCS1_v1_5_*. William Grant 2011-03-10 00:03:26 +11:00
  • c82703cea9 Implement RSASSA-PKCS1-v1_5 in dkim.crypto, and use that in verify() and sign(). Move str2int/int2str into dkim.crypto. Verification no longer does a constant-time string compare; there is no private key involved on which a timing attack could be performed. William Grant 2011-03-10 00:03:15 +11:00
  • 5898094fe1 Factor out RSA into perform_rsa. William Grant 2011-03-09 23:37:59 +11:00
  • 6f715a1a01 Extract crypto stuff to dkim.crypto. William Grant 2011-03-09 23:27:04 +11:00
  • b6d3502f9e Split ASN.1 utilities out into their own file. William Grant 2011-03-09 23:23:01 +11:00
  • b3225a0a24 Extract parse_private_key. William Grant 2011-03-09 23:14:11 +11:00
  • fb2d8678fd Use parse_tag_value in verify(). William Grant 2011-03-09 22:54:41 +11:00
  • 42a463cc23 Test that whitespace around tags and values is stripped. William Grant 2011-03-09 22:50:08 +11:00
  • f8fb2d952d Fail if there is a duplicate tag. William Grant 2011-03-09 22:48:34 +11:00
  • 98c72db3b1 Add a (hopefully correct) Tag=Value list parser, with tests. William Grant 2011-03-09 22:46:17 +11:00
  • a6374ed26d Extract signature field validation. William Grant 2011-03-09 21:40:51 +11:00
  • ece86c0e67 Shrink the mandatory fields check. William Grant 2011-03-09 21:36:46 +11:00
  • 2437ab75a3 Extract public key parsing. William Grant 2011-03-09 21:21:58 +11:00
  • 160fb39e39 Extract hash_headers. William Grant 2011-03-09 20:59:10 +11:00
  • 405757ef49 Use the new EMSA-PKCS1-v1_5 function in verify() too. William Grant 2011-03-09 20:49:45 +11:00
  • c859c87c73 Take the hash ID as an arg. William Grant 2011-03-09 20:44:12 +11:00
  • bcbe6d19aa Start ripping out EMSA-PKCS1-v1_5. William Grant 2011-03-09 20:37:04 +11:00
  • b165714c52 Remove old test which was specific to the original upstrea. William Grant 2011-03-09 20:16:53 +11:00
  • 58525fbbd7 Add basic end-to-end signing and verification tests. William Grant 2011-03-09 20:10:18 +11:00
  • fbe24a0001 Allow callers to override the DNS function used by verify(). William Grant 2011-03-09 20:10:04 +11:00
  • 97ec4a65a4 Add TESTING section to README. William Grant 2011-03-09 18:49:18 +11:00
  • 3fa5c5263a Add testrepository config. William Grant 2011-03-09 18:47:27 +11:00
  • 508ad7ceec Add a couple of tests for fold(). One disabled, because the function is broken. William Grant 2011-03-09 18:47:11 +11:00
  • df2c20d4b3 Turn dkim into a package. William Grant 2011-03-09 18:07:27 +11:00
  • 25d3294b30 * Add man page install to setup.py. Scott Kitterman 2011-03-08 01:24:27 -05:00
  • 9e6246cc35 * Add man directory and dkimsign.1/dkimverify.1 from Debian package. Scott Kitterman 2011-03-07 23:33:23 -05:00
  • 009a0bc15e * Fix incorrect key record validation failures due to invalid assumptions about public key record requirements * Remove extraneous dkim.py.orig file Scott Kitterman 2011-03-07 23:28:10 -05:00
  • 4cc38d62fd Start with pydkim 0.3. Scott Kitterman 2011-03-07 23:25:49 -05:00