diff options
author | Guillaume Ballet <gballet@gmail.com> | 2019-03-24 23:15:43 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2019-04-08 19:21:22 +0800 |
commit | 1d1bee528e04f8d7c87b1808e39c95382f2dd8b2 (patch) | |
tree | 10d37c26a903d8b9bce34cc9b23e5690c27d2faf /accounts/scwallet | |
parent | 28c8f41b90f6255f70a53425e36f5d55a157cd1e (diff) | |
download | go-tangerine-1d1bee528e04f8d7c87b1808e39c95382f2dd8b2.tar go-tangerine-1d1bee528e04f8d7c87b1808e39c95382f2dd8b2.tar.gz go-tangerine-1d1bee528e04f8d7c87b1808e39c95382f2dd8b2.tar.bz2 go-tangerine-1d1bee528e04f8d7c87b1808e39c95382f2dd8b2.tar.lz go-tangerine-1d1bee528e04f8d7c87b1808e39c95382f2dd8b2.tar.xz go-tangerine-1d1bee528e04f8d7c87b1808e39c95382f2dd8b2.tar.zst go-tangerine-1d1bee528e04f8d7c87b1808e39c95382f2dd8b2.zip |
fix unnecessary condition linter warning
Diffstat (limited to 'accounts/scwallet')
-rw-r--r-- | accounts/scwallet/securechannel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/scwallet/securechannel.go b/accounts/scwallet/securechannel.go index 7d57c4df9..3c9732198 100644 --- a/accounts/scwallet/securechannel.go +++ b/accounts/scwallet/securechannel.go @@ -88,7 +88,7 @@ func NewSecureChannelSession(card *pcsc.Card, keyData []byte) (*SecureChannelSes // Pair establishes a new pairing with the smartcard. func (s *SecureChannelSession) Pair(pairingPassword []byte) error { - secretHash := pbkdf2.Key(norm.NFKD.Bytes([]byte(pairingPassword)), norm.NFKD.Bytes([]byte(pairingSalt)), 50000, 32, sha256.New) + secretHash := pbkdf2.Key(norm.NFKD.Bytes(pairingPassword), norm.NFKD.Bytes([]byte(pairingSalt)), 50000, 32, sha256.New) challenge := make([]byte, 32) if _, err := rand.Read(challenge); err != nil { |