Skip to content

Commit

Permalink
Cryptography compat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Jan 10, 2015
1 parent c8cc9eb commit e6faa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signxml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def sign(self, algorithm="rsa-sha256", key=None, passphrase=None, cert=None, env

hash_alg = self._get_signature_digest_method_by_tag(self.signature_alg)
if self.signature_alg.startswith("dsa-"):
signer = key.signer(algorithm=hash_alg)
signer = key.signer(signature_algorithm=hash_alg)
elif self.signature_alg.startswith("ecdsa-"):
signer = key.signer(signature_algorithm=ec.ECDSA(algorithm=hash_alg))
elif self.signature_alg.startswith("rsa-"):
Expand Down

0 comments on commit e6faa18

Please sign in to comment.