Skip to content

Commit

Permalink
Release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
redisa committed Jan 26, 2021
1 parent 78691bd commit 0b4075f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptographic_functions/elgamal_calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def keypair_generation(p, g, d=None):

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

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

0 comments on commit 0b4075f

Please sign in to comment.