aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ecies
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/ecies
parent9d48dbf5c2d0401042134d94997be1850bf8499b (diff)
downloaddexon-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.gz
dexon-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.zst
dexon-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.zip
various: remove redundant parentheses (#15793)
Diffstat (limited to 'crypto/ecies')
-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