Ejemplo n.º 1
0
 def __init__(self, groupObj=False):
     ABEnc.__init__(self)
     global util, group
     if groupObj == False:
         group = PairingGroup('SS512')
     else:
         group = groupObj
     util = SecretUtil(groupObj, debug)
Ejemplo n.º 2
0
 def __init__(self, group_obj, uni_size, verbose=False):
     ABEnc.__init__(self)
     self.group = group_obj
     self.uni_size = uni_size  # bound on the size of the universe of attributes
     self.util = MSP(self.group, verbose)
     self.maxSpaceUsage = 0.5
     self.bucketSize = 4
     self.capacity = 25
     self.fingerprint_size = 8
     self.maxCFNumber = 20
     self.default = 1
Ejemplo n.º 3
0
 def __init__(self, group_obj, assump_size, k, verbose=False):
     ABEnc.__init__(self)
     self.group = group_obj
     self.assump_size = assump_size  # size of linear assumption, at least 2
     self.util = MSP(self.group, verbose)
     self.k = k
     self.index = k
     self.i = 5
     self.j = 5  # we assume i = j, equals to identity-based encryption.
     self.msk = {}
     self.mpk = {}
     self.pk = None
     self.sk = None
     self.sk_delta = None
     self.ID_i = None
     self.ID_j = None
     self.I = []
     for i in range(self.k):
         self.I.append(self.group.random(ZR))
Ejemplo n.º 4
0
 def __init__(self, scheme, groupObj):
     ABEnc.__init__(self)
     global abenc
     # check properties (TODO)
     abenc = scheme
     self.group = groupObj
Ejemplo n.º 5
0
 def __init__(self, groupObj):
     ABEnc.__init__(self)
     global util, group
     util = SecretUtil(groupObj, debug)        
     group = groupObj
Ejemplo n.º 6
0
 def __init__(self, scheme, groupObj):
     ABEnc.__init__(self)
     global abenc
     # check properties (TODO)
     abenc = scheme
     self.group = groupObj
Ejemplo n.º 7
0
 def __init__(self, groupObj):
     ABEnc.__init__(self)
     global util, group
     util = SecretUtil(groupObj, verbose=False)
     group = groupObj
Ejemplo n.º 8
0
 def __init__(self, group_obj, assump_size, verbose=False):
     ABEnc.__init__(self)
     self.group = group_obj
     self.assump_size = assump_size  # size of linear assumption, at least 2
     self.util = MSP(self.group, verbose)
 def __init__(self, groupObj):
     ABEnc.__init__(self)
     global util, group
     util = SecretUtil(groupObj, debug)
     group = groupObj
Ejemplo n.º 10
0
 def __init__(self, group_obj, verbose=False):
     ABEnc.__init__(self)
     self.group = group_obj
     self.util = MSP(self.group, verbose)
Ejemplo n.º 11
0
 def __init__(self, groupObj):
     ABEnc.__init__(self)
     global util, group
     util = SecretUtil(groupObj, verbose=False)
     group = groupObj
Ejemplo n.º 12
0
 def __init__(self, group_obj, uni_size, verbose=False):
     ABEnc.__init__(self)
     self.group = group_obj
     self.uni_size = uni_size  # bound on the size of the universe of attributes
     self.util = MSP(self.group, verbose)
Ejemplo n.º 13
0
 def __init__(self, groupObj, verbose=False):
     ABEnc.__init__(self)
     global group, util
     group = groupObj
     util = SecretUtil(group, verbose)        
Ejemplo n.º 14
0
 def __init__(self, groupObj, verbose=False):
     ABEnc.__init__(self)
     global group, util
     group = groupObj
     util = SecretUtil(group, verbose)
Ejemplo n.º 15
0
 def __init__(self, groupObj, assump_size, uni_size, verbose=False):
     ABEnc.__init__(self)
     self.group = groupObj
     self.assump_size = assump_size  # size of the linear assumption
     self.uni_size = uni_size  # bound on the size of the universe of attributes
     self.util = MSP(self.group, verbose)  
Ejemplo n.º 16
0
 def __init__(self, group):
     ABEnc.__init__(self)
     self.group = group
     self.util = SecretUtil(self.group)