summaryrefslogtreecommitdiff
path: root/rsa/prime.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typosKian-Meng, Ang2021-11-241-1/+1
|
* Reformatting with BlackSybren A. Stüvel2021-03-291-5/+5
| | | | No functional changes.
* Drop character encoding markers for Python 2.xAndrey Semakin2020-06-031-2/+0
|
* Added type annotations + some fixes to get them correctSybren A. Stüvel2019-08-041-6/+6
| | | | | | One functional change: `CryptoOperation.read_infile()` now reads bytes from `sys.stdin` instead of text. This is necessary to be consistent with the rest of the code, which all deals with bytes.
* Removed compatibility code for Python 2.7 and 3.4Sybren A. Stüvel2019-08-041-1/+0
|
* speedupyjqiang2018-09-161-1/+1
| | | "if A and B" if mostly A is True then we should judge B at first
* xrange compatibility optimization for Python 2 (#69)Michael Manganiello2016-05-081-0/+1
|
* Trivial fix on primality testingadamantike2016-04-161-1/+1
|
* Set Miller-Rabin rounds based on bitsizeadamantike2016-04-151-8/+32
|
* Using set instead of list, it's faster.Sybren A. Stüvel2016-03-171-1/+1
|
* Removed a doctest, it's covered by a unit test anyway.Sybren A. Stüvel2016-03-171-2/+0
|
* Prevent possible infinite loops.Sybren A. Stüvel2016-03-171-3/+8
|
* Remove Solovay-Strassen implementationadamantike2016-03-171-63/+0
|
* Use Miller-Rabin primality testingadamantike2016-03-171-1/+70
|
* Use specific function for odd integer generationadamantike2016-03-171-4/+1
|
* Correct doctest returns for 'are_relatively_prime'adamantike2016-02-051-2/+2
|
* Remove unneeded conditional on Jacobi functionadamantike2016-02-051-2/+0
|
* Updated documentation, mostly http -> https changesSybren A. Stüvel2016-02-051-1/+1
| | | | | | Also: - changed http to https in the code - changed header underlines in the documentation to match the header length
* Fixed PEP8 style issuesSybren A. Stüvel2016-01-271-6/+10
|
* Big refactor to become more PEP8 compliant.Sybren A. Stüvel2016-01-221-29/+31
| | | | | Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
* Simplified calculation of GCDMichael Manganiello2016-01-211-3/+3
|
* Reverts docstring quoting syntax.Yesudeep Mangalapilly2011-08-241-16/+16
|
* Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly2011-08-161-2/+2
|
* Tests are now functional (only running without syntax errors) on Python 3 too.Yesudeep Mangalapilly2011-08-111-3/+3
|
* Added parallel.py module and ability to use multiprocessing when generating keysSybren A. Stüvel2011-08-101-3/+21
|
* Added Apache 2 license notice to source filesSybren A. Stüvel2011-07-231-0/+16
|
* Slight simplification of is_primeSybren A. Stüvel2011-07-231-12/+6
|
* Use new-style integer divisionSybren A. Stüvel2011-07-141-1/+1
|
* Removed warningSybren A. Stüvel2011-07-101-1/+1
|
* Lot of refactorings:Sybren A. Stüvel2011-07-101-6/+24
| | | | | | | | - Added PKCS#1 module - Moved some functionality to common.py - simplified random number generation - improved and extended doctests - added changelog
* Split module into several filesSybren A. Stüvel2011-06-191-0/+120