use PKCS1v15 for HTTP signatures
This commit is contained in:
parent
433e3cdcfb
commit
5800fef4c9
1 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue