Commit Graph

26 Commits

Author SHA1 Message Date
Scott Kitterman 50a81ab8d6 Add test test_non_utf8 which at least demonstrates not crashing on non UTF-8 data 2023-02-25 15:40:49 -05:00
Spitap 8e78ce7e13 refacor of PKCS8 parsing, added pkcs8 test 2022-08-01 00:49:39 +02:00
Scott Kitterman d1360c8e25 Add tests for invalid domains, probably not a security issue in the DKIM context, but we should raise errors here. 2020-04-21 20:29:45 -04:00
Scott Kitterman 7173c0cbcc Catch binascii related key format errors (LP: #1854477) 2019-12-08 02:43:57 -05:00
Scott Kitterman 5893862e31 New keys and test cases for RSA key format variants like RSAPublicKey 2019-11-08 23:13:26 -05:00
Scott Kitterman ebe8fc7c77 Add support for RFC 8460 tlsrpt DKIM signature processing (LP: #1847020) 2019-10-31 20:53:06 -04:00
Scott Kitterman ef80f037ca Delete unused test data 2018-06-09 22:07:02 -04:00
Scott Kitterman 3a68a64836 Update tests so that both RSA and Ed25519 verifying test verifying dual signed message. 2018-06-02 01:19:24 -04:00
Scott Kitterman d5c4f69b27 Remove obsolete and incorrect test data 2018-06-02 01:04:29 -04:00
Scott Kitterman a0ae8c24c5 Detect unknown algorithm in k= tag and raise an appropriate error, vice
failing with a traceback
2018-05-18 19:42:46 -04:00
Scott Kitterman 261eb5f5eb Add test for detecting bad version number in DKIM txt record 2018-05-18 17:04:50 -04:00
Scott Kitterman 9f9fe2625b Add another RFC data based test 2018-02-12 13:45:26 -05:00
Scott Kitterman d097a5f523 - Update ed25519 tests, including using sample keys from RFC 8032 Section
7.1 and the sample message from RFC 6376
2018-02-11 19:26:04 -05:00
Scott Kitterman 6bbbdf9b22 Update test data and test harness for test_verify_third_party - now it passes 2018-02-05 13:43:19 -05:00
Scott Kitterman 3209be62d1 Fix a= tag in ed25519 signatures (thanks to Jeremy Harris) 2018-02-05 11:28:05 -05:00
Scott Kitterman 077bf4813c Self consistent, but not externally verified ed25519 based on draft-ietf-dcrup-dkim-crypto-08 2018-02-05 03:53:03 -05:00
Gene Shuman 5f5873c1fd Fixed ARC tests 2017-11-20 20:53:32 -08:00
Scott Kitterman 01a2f77481 Revert a bunch of rsafp stuff now that DCRUP isn't going to do rsafp 2017-11-18 20:17:35 -05:00
Scott Kitterman d7eb35c22c Add test keys for sha256fp 2017-06-22 20:24:32 -04:00
Stuart D. Gathman 1e76d331fe Test case for verify problem with degenerate FWS. 2013-06-19 15:13:28 -04:00
Scott Kitterman 5c9f52b0c1 Add test case for message with no 5322.From - Should get ParameterError and fail to sign. 2013-04-28 15:24:38 -04:00
Stuart D. Gathman 188515ddf7 Detect truncated ASN data as UnparsableKeyError 2013-03-13 23:41:01 -04:00
Stuart D. Gathman 4f77e32ec7 Update Changelog, put back large message from field for extra headers
test case.  Keep simplified message also in case further debugging is needed.
2011-06-17 18:55:52 -04:00
Stuart D. Gathman 93c61d2737 Simplify extra header test. 2011-06-17 17:40:24 -04:00
Stuart D. Gathman dbeeacdd46 Test case for https://bugs.launchpad.net/pydkim/+bug/737311 2011-06-17 11:26:53 -04:00
William Grant 58525fbbd7 Add basic end-to-end signing and verification tests. 2011-03-09 20:10:18 +11:00