Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
2a0e1bb3
Commit
2a0e1bb3
authored
Feb 18, 2019
by
Matthew Halpern
Committed by
Péter Szilágyi
Feb 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto/ecies: remove unused function (#19096)
parent
f57c80d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
ecies_test.go
crypto/ecies/ecies_test.go
+0
-13
No files found.
crypto/ecies/ecies_test.go
View file @
2a0e1bb3
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment