summaryrefslogtreecommitdiff
path: root/_ctsrp.py
diff options
context:
space:
mode:
authorTom Cocagne <devnull@localhost>2010-12-31 15:26:43 -0500
committerTom Cocagne <devnull@localhost>2010-12-31 15:26:43 -0500
commitbb9036d6a3452299ba4270a5b6bd47145e016a84 (patch)
treea3f2d0b627a20e0fcdce10002fae0c733bca3a7f /_ctsrp.py
parent8d58dad120a39b7fcb8b012ff584686f3fac5a8e (diff)
renamed gen_sv to create_salted_verification_key
Diffstat (limited to '_ctsrp.py')
-rw-r--r--_ctsrp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/_ctsrp.py b/_ctsrp.py
index 83eccb7..42dbfdd 100644
--- a/_ctsrp.py
+++ b/_ctsrp.py
@@ -280,7 +280,7 @@ def get_ngk( hash_class, ng_type, n_hex, g_hex ):
-def gen_sv( username, password, hash_alg=SHA1, ng_type=NG_1024, n_hex=None, g_hex=None ):
+def create_salted_verification_key( username, password, hash_alg=SHA1, ng_type=NG_1024, n_hex=None, g_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")
s = BN_new()