use PKCS1v15 for HTTP signatures

This commit is contained in:
jesopo 2019-09-15 16:31:53 +01:00
parent 433e3cdcfb
commit 5800fef4c9

View file

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