def __init__(self, scheme, group): IBEnc.__init__(self) self.group = group self.ibe_good = False # validate that we have the appropriate object if IBEnc.checkProperty(self, scheme, {'scheme':self.baseSchemeTypes.IBEnc, 'secdef':self.baseSecDefs.sIND_ID_CPA, 'id':ZR}): self.ibenc = scheme # change our property as well IBEnc.setProperty(self, secdef='IND_ID_CPA', other={'id':str}, secmodel='ROM') # check message space? self.ibe_good = True if not self.ibe_good: assert False, "ibe object does not satisfy requirements."
def __init__(self, scheme, group): IBEnc.__init__(self) self.group = group self.ibe_good = False # validate that we have the appropriate object if IBEnc.checkProperty( self, scheme, { 'scheme': self.baseSchemeTypes.IBEnc, 'secdef': self.baseSecDefs.sIND_ID_CPA, 'id': ZR }): self.ibenc = scheme # change our property as well IBEnc.setProperty(self, secdef='IND_ID_CPA', other={'id': str}, secmodel='ROM') # check message space? self.ibe_good = True if not self.ibe_good: assert False, "ibe object does not satisfy requirements."