1
0
mirror of https://github.com/PurpleI2P/pyseeder synced 2025-03-13 05:41:23 +00:00

[fix] add backend call for SHA512

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2022-02-22 19:13:31 +00:00
parent 7947f42598
commit d26286b812
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -77,7 +77,7 @@ def get_signature(contents, priv_key, priv_key_password=None):
)
)
digest = hashes.Hash(hashes.SHA512())
digest = hashes.Hash(hashes.SHA512(), default_backend())
digest.update(contents)
h = digest.finalize()