diff options
| author | 2019-09-15 16:31:53 +0100 | |
|---|---|---|
| committer | 2019-09-15 16:31:53 +0100 | |
| commit | 5800fef4c95d051e81000d0d759a52614d3a0ebb (patch) | |
| tree | 1e501c25ce96e930572a126eed45e74e91c455d5 /modules | |
| parent | `data` -> `post_data` (diff) | |
use PKCS1v15 for HTTP signatures
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/fediverse/ap_security.py | 4 |
1 files changed, 1 insertions, 3 deletions
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() ) |
