예제 #1
0
파일: EC.py 프로젝트: rodrigc/m2crypto
 def sign_dsa(self, digest):
     """
     Sign the given digest using ECDSA. Returns a tuple (r,s), the two
     ECDSA signature parameters.
     """
     assert self._check_key_type(), "'ec' type error"
     return m2.ecdsa_sign(self.ec, digest)
예제 #2
0
 def sign_dsa(self, digest):
     """
     Sign the given digest using ECDSA. Returns a tuple (r,s), the two
     ECDSA signature parameters.
     """
     assert self._check_key_type(), "'ec' type error"
     return m2.ecdsa_sign(self.ec, digest)