summaryrefslogtreecommitdiff
path: root/rsa/key.py
Commit message (Collapse)AuthorAgeFilesLines
* Add more type hintsAndrey Semakin2020-06-031-12/+16
|
* Drop character encoding markers for Python 2.xAndrey Semakin2020-06-031-2/+0
|
* Choose blinding factor relatively prime to NSybren A. Stüvel2020-04-141-2/+9
| | | | This is a requirement for RSA blinding, but wasn't implemented yet.
* Added flake8 as development dependency and fixed reported issuesSybren A. Stüvel2019-08-041-1/+2
|
* Added type annotations + some fixes to get them correctSybren A. Stüvel2019-08-041-46/+49
| | | | | | 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
* Use iterative zip in Python 2 (#85)Michael Manganiello2017-01-171-1/+1
| | | Good catch, thanks!
* Remove custom PrivateKey exponents/coefficient (#71)Michael Manganiello2017-01-051-32/+25
| | | Thanks for the improvements!
* Fixes a typo in docstrings (#83)Alexandr2016-11-081-2/+2
|
* Drop byte_literal in favour of b''adamantike2016-05-081-3/+3
|
* xrange compatibility optimization for Python 2 (#69)Michael Manganiello2016-05-081-1/+1
|
* Implemented __hash__ function for key objects.Sybren A. Stüvel2016-03-291-0/+6
| | | | | | Overriding __eq__ blocks inheritance of __hash__ in Python 3. Fixes issue #55
* Introduced NotRelativePrimeError exception.Sybren A. Stüvel2016-03-291-3/+5
| | | | | | 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.
* PEP8 formattingSybren A. Stüvel2016-03-291-9/+9
|
* More CLI tests & clearer bytes stuffSybren A. Stüvel2016-03-171-7/+58
| | | | | Ensuring that bytes are written correctly on all supported Python versions, including when writing to stdout.
* 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-3/+3
|
* Fix #18: Add an 'exponent' argument to key.newkeys()Sybren A. Stüvel2016-01-271-15/+41
| | | | | | | | 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.
* Removed unused importSybren A. Stüvel2016-01-271-1/+1
|
* Removed code duplicationSybren A. Stüvel2016-01-271-11/+13
|
* Fixed bug where PrivateKey.exp2 wasn't correctly processed in the constructor.Sybren A. Stüvel2016-01-271-5/+5
| | | | | If exp1 was not given and exp2 was, it would still recompute exp2 instead of using the passed value.
* Fix #12 Allow pickling of keys.Sybren A. Stüvel2016-01-221-0/+24
| | | | | Pickling is now possible, with the added note that one should never unpickle from an untrusted or unauthenticated source.
* Removed doctest for blinding, as it is not suitable as an example for end users.Sybren A. Stüvel2016-01-221-8/+0
|
* Another pass at blinding.Sybren A. Stüvel2016-01-221-17/+18
|
* Use random number when blinding, and also blind when verifying signatures.Sybren A. Stüvel2016-01-221-36/+72
|
* Fixed some docstrings to use Sphinx-compatible notationSybren A. Stüvel2016-01-221-14/+15
|
* Fix #19: Implemented blinding when decrypting.Sybren A. Stüvel2016-01-221-0/+36
| | | | | This prevents side-channel (such as timing) attacks, see: https://en.wikipedia.org/wiki/Blinding_%28cryptography%29
* Fix #30, removed use of deprecated `base64.decodestring` from docstringsSybren A. Stüvel2016-01-221-2/+2
|
* Big refactor to become more PEP8 compliant.Sybren A. Stüvel2016-01-221-84/+83
| | | | | Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
* Primes regeneration in RSA keys generationMichael Manganiello2016-01-211-3/+11
|
* Corrected accurate mode of 'newkeys' functionMichael Manganiello2016-01-211-2/+4
|
* Explicitly cast ASN.1 integer type to Python intSybren A. Stüvel2012-10-121-1/+1
|
* Added support for loading public keys from OpenSSLSybren A. Stüvel2012-10-111-18/+49
|
* Reverts docstring quoting syntax.Yesudeep Mangalapilly2011-08-241-37/+37
|
* Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly2011-08-161-31/+31
|
* Porting to Python 3 complete. All tests except pyasn1 stuff pass.Yesudeep Mangalapilly2011-08-111-2/+3
|
* Tests are now functional (only running without syntax errors) on Python 3 too.Yesudeep Mangalapilly2011-08-111-5/+5
|
* Added basic Chinese Remainder theorem implementation, not yet used.Sybren A. Stüvel2011-08-101-30/+5
|
* Added parallel.py module and ability to use multiprocessing when generating keysSybren A. Stüvel2011-08-101-19/+41
|
* Removed unused import of abc module, updated changelogSybren A. Stüvel2011-08-071-1/+0
|
* fixed doctestsSybren A. Stüvel2011-07-311-6/+6
|
* More documentationSybren A. Stüvel2011-07-311-27/+33
|
* Using int() rather than long()Sybren A. Stüvel2011-07-301-6/+6
|
* Better type checking in core, casting ASN-ints to Python intSybren A. Stüvel2011-07-301-2/+4
|
* Specify format (PEM/DER) in capitalsSybren A. Stüvel2011-07-241-8/+8
|
* Added simpler save/load functionsSybren A. Stüvel2011-07-241-6/+50
|
* Added saving and loading public keys in PKCS#1 format (PEM+DER)Sybren A. Stüvel2011-07-241-1/+37
|
* Added saving and loading public keys in DER formatSybren A. Stüvel2011-07-241-2/+55
|
* Merged keygen-accurate branch to default branchSybren A. Stüvel2011-07-241-0/+16
|\