Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implementation of bitwise XOR function for bytes object (#72) | Michael Manganiello | 2017-01-16 | 1 | -1/+46 |
| | |||||
* | Create PY2 constant to simplify compatibility decisions (#82) | Michael Manganiello | 2017-01-15 | 2 | -15/+12 |
| | | | It's about time to get this merged, thanks again! | ||||
* | Remove custom PrivateKey exponents/coefficient (#71) | Michael Manganiello | 2017-01-05 | 2 | -1/+47 |
| | | | Thanks for the improvements! | ||||
* | Drop byte_literal in favour of b'' | adamantike | 2016-05-08 | 7 | -46/+42 |
| | |||||
* | xrange compatibility optimization for Python 2 (#69) | Michael Manganiello | 2016-05-08 | 2 | -1/+2 |
| | |||||
* | Use 'assertEqual' instead of deprecated alias (#73) | Michael Manganiello | 2016-05-08 | 1 | -10/+10 |
| | |||||
* | Fix edge case for byte() call at pkcs1 test (#64) | Michael Manganiello | 2016-04-23 | 1 | -1/+2 |
| | | | Nice catch :) | ||||
* | Unit test for Mersenne primes | adamantike | 2016-04-23 | 1 | -0/+19 |
| | |||||
* | Trivial fix on primality testing | adamantike | 2016-04-16 | 1 | -3/+3 |
| | |||||
* | Set Miller-Rabin rounds based on bitsize | adamantike | 2016-04-15 | 1 | -0/+14 |
| | |||||
* | Implemented __hash__ function for key objects. | Sybren A. Stüvel | 2016-03-29 | 1 | -0/+11 |
| | | | | | | Overriding __eq__ blocks inheritance of __hash__ in Python 3. Fixes issue #55 | ||||
* | No longer require string operations to find bit lengths. | Sybren A. Stüvel | 2016-03-29 | 1 | -7/+16 |
| | | | | | Now that we no longer support Python 2.6, we can use int.bit_length() instead. Co-authored by @adamantike. | ||||
* | More tests with hard-coded 'random' values. | Sybren A. Stüvel | 2016-03-29 | 2 | -1/+35 |
| | | | | This reduces noise in the code coverage measurements. | ||||
* | Added unittest for rsa.key.gen_keys | Sybren A. Stüvel | 2016-03-29 | 1 | -0/+17 |
| | | | | | This unittest tests both execution branches of the function (keys relatively prime or not), reducing randomness of code coverage. | ||||
* | Added unittest for rsa.common.inverse | Sybren A. Stüvel | 2016-03-29 | 1 | -1/+11 |
| | | | | | This unittest tests both execution branches of the function, reducing randomness of code coverage. | ||||
* | Removed monkey-patch of unittest | Sybren A. Stüvel | 2016-03-29 | 1 | -13/+0 |
| | | | | This was required for Python 2.6, which we no longer support. | ||||
* | Added unit test for rsa.util.private_to_public() | Sybren A. Stüvel | 2016-03-17 | 1 | -0/+19 |
| | |||||
* | More CLI tests & clearer bytes stuff | Sybren A. Stüvel | 2016-03-17 | 5 | -12/+178 |
| | | | | | Ensuring that bytes are written correctly on all supported Python versions, including when writing to stdout. | ||||
* | Attempt at unit-testing CLI commands | Sybren A. Stüvel | 2016-03-17 | 1 | -0/+149 |
| | |||||
* | Ensuring that PEM output is always in bytes. | Sybren A. Stüvel | 2016-03-17 | 1 | -1/+15 |
| | | | | | This may break some applications. However, it does make the RSA library easier to use on different Python versions. | ||||
* | Removed deprecated functionality. | Sybren A. Stüvel | 2016-03-17 | 2 | -161/+0 |
| | | | | | | | | | | | The following modules have been removed: - rsa._version133 - rsa._version200 - rsa.bigfile - rsa.varblock The encrypt/decrypt-bigfile CLI commands have also been removed. | ||||
* | Allow loading PEM from strings (not just bytes), closes issue #49 | Sybren A. Stüvel | 2016-03-17 | 1 | -2/+49 |
| | |||||
* | Reintroduced test for rsa.prime.is_prime | Sybren A. Stüvel | 2016-03-17 | 1 | -0/+23 |
| | |||||
* | Remove Solovay-Strassen implementation | adamantike | 2016-03-17 | 1 | -193/+0 |
| | |||||
* | Add Jacobi test for table of values | adamantike | 2016-02-05 | 1 | -0/+214 |
| | |||||
* | Updated documentation, mostly http -> https changes | Sybren A. Stüvel | 2016-02-05 | 10 | -10/+10 |
| | | | | | | Also: - changed http to https in the code - changed header underlines in the documentation to match the header length | ||||
* | Fix #18: Add an 'exponent' argument to key.newkeys() | Sybren A. Stüvel | 2016-01-27 | 1 | -2/+14 |
| | | | | | | | | Adds the possibility to create a new key using a custom exponent. Mostly for compatibility. Also removed the unused parameter nbits from calculate_keys(). I added a new function calculate_keys_custom_exponent() so that people still passing a value to nbits don't accidentally use it as the exponent. | ||||
* | Simplified test structure a bit, so we no longer need to set PYTHONPATH | Sybren A. Stüvel | 2016-01-27 | 4 | -57/+1 |
| | | | | | The u'' string prefix was reintroduced in Python 3.3, and since we've dropped py3.2 support we can avoid the whole py{2k,3k}constants.py mess. | ||||
* | Fix #12 Allow pickling of keys. | Sybren A. Stüvel | 2016-01-22 | 1 | -0/+20 |
| | | | | | Pickling is now possible, with the added note that one should never unpickle from an untrusted or unauthenticated source. | ||||
* | Fix #19: Implemented blinding when decrypting. | Sybren A. Stüvel | 2016-01-22 | 1 | -0/+30 |
| | | | | | This prevents side-channel (such as timing) attacks, see: https://en.wikipedia.org/wiki/Blinding_%28cryptography%29 | ||||
* | Big refactor to become more PEP8 compliant. | Sybren A. Stüvel | 2016-01-22 | 10 | -72/+53 |
| | | | | | Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis. | ||||
* | Fix #27: Close Pipes at parallel version of genprime. | Sybren A. Stüvel | 2016-01-22 | 1 | -0/+20 |
| | | | | Now closing pipes after reading result, and added a unittest. | ||||
* | Updated key loading example and included it as unit test, fixes bug #31 | Sybren A. Stüvel | 2016-01-21 | 2 | -0/+17 |
| | |||||
* | No longer using obsolete base64 interface, fixes bug #30 | Sybren A. Stüvel | 2016-01-21 | 1 | -2/+2 |
| | |||||
* | Removed dependency on unittest2, also merged requirements.txt for py 2.x and 3.x | Sybren A. Stüvel | 2016-01-21 | 9 | -22/+22 |
| | |||||
* | Added character encoding markers for Python 2.x | Sybren A. Stüvel | 2015-11-05 | 6 | -0/+6 |
| | |||||
* | Added per-file licenses | Roy Kokkelkoren | 2015-10-25 | 13 | -2/+188 |
| | |||||
* | rsa.pkcs1.verify() should return True when successful | Tim Heckman | 2012-10-17 | 2 | -2/+2 |
| | | | | | | | | | | | | | | | - when verification passes verify() will return True, instead of None. If verification fails the function will still raise a rsa.pkcs1.VerificationError for legacy purposes. - update the docs to note that the verify() function returns True when successful - write unit tests to verify this new behavior This commit passes all build tests: Ran 44 tests in 1.217s OK | ||||
* | Tweaked unittests for Python 3.x | Sybren A. Stüvel | 2012-06-18 | 1 | -12/+0 |
| | |||||
* | Fixed unittesting with tox | Sybren A. Stüvel | 2011-11-06 | 1 | -1/+1 |
| | |||||
* | Reverts docstring quoting syntax. | Yesudeep Mangalapilly | 2011-08-24 | 6 | -30/+30 |
| | |||||
* | Reorganizes tests. | Yesudeep Mangalapilly | 2011-08-17 | 1 | -4/+3 |
| | |||||
* | Fixes a silly error. | Yesudeep Mangalapilly | 2011-08-17 | 1 | -2/+11 |
| | |||||
* | Moves incompatible doctests to unit test modules. | Yesudeep Mangalapilly | 2011-08-16 | 2 | -0/+26 |
| | |||||
* | Adds common includes and tests. | Yesudeep Mangalapilly | 2011-08-16 | 1 | -0/+3 |
| | |||||
* | Parellelized testing. Caught a lot of bugs. | Yesudeep Mangalapilly | 2011-08-16 | 7 | -30/+80 |
| | |||||
* | Adds verification tests for int2bytes and bytes2int | Yesudeep Mangalapilly | 2011-08-12 | 1 | -10/+45 |
| | | | | | | | | | * There is a bug in the older int2bytes implementation. I've raised an issue on bitbucket for that already. #11 The pkcs1 file verification test fails if the behavior for int2bytes is corrected. | ||||
* | Adds speed tests for int2bytes and old_int2bytes. | Yesudeep Mangalapilly | 2011-08-11 | 1 | -1/+9 |
| | | | | | | | | | | | | | | | | | | | | | | * In the following tests, the first speed test for each version of Python checked is the new implementation and the second is the old implementation. $ ./speed.sh int2bytes speed test python2.5 1000 loops, best of 3: 315 usec per loop 100 loops, best of 3: 4.87 msec per loop python2.6 10000 loops, best of 3: 170 usec per loop 100 loops, best of 3: 3.34 msec per loop python2.7 10000 loops, best of 3: 169 usec per loop 100 loops, best of 3: 2.8 msec per loop python3.2 10000 loops, best of 3: 169 usec per loop 100 loops, best of 3: 3.16 msec per loop | ||||
* | Adds tests for int2bytes. | Yesudeep Mangalapilly | 2011-08-11 | 1 | -0/+24 |
| | |||||
* | Removes unnecessary code that I had added. | Yesudeep Mangalapilly | 2011-08-11 | 1 | -6/+0 |
| |