diff options
author | Egon Elbre <egonelbre@gmail.com> | 2017-08-08 18:58:22 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-08 18:58:22 +0800 |
commit | 10ce8b0e3c361f7fcbd9440fe78566f49cce9588 (patch) | |
tree | 5c06bbcc8fc0fe8637a86f3794d5577d379c8677 /crypto/ecies/ecies.go | |
parent | 9a7e99f75d09dc7835d3335d97a37f153d480cc6 (diff) | |
download | dexon-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.go | 10 |
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). |