def ee0_key(self, version): if version < TLSVersion.TLSv1_1: ee0_key = RSA() else: ee0_key = ECC() ee0_key.generate() return ee0_key
def ca1_key(self, version): if version < TLSVersion.TLSv1_1: ca1_key = RSA() else: ca1_key = ECC() ca1_key.generate() return ca1_key
def ee0_key(self): ee0_key = ECC() ee0_key.generate() return ee0_key
def ca1_key(self): ca1_key = ECC() ca1_key.generate() return ca1_key