PKCS1v15 is a function

This commit is contained in:
jesopo 2019-09-16 10:52:57 +01:00
parent 55d5692856
commit 9d17710d6d

View file

@ -26,7 +26,7 @@ def signature(key: PrivateKey, headers: typing.List[typing.Tuple[str, str]]
signature = key.key.sign(
sign_string.encode("utf8"),
padding.PKCS1v15,
padding.PKCS1v15(),
hashes.SHA256()
)