Example #1
0
 def _checkItem(self, value, username, param):
     (N, g, salt, verifier) = value
     x = mathtls.makeX(salt, username, param)
     v = powMod(g, x, N)
     return (verifier == v)
Example #2
0
 def _checkItem(self, value, username, param):
     (N, g, salt, verifier) = value
     x = mathtls.makeX(salt, username, param)
     v = powMod(g, x, N)
     return (verifier == v)