Skip to content

Commit 2a0e1bb

Browse files
Matthalp-zzkaralabe
authored andcommitted
crypto/ecies: remove unused function (#19096)
1 parent f57c80d commit 2a0e1bb

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

‎crypto/ecies/ecies_test.go‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,6 @@ func cmpPublic(pub1, pub2 PublicKey) bool {
9393
return bytes.Equal(pub1Out, pub2Out)
9494
}
9595

96-
// cmpPrivate returns true if the two private keys are the same.
97-
func cmpPrivate(prv1, prv2 *PrivateKey) bool {
98-
if prv1 == nil || prv1.D == nil {
99-
return false
100-
} else if prv2 == nil || prv2.D == nil {
101-
return false
102-
} else if prv1.D.Cmp(prv2.D) != 0 {
103-
return false
104-
} else {
105-
return cmpPublic(prv1.PublicKey, prv2.PublicKey)
106-
}
107-
}
108-
10996
// Validate the ECDH component.
11097
func TestSharedKey(t *testing.T) {
11198
prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil)

0 commit comments

Comments
 (0)