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
aa034c4c
Unverified
Commit
aa034c4c
authored
Aug 20, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added manual
parent
f5a5395c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
intel_sgx_sdk_developer_reference_for_linux_os_pdf.pdf
intel_sgx_sdk_developer_reference_for_linux_os_pdf.pdf
+0
-0
docker-compose.yml
run_sgx_sim/docker-compose.yml
+2
-2
secure_enclave.c
secure_enclave/secure_enclave.c
+19
-1
No files found.
intel_sgx_sdk_developer_reference_for_linux_os_pdf.pdf
0 → 100644
View file @
aa034c4c
File added
run_sgx_sim/docker-compose.yml
View file @
aa034c4c
version
:
'
3'
services
:
sgxwallet
:
image
:
skalenetwork/sgxwallet_sim:latest
image
:
skalenetwork/sgxwallet_sim:
develop-
latest
ports
:
-
"
1026:1026"
-
"
1027:1027"
...
...
@@ -16,5 +16,5 @@ services:
max-size
:
"
10m"
max-file
:
"
4"
restart
:
unless-stopped
command
:
-s
-y
command
:
-s
secure_enclave/secure_enclave.c
View file @
aa034c4c
...
...
@@ -218,7 +218,25 @@ void trustedGenerateSEK(int *errStatus, char *errString,
sgx_status_t
status
=
sgx_seal_data_ex
(
SGX_KEYPOLICY_MRENCLAVE
,
attribute_mask
,
misc
,
0
,
NULL
,
hex_aes_key_length
+
1
,
(
uint8_t
*
)
SEK_hex
,
sealedLen
,
(
sgx_sealed_data_t
*
)
encrypted_SEK
);
CHECK_STATUS
(
"seal SEK failed"
);
CHECK_STATUS
(
"seal SEK failed after SEK generation"
);
int
len
=
0
;
SAFE_CHAR_BUF
(
unsealedKey
,
BUF_LEN
);
int
decLen
;
status
=
sgx_unseal_data
(
encrypted_SEK
,
NULL
,
NULL
,
unsealedKey
,
&
decLen
);
SAFE_CHAR_BUF
(
errS
,
BUF_LEN
);
sprintf
(
errS
,
"status $d"
,
status
);
LOG_ERROR
(
errS
);
CHECK_STATUS
(
"seal/unseal SEK failed after SEK generation in unseal"
);
*
enc_len
=
sealedLen
;
...
...
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