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
94475cff
Unverified
Commit
94475cff
authored
Jul 22, 2020
by
Oleh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2956 finalize cleaning up secret data from output
parent
77543e0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
BLSCrypto.cpp
BLSCrypto.cpp
+4
-4
EnclaveCommon.cpp
secure_enclave/EnclaveCommon.cpp
+0
-3
No files found.
BLSCrypto.cpp
View file @
94475cff
...
@@ -215,12 +215,12 @@ bool sign_aes(const char *_encryptedKeyHex, const char *_hashHex, size_t _t, siz
...
@@ -215,12 +215,12 @@ bool sign_aes(const char *_encryptedKeyHex, const char *_hashHex, size_t _t, siz
sz
,
xStrArg
,
yStrArg
,
signature
);
sz
,
xStrArg
,
yStrArg
,
signature
);
if
(
status
!=
SGX_SUCCESS
)
{
if
(
status
!=
SGX_SUCCESS
)
{
cerr
<<
"SGX enclave call
to trustedBlsSignMessage failed
:"
<<
status
<<
std
::
endl
;
cerr
<<
"SGX enclave call
to trustedBlsSignMessage failed with status
:"
<<
status
<<
std
::
endl
;
BOOST_THROW_EXCEPTION
(
runtime_error
(
"SGX enclave call to trustedBlsSignMessage failed"
));
BOOST_THROW_EXCEPTION
(
runtime_error
(
"SGX enclave call to trustedBlsSignMessage failed"
));
}
}
if
(
errStatus
!=
0
)
{
if
(
errStatus
!=
0
)
{
cerr
<<
"SGX enclave call
to trustedBlsSignMessage failed
:"
<<
errStatus
<<
std
::
endl
;
cerr
<<
"SGX enclave call
to trustedBlsSignMessage failed with errStatus
:"
<<
errStatus
<<
std
::
endl
;
BOOST_THROW_EXCEPTION
(
runtime_error
(
"SGX enclave call to trustedBlsSignMessage failed"
));
BOOST_THROW_EXCEPTION
(
runtime_error
(
"SGX enclave call to trustedBlsSignMessage failed"
));
}
}
...
...
secure_enclave/EnclaveCommon.cpp
View file @
94475cff
...
@@ -101,8 +101,6 @@ void enclave_init() {
...
@@ -101,8 +101,6 @@ void enclave_init() {
bool
enclave_sign
(
const
char
*
_keyString
,
const
char
*
_hashXString
,
const
char
*
_hashYString
,
bool
enclave_sign
(
const
char
*
_keyString
,
const
char
*
_hashXString
,
const
char
*
_hashYString
,
char
*
sig
)
{
char
*
sig
)
{
auto
key
=
keyFromString
(
_keyString
);
auto
key
=
keyFromString
(
_keyString
);
if
(
key
==
nullptr
)
{
if
(
key
==
nullptr
)
{
...
@@ -233,4 +231,3 @@ EXTERNC void LOG_DEBUG(const char* _msg) {
...
@@ -233,4 +231,3 @@ EXTERNC void LOG_DEBUG(const char* _msg) {
EXTERNC
void
LOG_TRACE
(
const
char
*
_msg
)
{
EXTERNC
void
LOG_TRACE
(
const
char
*
_msg
)
{
logMsg
(
L_TRACE
,
_msg
);
logMsg
(
L_TRACE
,
_msg
);
};
};
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