We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78691bd commit 0b4075fCopy full SHA for 0b4075f
1 file changed
cryptographic_functions/elgamal_calculations.py
@@ -29,7 +29,7 @@ def keypair_generation(p, g, d=None):
29
30
# Choose an integer d such that 1 ≤ d < (p - 1)
31
if d is None:
32
- a = random.randrange(1, p - 1)
+ d = random.randrange(1, p - 1)
33
34
if d not in range(1, p - 1):
35
print(f'Für die Variable d = {d} muss gelten 1 ≤ {d} < {p - 1}.')
0 commit comments