summaryrefslogtreecommitdiff
path: root/tests/test_key.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove custom PrivateKey exponents/coefficient (#71)Michael Manganiello2017-01-051-0/+7
| | | Thanks for the improvements!
* Implemented __hash__ function for key objects.Sybren A. Stüvel2016-03-291-0/+11
| | | | | | Overriding __eq__ blocks inheritance of __hash__ in Python 3. Fixes issue #55
* More tests with hard-coded 'random' values.Sybren A. Stüvel2016-03-291-1/+3
| | | | This reduces noise in the code coverage measurements.
* Added unittest for rsa.key.gen_keysSybren A. Stüvel2016-03-291-0/+17
| | | | | This unittest tests both execution branches of the function (keys relatively prime or not), reducing randomness of code coverage.
* Fix #18: Add an 'exponent' argument to key.newkeys()Sybren A. Stüvel2016-01-271-2/+14
| | | | | | | | 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.
* Fix #19: Implemented blinding when decrypting.Sybren A. Stüvel2016-01-221-0/+30
This prevents side-channel (such as timing) attacks, see: https://en.wikipedia.org/wiki/Blinding_%28cryptography%29