aboutsummaryrefslogtreecommitdiff
path: root/rsa/common.py
AgeCommit message (Collapse)Author
2017-04-18Ceiling division implementation (#88)Michael Manganiello
Created as a new function as it will be needed by the new PKCS#1 2.0 implementation. Specifically, for the MGF1 function used in the OAEP encoding/decoding. This allows us not to have `math` dependencies
2017-01-17Use iterative zip in Python 2 (#85)Michael Manganiello
Good catch, thanks!
2016-03-29No longer require string operations to find bit lengths.Sybren A. Stüvel
Now that we no longer support Python 2.6, we can use int.bit_length() instead. Co-authored by @adamantike.
2016-03-29Introduced NotRelativePrimeError exception.Sybren A. Stüvel
This makes catching exceptions slightly stronger, as it is now possible to check for this specific exception. Furthermore, information about the not-prime numbers is included in the exception object.
2016-03-29Added unittest for rsa.common.inverseSybren A. Stüvel
This unittest tests both execution branches of the function, reducing randomness of code coverage.
2016-02-05Updated documentation, mostly http -> https changesSybren A. Stüvel
Also: - changed http to https in the code - changed header underlines in the documentation to match the header length
2016-01-22Big refactor to become more PEP8 compliant.Sybren A. Stüvel
Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
2011-08-24Reverts docstring quoting syntax.Yesudeep Mangalapilly
2011-08-24Adds the doctests for bit_size back into the function docstrings.Yesudeep Mangalapilly
2011-08-17Fixes a silly error.Yesudeep Mangalapilly
2011-08-16Moves incompatible doctests to unit test modules.Yesudeep Mangalapilly
2011-08-16Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly
2011-08-12Adds a much faster bit_size implementation causing an overall speed up.Yesudeep Mangalapilly
* Note that the machine aligned integer_to_bytes is still faster than the older version.
2011-08-11Re-implements byte_size using divmod avoiding floating-point calculations.Yesudeep Mangalapilly
2011-08-10Added basic Chinese Remainder theorem implementation, not yet used.Sybren A. Stüvel
2011-07-24Merged keygen-accurate branch to default branchSybren A. Stüvel
2011-07-24Better calculation of bit sizeSybren A. Stüvel
2011-07-23Added Apache 2 license notice to source filesSybren A. Stüvel
2011-07-10Lot of refactorings:Sybren A. Stüvel
- Added PKCS#1 module - Moved some functionality to common.py - simplified random number generation - improved and extended doctests - added changelog
2011-06-20Fixed/added doctestsSybren A. Stüvel
2011-06-20More separation of the codeSybren A. Stüvel