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)
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)
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)
def construct_c(tuple): key = _fastmath.dsa_construct(*tuple) return DSAobj_c(key)