mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
crypto/ecies: fix build on 32bit
This commit is contained in:
parent
d462a906ee
commit
e66ead8d86
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ var (
|
|||
func ConcatKDF(hash hash.Hash, z, s1 []byte, kdlen int) ([]byte, error) {
|
||||
hashlen := hash.Size()
|
||||
reps := (kdlen + hashlen - 1) / hashlen
|
||||
if reps > math.MaxUint32 {
|
||||
if uint64(reps) > math.MaxUint32 {
|
||||
return nil, ErrKeyDataTooLong // prevent counter overflow
|
||||
}
|
||||
counter := []byte{0, 0, 0, 0}
|
||||
|
|
|
|||
Loading…
Reference in a new issue