Skip to content

Commit

Permalink
xmr: crypto - hash to existing buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 17, 2018
1 parent 52a6e48 commit f895fa6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/apps/monero/xmr/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ def keccak_hash(inp):
return tcry.xmr_fast_hash(inp)


def keccak_hash_into(r, inp):
"""
Hashesh input in one call
:return:
"""
return tcry.xmr_fast_hash(r,inp)


def keccak_2hash(inp):
"""
Keccak double hashing
Expand Down

0 comments on commit f895fa6

Please sign in to comment.