diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go index d2db45c067..0bd3877ddd 100644 --- a/crypto/ecies/params.go +++ b/crypto/ecies/params.go @@ -49,7 +49,7 @@ var ( DefaultCurve = ethcrypto.S256() ErrUnsupportedECDHAlgorithm = fmt.Errorf("ecies: unsupported ECDH algorithm") ErrUnsupportedECIESParameters = fmt.Errorf("ecies: unsupported ECIES parameters") - ErrInvalidKeyLen = fmt.Errorf("ecies: invalid key size (> 256) in ECIESParams") + ErrInvalidKeyLen = fmt.Errorf("ecies: invalid key size (> %d) in ECIESParams", maxKeyLen) ) // KeyLen is limited to prevent overflow of the counter