Exemple #1
0
 def ee0_key(self, version):
     if version < TLSVersion.TLSv1_1:
         ee0_key = RSA()
     else:
         ee0_key = ECC()
     ee0_key.generate()
     return ee0_key
Exemple #2
0
 def ca1_key(self, version):
     if version < TLSVersion.TLSv1_1:
         ca1_key = RSA()
     else:
         ca1_key = ECC()
     ca1_key.generate()
     return ca1_key
Exemple #3
0
 def ee0_key(self):
     ee0_key = ECC()
     ee0_key.generate()
     return ee0_key
Exemple #4
0
 def ca1_key(self):
     ca1_key = ECC()
     ca1_key.generate()
     return ca1_key