- Whoops, too readable (i.e. wrong)
This commit is contained in:
@@ -29,12 +29,7 @@ def variablerole (r, inrole):
|
|||||||
def role (r,inrole):
|
def role (r,inrole):
|
||||||
global P
|
global P
|
||||||
|
|
||||||
if not variablerole(r, inrole):
|
return "r%i" % (r % P)
|
||||||
# our own role or any role from the initiator
|
|
||||||
return "r%i" % (r % P)
|
|
||||||
else:
|
|
||||||
# possibly a variable (input) role
|
|
||||||
return "R%i" % (r % P)
|
|
||||||
|
|
||||||
def nonce (r,inrole):
|
def nonce (r,inrole):
|
||||||
global P
|
global P
|
||||||
|
|||||||
Reference in New Issue
Block a user