summaryrefslogtreecommitdiff
path: root/rsa/common.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2016-03-29 18:15:25 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2016-03-29 18:15:25 +0200
commit46b72a462dbd7955f7e8f13cef1b1a3cb0af2c51 (patch)
tree1c581cc012509d3879bedb9cb42cca1e3e92689e /rsa/common.py
parentc042a0e7fe12d5b4cbbc22d80fd4ae31f2781bea (diff)
downloadrsa-git-46b72a462dbd7955f7e8f13cef1b1a3cb0af2c51.tar.gz
Added unittest for rsa.common.inverse
This unittest tests both execution branches of the function, reducing randomness of code coverage.
Diffstat (limited to 'rsa/common.py')
-rw-r--r--rsa/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/common.py b/rsa/common.py
index e074334..b573252 100644
--- a/rsa/common.py
+++ b/rsa/common.py
@@ -131,7 +131,7 @@ def extended_gcd(a, b):
def inverse(x, n):
- """Returns x^-1 (mod n)
+ """Returns the inverse of x % n under multiplication, a.k.a x^-1 (mod n)
>>> inverse(7, 4)
3