diff --git a/crypto/ecies/ecies.go b/crypto/ecies/ecies.go index 1474181482..7df3d2618a 100644 --- a/crypto/ecies/ecies.go +++ b/crypto/ecies/ecies.go @@ -169,9 +169,8 @@ func concatKDF(hash hash.Hash, z, s1 []byte, kdLen int) (k []byte, err error) { s1 = make([]byte, 0) } - reps := ((kdLen + 7) * 8) / (hash.BlockSize() * 8) + reps := ((kdLen + 7) * 8) / (hash.Size() * 8) if big.NewInt(int64(reps)).Cmp(big2To32M1) > 0 { - fmt.Println(big2To32M1) return nil, ErrKeyDataTooLong }