Browse Source

[fix] add backend call for SHA512

Signed-off-by: R4SAS <r4sas@i2pmail.org>
master
R4SAS 3 years ago
parent
commit
d26286b812
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      pyseeder/crypto.py

2
pyseeder/crypto.py

@ -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) digest.update(contents)
h = digest.finalize() h = digest.finalize()

Loading…
Cancel
Save