aboutsummaryrefslogtreecommitdiff
path: root/rsa/transform.py
AgeCommit message (Collapse)Author
2020-06-03Drop character encoding markers for Python 2.xAndrey Semakin
2019-08-04Added flake8 as development dependency and fixed reported issuesSybren A. Stüvel
2019-08-04Removed compatibility code for Python 2.7 and 3.4Sybren A. Stüvel
2018-09-16Moved `get_word_alignment()` from `_compat.py` to `machine_size.py`Sybren A. Stüvel
In preparation of removal of Python 2.7 support, I only want to have compatibility code for Python 2.7 in `_compat.py`, and not other kinds of 'compatibility'.
2016-05-08Drop byte_literal in favour of b''adamantike
2016-05-08xrange compatibility optimization for Python 2 (#69)Michael Manganiello
2016-04-23Drop psyco usageSybren A. Stüvel
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-22Updated doctests to Python 3.5 and automatically running with Tox.Sybren A. Stüvel
I've also removed doctests from the obsolete rsa/_versionXXX.py files, as those files aren't even compatible with Python 3.x anyway.
2016-01-22Using r""" for some docstringsSybren A. Stüvel
2016-01-22Big refactor to become more PEP8 compliant.Sybren A. Stüvel
Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
2012-06-18Fixed doctestsSybren A. Stüvel
2011-08-24Reverts docstring quoting syntax.Yesudeep Mangalapilly
2011-08-24Adds back older doctests for _int2bytes for compliance.Yesudeep Mangalapilly
2011-08-24Allow block_size=None in _int2bytes.Yesudeep Mangalapilly
2011-08-24Allow fill_size=None, chunk_size=None in int2bytes.Yesudeep Mangalapilly
2011-08-16Fixes bad zero-prefix padding bug in older _int2bytes to pass all tests.Yesudeep Mangalapilly
2011-08-16Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly
2011-08-14Much cleaner implementation of int2bytes. No loss in speed.Yesudeep Mangalapilly
2011-08-13Fixes doctest.Yesudeep Mangalapilly
2011-08-13Measure twice, cut once.Yesudeep Mangalapilly
2011-08-13Finally tracked down the bug to incorrect padding. Now all tests should passYesudeep Mangalapilly
for the new int2bytes.
2011-08-12Completes machine-aligned int2bytes implementation.Yesudeep Mangalapilly
* This implementation is generally in microseconds instead of milliseconds, which makes it 20x-40x faster than the older implementation. Tests for all of the behavior of the function have been added to tests/test_transform.py. Hope this helps make python-rsa even better. =)
2011-08-12Adds verification tests for int2bytes and bytes2intYesudeep Mangalapilly
* 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.
2011-08-11Adds speed tests for int2bytes and old_int2bytes.Yesudeep Mangalapilly
* 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
2011-08-11Even better. Discard prefix zero bytes if block size is not specified.Yesudeep Mangalapilly
2011-08-11Reduces more calculation in int2bytes.Yesudeep Mangalapilly
2011-08-11Adds faster ``struct.pack``-based int2bytes implementation.Yesudeep Mangalapilly
2011-08-11Porting to Python 3 complete. All tests except pyasn1 stuff pass.Yesudeep Mangalapilly
2011-07-31Removed obsolete codeSybren A. Stüvel
2011-07-30Using int() rather than long()Sybren A. Stüvel
2011-07-23Added Apache 2 license notice to source filesSybren A. Stüvel
2011-07-23Bytes2int transformation more efficient using binascii.hexlifySybren A. Stüvel
2011-07-19Fixed doctestSybren A. Stüvel
2011-07-19Fixed file permissionsSybren A. Stüvel
2011-07-14Use new-style integer divisionSybren A. Stüvel
2011-07-10Added PKCS#1 signatures and verification of signaturesSybren 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-07-10Reinstated some of the backed out changeset 812d745b6bef:Sybren A. Stüvel
- added support for block size - improved some exceptions
2011-07-10Backed out changeset 812d745b6befSybren A. Stüvel
2011-07-10Removed some fluff, rewritten some stuff, broken the lotSybren A. Stüvel
2011-07-09Added support for padding blocksSybren A. Stüvel
2011-06-20Added block padding to be able to work with leading zeroes, breaks all kind ↵Sybren A. Stüvel
of stuff
2011-06-20Fixed/added doctestsSybren A. Stüvel
2011-06-20Slightly better readable codeSybren A. Stüvel
2011-06-19Split module into several filesSybren A. Stüvel