diff --git a/cryptoquail/rsa.py b/cryptoquail/rsa.py index 0106777..7931ddc 100644 --- a/cryptoquail/rsa.py +++ b/cryptoquail/rsa.py @@ -10,5 +10,5 @@ def generate_d(p, q, e): return a def encrypt(m, n, e): return (m ** e) % n -def decrypt(c, d, n): - return (c**d) % n +def decrypt(c, n, d): + return (c**n) % d