aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorFurkan KAMACI <furkankamaci@gmail.com>2018-01-03 20:14:47 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-01-03 20:14:47 +0800
commitb8caba97099ee5eed33c3b80dd4ea540722e7d8f (patch)
tree36c3661d083d81bc52676ff9a030f6e02c91b29c /crypto
parent9d48dbf5c2d0401042134d94997be1850bf8499b (diff)
downloadgo-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.gz
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.bz2
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.lz
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.xz
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.zst
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.zip
various: remove redundant parentheses (#15793)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ecies/ecies.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecies/ecies.go b/crypto/ecies/ecies.go
index 1d5f96ed2..2ed91c895 100644
--- a/crypto/ecies/ecies.go
+++ b/crypto/ecies/ecies.go
@@ -314,7 +314,7 @@ func (prv *PrivateKey) Decrypt(rand io.Reader, c, s1, s2 []byte) (m []byte, err
switch c[0] {
case 2, 3, 4:
- rLen = ((prv.PublicKey.Curve.Params().BitSize + 7) / 4)
+ rLen = (prv.PublicKey.Curve.Params().BitSize + 7) / 4
if len(c) < (rLen + hLen + 1) {
err = ErrInvalidMessage
return