Skip to content

Commit

Permalink
Revert spurious class definition changes
Browse files Browse the repository at this point in the history
  • Loading branch information
magicus committed Nov 1, 2024
1 parent 835ac6c commit e623a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srp/_pysrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def calculate_H_AMK( hash_class, A, M, K ):



class Verifier (object):
class Verifier:

def __init__(self, username, bytes_s, bytes_v, bytes_A=None, hash_alg=SHA1, ng_type=NG_2048, n_hex=None, g_hex=None, bytes_b=None, k_hex=None):
if ng_type == NG_CUSTOM and (n_hex is None or g_hex is None):
Expand Down Expand Up @@ -346,7 +346,7 @@ def _derive_H_AMK(self):



class User (object):
class User:
def __init__(self, username, password, hash_alg=SHA1, ng_type=NG_2048, n_hex=None, g_hex=None, bytes_a=None, bytes_A=None, k_hex=None):
if ng_type == NG_CUSTOM and (n_hex is None or g_hex is None):
raise ValueError("Both n_hex and g_hex are required when ng_type = NG_CUSTOM")
Expand Down

0 comments on commit e623a6a

Please sign in to comment.