You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monero-python/monero/keccak.py

11 lines
222 B

from Cryptodome.Hash import keccak
def keccak_256(data):
"""
Return a hashlib-compatible Keccak 256 object for the given data.
"""
hash = keccak.new(digest_bits=256)
hash.update(data)
return hash