示例#1
0
文件: EC.py 项目: 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)
示例#2
0
文件: EC.py 项目: 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)