aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-16 10:52:57 +0100
committerGravatar jesopo2019-09-16 10:53:10 +0100
commit9d17710d6dba376e11a135ccf0e4f597562e7cce (patch)
tree48a1b4306195b61e24b7310697132a80f29003b0 /modules
parentrefactor AP Note stringifying out to ap_utils.py (diff)
signature
PKCS1v15 is a function
Diffstat (limited to 'modules')
-rw-r--r--modules/fediverse/ap_security.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fediverse/ap_security.py b/modules/fediverse/ap_security.py
index cc5047f9..1ffd3fdb 100644
--- a/modules/fediverse/ap_security.py
+++ b/modules/fediverse/ap_security.py
@@ -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()
)