aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ecies/ecies.go
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2017-08-08 18:58:22 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-08 18:58:22 +0800
commit10ce8b0e3c361f7fcbd9440fe78566f49cce9588 (patch)
tree5c06bbcc8fc0fe8637a86f3794d5577d379c8677 /crypto/ecies/ecies.go
parent9a7e99f75d09dc7835d3335d97a37f153d480cc6 (diff)
downloaddexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.gz
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.bz2
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.lz
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.xz
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.zst
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.zip
crypto: fix megacheck warnings (#14917)
* crypto: fix megacheck warnings * crypto/ecies: remove ASN.1 support
Diffstat (limited to 'crypto/ecies/ecies.go')
-rw-r--r--crypto/ecies/ecies.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/crypto/ecies/ecies.go b/crypto/ecies/ecies.go
index 2a16f20a2..1d5f96ed2 100644
--- a/crypto/ecies/ecies.go
+++ b/crypto/ecies/ecies.go
@@ -151,14 +151,16 @@ var (
func incCounter(ctr []byte) {
if ctr[3]++; ctr[3] != 0 {
return
- } else if ctr[2]++; ctr[2] != 0 {
+ }
+ if ctr[2]++; ctr[2] != 0 {
return
- } else if ctr[1]++; ctr[1] != 0 {
+ }
+ if ctr[1]++; ctr[1] != 0 {
return
- } else if ctr[0]++; ctr[0] != 0 {
+ }
+ if ctr[0]++; ctr[0] != 0 {
return
}
- return
}
// NIST SP 800-56 Concatenation Key Derivation Function (see section 5.8.1).