Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fetch pythons via https (win32)winbuild2-wip | Dwayne Litzenberger | 2016-04-02 | 1 | -18/+18 |
| | |||||
* | AutoIt3 script for installing python <= 2.3 on Windows | Dwayne Litzenberger | 2016-04-02 | 3 | -4/+91 |
| | |||||
* | [snapshot] | Dwayne Litzenberger | 2013-05-26 | 3 | -1/+147 |
| | |||||
* | Skip RSA/DSA/ElGamal tests when --skip-slow-tests is specified. | Dwayne Litzenberger | 2013-05-26 | 7 | -53/+64 |
| | |||||
* | Win32: Remove obsolete -mno-cygwin option from mingw32 build | Dwayne Litzenberger | 2013-05-26 | 1 | -0/+4 |
| | |||||
* | Re-generate configure script | Dwayne Litzenberger | 2013-05-05 | 1 | -14/+21 |
| | |||||
* | Use AX_CHECK_COMPILE_FLAG to detect -maes | Sebastian Ramacher | 2013-04-27 | 1 | -12/+4 |
| | | | | Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at> | ||||
* | pct-speedtest.py: Test the random module | Dwayne Litzenberger | 2013-04-21 | 1 | -0/+19 |
| | |||||
* | FortunaAccumulator: Use time.monotonic if available (i.e. Python 3.3 and later) | Dwayne Litzenberger | 2013-04-21 | 2 | -2/+33 |
| | |||||
* | AES-NI support: Python 2.1 Backward compatibility | Dwayne Litzenberger | 2013-04-21 | 3 | -3/+12 |
| | | | | | - METH_NOARGS was introduced in Python 2.2. - Python 2.1 doesn't have True and False builtins. | ||||
* | Remove unnecessary includes | Sebastian Ramacher | 2013-04-21 | 1 | -2/+0 |
| | |||||
* | Initial AES-NI support | Sebastian Ramacher | 2013-04-21 | 9 | -5/+462 |
| | |||||
* | Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefs | Dwayne Litzenberger | 2013-04-21 | 27 | -118/+95 |
| | |||||
* | Include inttypes.h or sys/inttypes.h based on what autoconf tells us | Dwayne Litzenberger | 2013-04-21 | 7 | -28/+34 |
| | | | | | This should fix compilation on HP-UX 11.31. Thanks Adam Woodbeck for reporting this. | ||||
* | Merge branch 'hash-speedup-wip' | Dwayne Litzenberger | 2013-04-21 | 35 | -949/+602 |
|\ | |||||
| * | Hash: Speed up initialization by removing pure-Python wrappershash-speedup-wip | Dwayne Litzenberger | 2013-02-17 | 21 | -845/+274 |
| | | | | | | | | | | | | | | | | | | | | | | | | The pure Python wrappers around Crypto.Hash.* were convenient, but they slowed down hash initialization by 4-7x. There is a speed trade-off here: The MD5 and SHA1 objects are just wrapped hashlib objects (or old-style md5/sha objects). To maintain API compatibility with the rest of PyCrypto, we still have to wrap them, so they're slower to initialize than the rest of the hash functions. If hashlib ever adds a .new() method, we will automatically use hashlib directly and gain the initialization speed-up. | ||||
| * | Hash: Generic Crypto.Hash.new(algo, [data]) function | Dwayne Litzenberger | 2013-02-17 | 2 | -0/+154 |
| | | | | | | | | | | This allows us to instantiate a new hash given only an existing hash object. | ||||
| * | Hash: Remove "oid" attributes; add "name" attribute | Dwayne Litzenberger | 2013-02-17 | 20 | -103/+92 |
| | | | | | | | | | | | | | | | | | | | | | | | | In PyCrypto v2.5, the "oid" attribute was added to hash objects. In retrospect, this was not a good idea, since the OID is not really a property of the hash algorithm, it's a protocol-specific identifer for the hash functions. PKCS#1 v1.5 uses it, but other protocols (e.g. OpenPGP, DNSSEC, SSH, etc.) use different identifiers, and it doesn't make sense to add these to Crypto.Hash.* every time a new algorithm is added. This also has the benefit of being compatible with the Python standard library's "hashlib" objects, which also have a name attribute. | ||||
| * | Fix dumb typo: "is 2" should be "== 2" | Dwayne Litzenberger | 2013-02-17 | 1 | -1/+1 |
| | | |||||
| * | Counter: Fix compiler warning about signed-unsigned comparison | Dwayne Litzenberger | 2013-02-17 | 2 | -1/+2 |
| | | |||||
| * | Fix compiler warning about "_POSIX_C_SOURCE" being redefined in string.h | Dwayne Litzenberger | 2013-02-17 | 13 | -12/+16 |
| | | | | | | | | The solution is to include Python.h before string.h is included. | ||||
| * | pct-speedtest.py: Add PKCS#1 signing and verification | Dwayne Litzenberger | 2013-02-17 | 1 | -0/+71 |
| | | |||||
| * | Hash: Rename SHA->SHA1 and RIPEMD->RIPEMD160 (pct-speedtest.py) | Dwayne Litzenberger | 2013-02-17 | 1 | -2/+7 |
| | | | | | | | | Oops, I missed this one. | ||||
* | | Add blinding to ElGamal decryption. | Legrandin | 2013-04-21 | 1 | -2/+11 |
| | | |||||
* | | Pass corret stream to TestTextRunner | Sebastian Ramacher | 2013-04-05 | 1 | -0/+2 |
| | | | | | | | | | | | | If stream is not None, add it to kwargs and pass it to TestTextRunner. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at> | ||||
* | | Use correct stream | Sebastian Ramacher | 2013-04-05 | 1 | -1/+1 |
|/ | | | | | | If stream is None, write the value of StringIO to sys.stderr. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at> | ||||
* | Hash: Rename SHA->SHA1 and RIPEMD->RIPEMD160 (2/2) | Dwayne Litzenberger | 2013-02-16 | 2 | -0/+48 |
| | | | | | | | | | These algorithm names were confusing, because there are actually algorithms called "SHA" (a.k.a. SHA-0) and "RIPEMD" (the original version). This commit adds backward-compatibility support for the old Crypto.Hash.SHA and Crypto.Hash.RIPEMD modules. | ||||
* | Hash: Rename SHA->SHA1 and RIPEMD->RIPEMD160 (1/2) | Dwayne Litzenberger | 2013-02-16 | 17 | -55/+60 |
| | | | | | | | | | These algorithm names were confusing, because there are actually algorithms called "SHA" (a.k.a. SHA-0) and "RIPEMD" (the original version). This commit just renames the modules, with no backward-compatibility support. | ||||
* | We also support Python 3.3 | Dwayne Litzenberger | 2013-02-16 | 1 | -1/+1 |
| | |||||
* | Tweak the README | Dwayne Litzenberger | 2013-02-16 | 1 | -0/+2 |
| | |||||
* | OpenBSD: Automatically look for libgmp in /usr/local | Dwayne Litzenberger | 2013-02-16 | 4 | -0/+3411 |
| | |||||
* | Use autoconf to generate compiler options | Dwayne Litzenberger | 2013-02-16 | 14 | -137/+2942 |
| | | | | | | | Hopefully this means we'll break on fewer platforms. Also, remove some of the extra optimization flags (e.g. -O3 -fomit-frame-pointer), which don't really do much. | ||||
* | Fix RSA object serialization: Python 3 compatibility | Dwayne Litzenberger | 2013-02-16 | 1 | -15/+21 |
| | |||||
* | Fix RSA object serialization | Frank Sievertsen | 2013-02-16 | 2 | -0/+62 |
| | |||||
* | asn1: Python 2.1 compatibility | Dwayne Litzenberger | 2013-02-16 | 1 | -0/+2 |
| | |||||
* | Fix random.shuffle SelfTest | Dwayne Litzenberger | 2013-02-16 | 1 | -1/+1 |
| | | | | | | random.shuffle("1") is a no-op, so it doesn't raise TypeError. This is now true of both the stdlib random.shuffle and PyCrypto's random.shuffle implementation. | ||||
* | Fix LP#1061217: random.shuffle takes O(n^2) time | Dwayne Litzenberger | 2013-02-16 | 1 | -7/+7 |
| | | | | | | | | | | | The previous implementation took O(n**2) time and O(n) auxiliary space. We now use the Fisher-Yates algorithm, which takes O(n) time and O(1) space. Thanks to Sujay Jayakar and Andrew Cooke for pointing this out and suggesting a solution. Bug report: https://bugs.launchpad.net/pycrypto/+bug/1061217 | ||||
* | Fix leaks in _fastmath | Sebastian Ramacher | 2013-02-16 | 1 | -2/+3 |
| | | | | | | | Fix leaks in getRandomInteger and rsaKeyNew. If randfunc throws an exception they both don't clean up properly. Thanks to Andreas Stührk for helping me to debug these two leaks. | ||||
* | pct-speedtest.py: Test HMAC modules | Dwayne Litzenberger | 2013-02-16 | 1 | -1/+23 |
| | |||||
* | pct-speedtest.py: Add some comments | Dwayne Litzenberger | 2013-02-16 | 1 | -0/+5 |
| | |||||
* | pct-speedtest.py: Also test the standard hashlib modules, if possible | Dwayne Litzenberger | 2013-02-16 | 1 | -8/+28 |
| | | | | | On my machine, hashlib is about 5x faster than PyCrypto for single-block inputs. :( (It's about the same for long inputs.) | ||||
* | pct-speedtest.py: Add tests for SHA224/SHA384/SHA512 | Dwayne Litzenberger | 2013-02-16 | 1 | -1/+4 |
| | |||||
* | pct-speedtest.py: Python 3 compatibility | Dwayne Litzenberger | 2013-02-16 | 1 | -4/+4 |
| | |||||
* | pct-speedtest.py: Python 2.1-2.3 compatibility | Dwayne Litzenberger | 2013-02-16 | 1 | -1/+8 |
| | | | | They don't have os.urandom, so use Crypto.Random.get_random_bytes | ||||
* | asn1: make DerObject into a new-style class | Dwayne Litzenberger | 2013-02-16 | 1 | -1/+1 |
| | |||||
* | SHA2: Don't export symbol 'add_length' | Dwayne Litzenberger | 2013-02-11 | 1 | -1/+1 |
| | | | | | | Exporting symbols can cause symbol conflicts with external libraries, causing the dynamic linker to silently pick one of the implementations, which can lead to subtle bugs if they're actually different functions. | ||||
* | Update tools/create-pythons.sh | Dwayne Litzenberger | 2013-02-03 | 1 | -7/+11 |
| | |||||
* | Use os.chmod instead of os.system("chmod ...") | Sebastian Ramacher | 2013-02-02 | 1 | -2/+5 |
| | |||||
* | Add build to TestCommand's sub_commands | Sebastian Ramacher | 2013-02-02 | 1 | -0/+6 |
| | | | | | | | | ... and run the sub_commands in TestCommand.run. So if python setup.py test is executed before ever running the build target, the extension modules are built. Bug: https://bugs.launchpad.net/pycrypto/+bug/1055256 Bug: https://bugs.launchpad.net/pycrypto/+bug/976171 | ||||
* | Check in some scripts I use for building and testing against multiple ↵ | Dwayne Litzenberger | 2013-02-02 | 3 | -0/+233 |
| | | | | versions of Python |