예제 #1
0
파일: orlandi.py 프로젝트: MaxFangX/viff
 def __init__(self, player, threshold=None, options=None):
     """Initialize runtime."""
     SimpleArithmeticRuntime.__init__(self, player, threshold, options)
     self.threshold = self.num_players - 1
     self.s = 1
     self.d = 0
     self.s_lambda = 1
     self.triples = []
예제 #2
0
파일: orlandi.py 프로젝트: lu562/viff
 def __init__(self, player, threshold=None, options=None):
     """Initialize runtime."""
     SimpleArithmeticRuntime.__init__(self, player, threshold, options)
     self.threshold = self.num_players - 1
     self.s = 1
     self.d = 0
     self.s_lambda = 1
     self.triples = []
예제 #3
0
    def __init__(self, player, threshold=None, options=None, triples=[]):
        """Initialize runtime.

        *triples* is a list of multiplicative triples previously
        generated using the bedoza_triple.TripleGenerator.
        """
        SimpleArithmeticRuntime.__init__(self, player, threshold, options)
        self.threshold = self.num_players - 1
        self.triples = triples
예제 #4
0
파일: bedoza.py 프로젝트: MaxFangX/viff
    def __init__(self, player, threshold=None, options=None, triples=[]):
        """Initialize runtime.

        *triples* is a list of multiplicative triples previously
        generated using the bedoza_triple.TripleGenerator.
        """
        SimpleArithmeticRuntime.__init__(self, player, threshold, options)
        self.threshold = self.num_players - 1
        self.triples = triples