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
5b6716c0
Unverified
Commit
5b6716c0
authored
Aug 20, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3151-cannot-decrypt-storage-key
parent
133138b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
secure_enclave.c
secure_enclave/secure_enclave.c
+0
-4
No files found.
secure_enclave/secure_enclave.c
View file @
5b6716c0
...
...
@@ -213,11 +213,8 @@ void trustedGenerateSEK(int *errStatus, char *errString,
sgx_attributes_t
attribute_mask
;
attribute_mask
.
flags
=
0xfffffffffffffff3
;
attribute_mask
.
xfrm
=
0x0
;
sgx_misc_select_t
misc
=
0xF0000000
;
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 after SEK generation"
);
...
...
@@ -233,7 +230,6 @@ void trustedGenerateSEK(int *errStatus, char *errString,
uint32_t
add_text_length
=
sgx_get_add_mac_txt_len
(
encrypted_SEK
);
CHECK_STATE
(
add_text_length
==
0
);
CHECK_STATE
(
sgx_is_within_enclave
(
encrypted_SEK
,
sizeof
(
sgx_sealed_data_t
)));
status
=
sgx_unseal_data
(
encrypted_SEK
,
NULL
,
NULL
,
unsealedKey
,
&
decLen
);
CHECK_STATUS
(
"seal/unseal SEK failed after SEK generation in unseal"
);
...
...
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