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
7906ecc1
Unverified
Commit
7906ecc1
authored
4 years ago
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3228
parent
32ccd711
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
AESUtils.c
secure_enclave/AESUtils.c
+1
-0
secure_enclave.c
secure_enclave/secure_enclave.c
+1
-1
No files found.
secure_enclave/AESUtils.c
View file @
7906ecc1
...
...
@@ -176,5 +176,6 @@ int AES_decrypt_DH(uint8_t *encr_message, uint64_t length, char *message, uint64
void
derive_DH_Key
()
{
memcpy
(
AES_DH_key
,
AES_key
,
SGX_AESGCM_KEY_SIZE
);
/*AES_DH_key[1] = 1;AES_DH_key[2] = 2;*/
}
This diff is collapsed.
Click to expand it.
secure_enclave/secure_enclave.c
View file @
7906ecc1
...
...
@@ -655,7 +655,7 @@ void trustedEncryptKeyAES(int *errStatus, char *errString, const char *key,
SAFE_CHAR_BUF
(
decryptedKey
,
BUF_LEN
);
status
=
AES_decrypt
(
encryptedPrivateKey
,
*
enc_len
,
decryptedKey
,
BUF_LEN
);
status
=
AES_decrypt
_DH
(
encryptedPrivateKey
,
*
enc_len
,
decryptedKey
,
BUF_LEN
);
CHECK_STATUS2
(
"trustedDecryptKey failed with status %d"
);
...
...
This diff is collapsed.
Click to expand it.
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