diff options
author | Matthew Halpern <matthalp@google.com> | 2019-02-18 20:09:07 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-18 20:09:07 +0800 |
commit | 2a0e1bb32bc47b6c130a2f4651f37b1692951d55 (patch) | |
tree | 8c434722886021d290aad6f1156078a1945426cc /crypto/ecies | |
parent | f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7 (diff) | |
download | go-tangerine-2a0e1bb32bc47b6c130a2f4651f37b1692951d55.tar go-tangerine-2a0e1bb32bc47b6c130a2f4651f37b1692951d55.tar.gz go-tangerine-2a0e1bb32bc47b6c130a2f4651f37b1692951d55.tar.bz2 go-tangerine-2a0e1bb32bc47b6c130a2f4651f37b1692951d55.tar.lz go-tangerine-2a0e1bb32bc47b6c130a2f4651f37b1692951d55.tar.xz go-tangerine-2a0e1bb32bc47b6c130a2f4651f37b1692951d55.tar.zst go-tangerine-2a0e1bb32bc47b6c130a2f4651f37b1692951d55.zip |
crypto/ecies: remove unused function (#19096)
Diffstat (limited to 'crypto/ecies')
-rw-r--r-- | crypto/ecies/ecies_test.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go index f33f204d5..6bd57145d 100644 --- a/crypto/ecies/ecies_test.go +++ b/crypto/ecies/ecies_test.go @@ -93,19 +93,6 @@ func cmpPublic(pub1, pub2 PublicKey) bool { return bytes.Equal(pub1Out, pub2Out) } -// cmpPrivate returns true if the two private keys are the same. -func cmpPrivate(prv1, prv2 *PrivateKey) bool { - if prv1 == nil || prv1.D == nil { - return false - } else if prv2 == nil || prv2.D == nil { - return false - } else if prv1.D.Cmp(prv2.D) != 0 { - return false - } else { - return cmpPublic(prv1.PublicKey, prv2.PublicKey) - } -} - // Validate the ECDH component. func TestSharedKey(t *testing.T) { prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil) |