Skip to content

Commit

Permalink
xmr: bp - hashing memory optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 17, 2018
1 parent 4c27815 commit e7fad55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/apps/monero/xmr/bulletproof.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,11 @@ def hash_cache_mash(dst, hash_cache, *args):
ctx.update(x)
hsh = ctx.digest()

sc = crypto.decodeint(hsh)
hsh = crypto.encodeint(sc)
crypto.decodeint_into(tmp_sc_1, hsh)
crypto.encodeint_into(tmp_sc_1, tmp_bf_1)

copy_key(dst, hsh)
copy_key(hash_cache, hsh)
copy_key(dst, tmp_bf_1)
copy_key(hash_cache, tmp_bf_1)
return dst


Expand Down

0 comments on commit e7fad55

Please sign in to comment.