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
a08d0080
Unverified
Commit
a08d0080
authored
Sep 09, 2019
by
kladkogex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
43bee075
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
BLSUtils.cpp
secure_enclave/BLSUtils.cpp
+1
-1
BLSUtils.h
secure_enclave/BLSUtils.h
+4
-0
secure_enclave.c
secure_enclave/secure_enclave.c
+1
-1
No files found.
secure_enclave/BLSUtils.cpp
View file @
a08d0080
...
...
@@ -76,7 +76,7 @@ void init() {
libff
::
init_alt_bn128_params
();
}
void
check
_k
ey
(
int
*
err_status
,
char
*
err_string
,
const
char
*
_keyString
)
{
void
check
K
ey
(
int
*
err_status
,
char
*
err_string
,
const
char
*
_keyString
)
{
uint64_t
keyLen
=
strnlen
(
_keyString
,
MAX_KEY_LENGTH
);
...
...
secure_enclave/BLSUtils.h
View file @
a08d0080
...
...
@@ -13,8 +13,12 @@
#define EXTERNC
#endif
EXTERNC
void
checkKey
(
int
*
err_status
,
char
*
err_string
,
const
char
*
_keyString
);
EXTERNC
void
check_key
(
int
*
err_status
,
char
*
err_string
,
const
char
*
_keyString
);
EXTERNC
bool
sign
(
const
char
*
_keyString
,
const
char
*
_hashXString
,
const
char
*
_hashYString
,
char
*
_sig
);
...
...
secure_enclave/secure_enclave.c
View file @
a08d0080
...
...
@@ -130,7 +130,7 @@ void encrypt_key(int *err_status, char *err_string, char *key,
memset
(
err_string
,
0
,
BUF_LEN
);
check
_k
ey
(
err_status
,
err_string
,
key
);
check
K
ey
(
err_status
,
err_string
,
key
);
if
(
*
err_status
!=
0
)
{
snprintf
(
err_string
+
strlen
(
err_string
),
BUF_LEN
,
"check_key failed"
);
...
...
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