def __init__(self, groupObj=False): ABEnc.__init__(self) global util, group if groupObj == False: group = PairingGroup('SS512') else: group = groupObj util = SecretUtil(groupObj, debug)
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
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))
def __init__(self, scheme, groupObj): ABEnc.__init__(self) global abenc # check properties (TODO) abenc = scheme self.group = groupObj
def __init__(self, groupObj): ABEnc.__init__(self) global util, group util = SecretUtil(groupObj, debug) group = groupObj
def __init__(self, groupObj): ABEnc.__init__(self) global util, group util = SecretUtil(groupObj, verbose=False) group = groupObj
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, group_obj, verbose=False): ABEnc.__init__(self) self.group = group_obj self.util = MSP(self.group, verbose)
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)
def __init__(self, groupObj, verbose=False): ABEnc.__init__(self) global group, util group = groupObj util = SecretUtil(group, verbose)
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)
def __init__(self, group): ABEnc.__init__(self) self.group = group self.util = SecretUtil(self.group)