Skip to content

Commit

Permalink
Improve installation fix DSA
Browse files Browse the repository at this point in the history
  • Loading branch information
dkushche committed Nov 14, 2023
1 parent cd66d95 commit d6f3b11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion algo/dsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def dsa_processing(data, p_value, q_value, x_value, k_value, encrypt):
f"Cannot find correct h_value in range(1;{p_value - 1})"
)
g_value = pow(h_value, int((p_value - 1) / q_value))
open_key = pow(h_value, x_value) % q_value
open_key = pow(g_value, x_value) % p_value

if encrypt == "sign":
return dsa_sign(data, p_value, q_value, x_value, k_value, g_value)
Expand Down
4 changes: 2 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/python3
#!/usr/bin/env python3

""" Install
Expand All @@ -20,7 +20,7 @@

print("Start installation process")

subprocess.run(["python", "-m", "venv", "crypto_env" ], check=True)
subprocess.run([sys.executable, "-m", "venv", "crypto_env" ], check=True)

if platform.system() == "Linux":
subprocess.run(["crypto_env/bin/pip3", "install", "-r", "linux_requirements.txt"], check=True)
Expand Down

0 comments on commit d6f3b11

Please sign in to comment.