summaryrefslogtreecommitdiff
path: root/rsa/transform.py
Commit message (Collapse)AuthorAgeFilesLines
* Reformatting with BlackSybren A. Stüvel2021-03-291-4/+4
| | | | No functional changes.
* Drop character encoding markers for Python 2.xAndrey Semakin2020-06-031-2/+0
|
* Added flake8 as development dependency and fixed reported issuesSybren A. Stüvel2019-08-041-1/+1
|
* Removed compatibility code for Python 2.7 and 3.4Sybren A. Stüvel2019-08-041-153/+12
|
* Moved `get_word_alignment()` from `_compat.py` to `machine_size.py`Sybren A. Stüvel2018-09-161-3/+3
| | | | | | 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'.
* Drop byte_literal in favour of b''adamantike2016-05-081-11/+11
|
* xrange compatibility optimization for Python 2 (#69)Michael Manganiello2016-05-081-0/+1
|
* Drop psyco usageSybren A. Stüvel2016-04-231-10/+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
* Updated doctests to Python 3.5 and automatically running with Tox.Sybren A. Stüvel2016-01-221-3/+3
| | | | | I've also removed doctests from the obsolete rsa/_versionXXX.py files, as those files aren't even compatible with Python 3.x anyway.
* Using r""" for some docstringsSybren A. Stüvel2016-01-221-2/+2
|
* Big refactor to become more PEP8 compliant.Sybren A. Stüvel2016-01-221-15/+19
| | | | | Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
* Fixed doctestsSybren A. Stüvel2012-06-181-1/+1
|
* Reverts docstring quoting syntax.Yesudeep Mangalapilly2011-08-241-10/+10
|
* Adds back older doctests for _int2bytes for compliance.Yesudeep Mangalapilly2011-08-241-0/+17
|
* Allow block_size=None in _int2bytes.Yesudeep Mangalapilly2011-08-241-4/+5
|
* Allow fill_size=None, chunk_size=None in int2bytes.Yesudeep Mangalapilly2011-08-241-4/+4
|
* Fixes bad zero-prefix padding bug in older _int2bytes to pass all tests.Yesudeep Mangalapilly2011-08-161-8/+10
|
* Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly2011-08-161-18/+2
|
* Much cleaner implementation of int2bytes. No loss in speed.Yesudeep Mangalapilly2011-08-141-56/+69
|
* Fixes doctest.Yesudeep Mangalapilly2011-08-131-1/+1
|
* Measure twice, cut once.Yesudeep Mangalapilly2011-08-131-3/+8
|
* Finally tracked down the bug to incorrect padding. Now all tests should passYesudeep Mangalapilly2011-08-131-14/+3
| | | | for the new int2bytes.
* Completes machine-aligned int2bytes implementation.Yesudeep Mangalapilly2011-08-121-0/+9
| | | | | | | | | * 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. =)
* Adds verification tests for int2bytes and bytes2intYesudeep Mangalapilly2011-08-121-48/+69
| | | | | | | | | * 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 Mangalapilly2011-08-111-6/+65
| | | | | | | | | | | | | | | | | | | | | | * 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
* Even better. Discard prefix zero bytes if block size is not specified.Yesudeep Mangalapilly2011-08-111-22/+29
|
* Reduces more calculation in int2bytes.Yesudeep Mangalapilly2011-08-111-10/+17
|
* Adds faster ``struct.pack``-based int2bytes implementation.Yesudeep Mangalapilly2011-08-111-11/+12
|
* Porting to Python 3 complete. All tests except pyasn1 stuff pass.Yesudeep Mangalapilly2011-08-111-10/+12
|
* Removed obsolete codeSybren A. Stüvel2011-07-311-126/+1
|
* Using int() rather than long()Sybren A. Stüvel2011-07-301-4/+4
|
* Added Apache 2 license notice to source filesSybren A. Stüvel2011-07-231-0/+16
|
* Bytes2int transformation more efficient using binascii.hexlifySybren A. Stüvel2011-07-231-17/+7
|
* Fixed doctestSybren A. Stüvel2011-07-191-2/+0
|
* Fixed file permissionsSybren A. Stüvel2011-07-191-0/+0
|
* Use new-style integer divisionSybren A. Stüvel2011-07-141-1/+1
|
* Added PKCS#1 signatures and verification of signaturesSybren A. Stüvel2011-07-101-0/+3
|
* Lot of refactorings:Sybren A. Stüvel2011-07-101-22/+4
| | | | | | | | - Added PKCS#1 module - Moved some functionality to common.py - simplified random number generation - improved and extended doctests - added changelog
* Reinstated some of the backed out changeset 812d745b6bef:Sybren A. Stüvel2011-07-101-1/+40
| | | | | - added support for block size - improved some exceptions
* Backed out changeset 812d745b6befSybren A. Stüvel2011-07-101-34/+98
|
* Removed some fluff, rewritten some stuff, broken the lotSybren A. Stüvel2011-07-101-98/+34
|
* Added support for padding blocksSybren A. Stüvel2011-07-091-10/+50
|
* Added block padding to be able to work with leading zeroes, breaks all kind ↵Sybren A. Stüvel2011-06-201-1/+3
| | | | of stuff
* Fixed/added doctestsSybren A. Stüvel2011-06-201-3/+9
|
* Slightly better readable codeSybren A. Stüvel2011-06-201-2/+2
|
* Split module into several filesSybren A. Stüvel2011-06-191-0/+152