Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
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
董子豪
sgxwallet
Commits
a4274711
Unverified
Commit
a4274711
authored
Sep 07, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3228
parent
65368983
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
LevelDB.cpp
LevelDB.cpp
+3
-4
DomainParameters.c
secure_enclave/DomainParameters.c
+11
-2
No files found.
LevelDB.cpp
View file @
a4274711
...
...
@@ -155,16 +155,15 @@ std::vector<string> LevelDB::writeKeysToVector1(uint64_t _maxKeysToVisit){
}
void
LevelDB
::
writeDataUnique
(
const
string
&
name
,
const
string
&
value
)
{
auto
key
=
n
ame
;
auto
key
=
name
;
if
(
readString
(
Name
)
!=
nullptr
)
{
if
(
readString
(
name
)
)
{
spdlog
::
debug
(
"Name {} already exists"
,
name
);
throw
SGXException
(
KEY_SHARE_ALREADY_EXISTS
,
"Data with this name already exists"
);
}
writeString
(
key
,
value
);
}
...
...
secure_enclave/DomainParameters.c
View file @
a4274711
...
...
@@ -46,16 +46,25 @@
/*Initialize a curve*/
domain_parameters
domain_parameters_init
()
{
LOG_INFO
(
"Allocating curver"
);
domain_parameters
curve
;
curve
=
calloc
(
sizeof
(
struct
domain_parameters_s
),
1
);
LOG_INFO
(
"Initing members"
);
//Initialize all members
mpz_init
(
curve
->
p
);
mpz_init
(
curve
->
a
);
mpz_init
(
curve
->
b
);
mpz_init
(
curve
->
n
);
mpz_init
(
curve
->
h
);
LOG_INFO
(
"Initing point"
);
curve
->
G
=
point_init
();
mpz_init
(
curve
->
n
);
mpz_init
(
curve
->
h
);
return
curve
;
}
...
...
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