Пример #1
0
 def __setstate__(self, state):
     y,g,p,q = state['y'], state['g'], state['p'], state['q']
     if not state.has_key('x'):
         self.key = _fastmath.dsa_construct(y,g,p,q)
     else:
         x = state['x']
         self.key = _fastmath.dsa_construct(y,g,p,q,x)
Пример #2
0
 def __setstate__(self, state):
     y, g, p, q = state["y"], state["g"], state["p"], state["q"]
     if not state.has_key("x"):
         self.key = _fastmath.dsa_construct(y, g, p, q)
     else:
         x = state["x"]
         self.key = _fastmath.dsa_construct(y, g, p, q, x)
Пример #3
0
 def __setstate__(self, state):
     y, g, p, q = state['y'], state['g'], state['p'], state['q']
     if 'x' not in state:
         self.key = _fastmath.dsa_construct(y, g, p, q)
     else:
         x = state['x']
         self.key = _fastmath.dsa_construct(y, g, p, q, x)
Пример #4
0
def construct_c(tuple):
    key = _fastmath.dsa_construct(*tuple)
    return DSAobj_c(key)
Пример #5
0
def construct_c(tuple):
    key = _fastmath.dsa_construct(*tuple)
    return DSAobj_c(key)