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
7c0f4a9b
Commit
7c0f4a9b
authored
Feb 13, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from Gustav-Simonsson/fix_ecies_params_init_bug
Fix ECIES params nil bug
parents
04c1a815
5136fc9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
params.go
params.go
+2
-8
No files found.
params.go
View file @
7c0f4a9b
...
@@ -36,14 +36,8 @@ type ECIESParams struct {
...
@@ -36,14 +36,8 @@ type ECIESParams struct {
// * ECIES using AES256 and HMAC-SHA-256-32
// * ECIES using AES256 and HMAC-SHA-256-32
// * ECIES using AES256 and HMAC-SHA-384-48
// * ECIES using AES256 and HMAC-SHA-384-48
// * ECIES using AES256 and HMAC-SHA-512-64
// * ECIES using AES256 and HMAC-SHA-512-64
var
(
ECIES_AES128_SHA256
*
ECIESParams
ECIES_AES256_SHA256
*
ECIESParams
ECIES_AES256_SHA384
*
ECIESParams
ECIES_AES256_SHA512
*
ECIESParams
)
func
init
()
{
var
(
ECIES_AES128_SHA256
=
&
ECIESParams
{
ECIES_AES128_SHA256
=
&
ECIESParams
{
Hash
:
sha256
.
New
,
Hash
:
sha256
.
New
,
hashAlgo
:
crypto
.
SHA256
,
hashAlgo
:
crypto
.
SHA256
,
...
@@ -75,7 +69,7 @@ func init() {
...
@@ -75,7 +69,7 @@ func init() {
BlockSize
:
aes
.
BlockSize
,
BlockSize
:
aes
.
BlockSize
,
KeyLen
:
32
,
KeyLen
:
32
,
}
}
}
)
var
paramsFromCurve
=
map
[
elliptic
.
Curve
]
*
ECIESParams
{
var
paramsFromCurve
=
map
[
elliptic
.
Curve
]
*
ECIESParams
{
elliptic
.
P256
()
:
ECIES_AES128_SHA256
,
elliptic
.
P256
()
:
ECIES_AES128_SHA256
,
...
...
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