示例#1
0
文件: ecgroup.py 项目: FinalF/charm
 def random(self, _type=ZR):
     if _type == ZR or _type == G:
         return random(self.group, _type)
     return None
示例#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
示例#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
示例#4
0
 def random(self, _type=ZR):
     if _type == ZR or _type == G:
         return random(self.group, _type)
     return None