Skip to content

Commit

Permalink
ECPrivateKey has no padding kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteinberg committed Feb 28, 2024
1 parent 881d1ac commit 2f40f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wacz_signing"
version = "0.3.4"
version = "0.3.6"
description = "A library for signing and timestamping file hashes"
authors = ["Ben Steinberg <[email protected]>"]
readme = "README.md"
Expand Down
3 changes: 1 addition & 2 deletions wacz_signing/signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ def sign(string, dt):
# ECPrivateKey
signed = private_key.sign(
string.encode("ascii"),
signature_algorithm=hashes.SHA256(),
padding=padding.PKCS1v15()
signature_algorithm=hashes.SHA256()
)

# create the signature
Expand Down

0 comments on commit 2f40f79

Please sign in to comment.