Esempio n. 1
0
File: EC.py Progetto: pmp-p/M2Crypto
 def get_key(self):
     # type: () -> bytes
     """
     Returns the public key as a byte string.
     """
     assert self.check_key(), 'key is not initialised'
     return m2.ec_key_get_public_key(self.ec)
Esempio n. 2
0
File: EC.py Progetto: mcepl/M2Crypto
 def get_key(self):
     # type: () -> bytes
     """
     Returns the public key as a byte string.
     """
     assert self.check_key(), 'key is not initialised'
     return m2.ec_key_get_public_key(self.ec)