From 5800fef4c95d051e81000d0d759a52614d3a0ebb Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 15 Sep 2019 16:31:53 +0100 Subject: use PKCS1v15 for HTTP signatures --- modules/fediverse/ap_security.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/fediverse/ap_security.py b/modules/fediverse/ap_security.py index e36044f7..cc5047f9 100644 --- a/modules/fediverse/ap_security.py +++ b/modules/fediverse/ap_security.py @@ -26,9 +26,7 @@ def signature(key: PrivateKey, headers: typing.List[typing.Tuple[str, str]] signature = key.key.sign( sign_string.encode("utf8"), - padding.PSS( - mgf=padding.MGF1(hashes.SHA256()), - salt_length=padding.PSS.MAX_LENGTH), + padding.PKCS1v15, hashes.SHA256() ) -- cgit v1.3.1-10-gc9f91