Commit Graph

27 Commits

Author SHA1 Message Date
Spitap 20d9ca1e1c Enabled PKCS#8 for private keys 2022-07-31 11:49:58 +02:00
Scott Kitterman 4d2f425ae3 - Support signature verification with SubjectPublicKeyInfo formatted keys
since, although rare, they are RFC 6376 specified (LP: #1851862)
2019-11-08 23:19:17 -05:00
Scott Kitterman cd0ebc1ecb - Updates for experimental ARC support:
- Limit to rsa-sha256, rsa-sha1 not used by ARC and multi-signature
        design TBD
2018-10-30 08:13:06 -04:00
Scott Kitterman 3209be62d1 Fix a= tag in ed25519 signatures (thanks to Jeremy Harris) 2018-02-05 11:28:05 -05:00
Scott Kitterman 3138f90077 Updated copyright statements 2018-02-05 04:05:41 -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
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 c7782addd5 - Add generation of rsafp DKIM signatures per
draft-ietf-dcrup-dkim-crypto-02
2017-06-23 18:29:37 -04:00
Scott Kitterman 144886ae0b Check and update references to RFC 3447 with RFC 8017 2017-05-31 01:51:21 -04:00
Scott Kitterman 02551e35b2 - Update changelog and versions to start 0.5.3.
- Improve key error messages to help troubleshooting.
2012-07-21 01:44:06 -04:00
Stuart D. Gathman 644916a653 Apply performance patch from bug#901591 2012-02-03 17:10:49 -05:00
Stuart D. Gathman 4317168f89 python-2.6.6 has upper case hash.name (2.6.5 has lower case). 2011-06-14 18:18:22 -04:00
William Grant 472750c0db Signature algorithm names are now defined in dkim.crypto. 2011-06-03 22:34:23 +10:00
William Grant 7949bff344 Make dkim.crypto mostly work. 2011-03-19 19:04:11 +11:00
William Grant be1368f374 Make str2int/int2str work with bytes. 2011-03-19 18:52:35 +11:00
William Grant f5db65966e Use new 2.6/3.x except syntax. 2011-03-19 18:36:19 +11:00
William Grant 80c518d30b Fix EMSA-PKCS1-v1_5-ENCODE digest length check. The spec requires at least 8 bytes of padding. 2011-03-19 17:33:11 +11:00
William Grant d5ffbac38a EMSA_PKCS1_v_1_5_encode now works out the hash ID itself. 2011-03-19 17:14:14 +11:00
William Grant 2ee087da01 Extract parse_pem_private_key, and test it and parse_public_key. 2011-03-19 16:23:48 +11:00
Scott Kitterman 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).
2011-03-15 00:10:03 -04:00
William Grant 440dd14de0 Correct crypto exception handling. 2011-03-12 17:19:59 +11:00
William Grant bafc0d5ea6 Raise a DigestTooLarge exception if it won't fit within the requested message length. 2011-03-12 15:46:58 +11:00
William Grant 7fa823748d crypto docstrings. 2011-03-12 15:37:25 +11:00
William Grant 7dec2e4697 Merge trunk. 2011-03-12 12:32:14 +11:00
William Grant 7526317dfe Unexport EMSA_PKCS1_v1_5_encode; it's only used by RSASSA_PKCS1_v1_5_*. 2011-03-10 00:03:26 +11:00
William Grant 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. 2011-03-10 00:03:15 +11:00
William Grant 6f715a1a01 Extract crypto stuff to dkim.crypto. 2011-03-09 23:27:04 +11:00