Skip to content

Commit 0b4075f

Browse files
authored
Release 0.2.2
1 parent 78691bd commit 0b4075f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cryptographic_functions/elgamal_calculations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def keypair_generation(p, g, d=None):
2929

3030
# Choose an integer d such that 1 ≤ d < (p - 1)
3131
if d is None:
32-
a = random.randrange(1, p - 1)
32+
d = random.randrange(1, p - 1)
3333

3434
if d not in range(1, p - 1):
3535
print(f'Für die Variable d = {d} muss gelten 1 ≤ {d} < {p - 1}.')

0 commit comments

Comments
 (0)