Exemplo n.º 1
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)
Exemplo n.º 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)