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
348cf000
Unverified
Commit
348cf000
authored
Jul 08, 2021
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-4262 cleanup
parent
e46adcf4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
EnclaveCommon.cpp
secure_enclave/EnclaveCommon.cpp
+0
-1
secure_enclave.c
secure_enclave/secure_enclave.c
+0
-5
No files found.
secure_enclave/EnclaveCommon.cpp
View file @
348cf000
...
@@ -171,7 +171,6 @@ void enclave_init() {
...
@@ -171,7 +171,6 @@ void enclave_init() {
return
;
return
;
inited
=
1
;
inited
=
1
;
LOG_INFO
(
"Initing libff"
);
LOG_INFO
(
"Initing libff"
);
try
{
try
{
...
...
secure_enclave/secure_enclave.c
View file @
348cf000
...
@@ -66,7 +66,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
...
@@ -66,7 +66,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define INIT_ERROR_STATE *errString = 0; *errStatus = UNKNOWN_ERROR;
#define INIT_ERROR_STATE *errString = 0; *errStatus = UNKNOWN_ERROR;
#define SET_SUCCESS *errStatus = 0;
#define SET_SUCCESS *errStatus = 0;
#define CHECK_STATE(_EXPRESSION_) \
#define CHECK_STATE(_EXPRESSION_) \
if (!(_EXPRESSION_)) { \
if (!(_EXPRESSION_)) { \
LOG_ERROR("State check failed::");LOG_ERROR(#_EXPRESSION_); \
LOG_ERROR("State check failed::");LOG_ERROR(#_EXPRESSION_); \
...
@@ -91,7 +90,6 @@ LOG_ERROR(errString); \
...
@@ -91,7 +90,6 @@ LOG_ERROR(errString); \
goto clean; \
goto clean; \
};
};
#define CHECK_STATUS2(__ERRMESSAGE__) if (status != SGX_SUCCESS) { \
#define CHECK_STATUS2(__ERRMESSAGE__) if (status != SGX_SUCCESS) { \
snprintf(errString, BUF_LEN, __ERRMESSAGE__, status); \
snprintf(errString, BUF_LEN, __ERRMESSAGE__, status); \
LOG_ERROR(errString); \
LOG_ERROR(errString); \
...
@@ -138,10 +136,8 @@ void trustedEnclaveInit(uint64_t _logLevel) {
...
@@ -138,10 +136,8 @@ void trustedEnclaveInit(uint64_t _logLevel) {
LOG_INFO
(
"Calling enclave init"
);
LOG_INFO
(
"Calling enclave init"
);
enclave_init
();
enclave_init
();
LOG_INFO
(
"Reading random"
);
LOG_INFO
(
"Reading random"
);
globalRandom
=
calloc
(
32
,
1
);
globalRandom
=
calloc
(
32
,
1
);
...
@@ -228,7 +224,6 @@ void get_global_random(unsigned char *_randBuff, uint64_t _size) {
...
@@ -228,7 +224,6 @@ void get_global_random(unsigned char *_randBuff, uint64_t _size) {
memcpy
(
_randBuff
,
globalRandom
,
_size
);
memcpy
(
_randBuff
,
globalRandom
,
_size
);
}
}
void
sealHexSEK
(
int
*
errStatus
,
char
*
errString
,
void
sealHexSEK
(
int
*
errStatus
,
char
*
errString
,
uint8_t
*
encrypted_sek
,
uint64_t
*
enc_len
,
char
*
sek_hex
)
{
uint8_t
*
encrypted_sek
,
uint64_t
*
enc_len
,
char
*
sek_hex
)
{
CALL_ONCE
CALL_ONCE
...
...
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