Exemple #1
0
 def random(self, _type=ZR):
     if _type == ZR or _type == G:
         return random(self.group, _type)
     return None
Exemple #2
0
 def random(self, _type=ZR):
     """selects a random element in ZR or G"""        
     if _type == ZR or _type == G:
         return random(self.ec_group, _type)
     return None
Exemple #3
0
 def random(self, _type=ZR):
     """selects a random element in ZR or G"""
     if _type == ZR or _type == G:
         return random(self.ec_group, _type)
     return None
Exemple #4
0
 def random(self, _type=ZR):
     if _type == ZR or _type == G:
         return random(self.group, _type)
     return None