Skip to content

Commit e1a93da

Browse files
authored
Merge branch 'develop' into fix/delegated_code_failed_witness_missing
2 parents c68d6d5 + d67dd0b commit e1a93da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/ecies/ecies.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (prv *PrivateKey) Decrypt(c, s1, s2 []byte) (m []byte, err error) {
285285
switch c[0] {
286286
case 2, 3, 4:
287287
rLen = (prv.PublicKey.Curve.Params().BitSize + 7) / 4
288-
if len(c) < (rLen + hLen + 1) {
288+
if len(c) < (rLen + hLen + params.BlockSize) {
289289
return nil, ErrInvalidMessage
290290
}
291291
default:

0 commit comments

Comments
 (0)