diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-10 18:18:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-10 18:18:54 +0800 |
commit | dbd28a52525581b59fb334f2aafa3b2b56fb6ba8 (patch) | |
tree | 86c1184cafb6454d07845d6998ff6fc1152eeb67 | |
parent | fbc59b7323394fc95e0d87f20375c5e1cbec2170 (diff) | |
download | go-tangerine-dbd28a52525581b59fb334f2aafa3b2b56fb6ba8.tar.gz go-tangerine-dbd28a52525581b59fb334f2aafa3b2b56fb6ba8.tar.zst go-tangerine-dbd28a52525581b59fb334f2aafa3b2b56fb6ba8.zip |
224 to 256
-rw-r--r-- | dagger.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -84,9 +84,9 @@ func (dag *Dagger) Node(L uint64, i uint64) *big.Int { m = big.NewInt(3) } - sha := sha3.NewKeccak224() + sha := sha3.NewKeccak256() sha.Reset() - d := sha3.NewKeccak224() + d := sha3.NewKeccak256() b := new(big.Int) ret := new(big.Int) @@ -117,12 +117,12 @@ func (dag *Dagger) Eval(N *big.Int) *big.Int { pow := BigPow(2, 26) dag.xn = N.Div(N, pow) - sha := sha3.NewKeccak224() + sha := sha3.NewKeccak256() sha.Reset() ret := new(big.Int) for k := 0; k < 4; k++ { - d := sha3.NewKeccak224() + d := sha3.NewKeccak256() b := new(big.Int) d.Reset() |