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
d7127e0f
Unverified
Commit
d7127e0f
authored
Aug 09, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3067-cleanup-sgx
parent
c47774fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
EnclaveConstants.h
secure_enclave/EnclaveConstants.h
+1
-1
secure_enclave.c
secure_enclave/secure_enclave.c
+3
-0
secure_enclave.edl
secure_enclave/secure_enclave.edl
+1
-1
No files found.
secure_enclave/EnclaveConstants.h
View file @
d7127e0f
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#define ADD_ENTROPY_SIZE 32
#define ADD_ENTROPY_SIZE 32
#define DKG_BUFER_LENGTH 2496//3060
#define DKG_BUFER_LENGTH 2496
//3060
#define DKG_MAX_SEALED_LEN 3100
#define DKG_MAX_SEALED_LEN 3100
#define SECRET_SHARE_NUM_BYTES 96
#define SECRET_SHARE_NUM_BYTES 96
...
...
secure_enclave/secure_enclave.c
View file @
d7127e0f
...
@@ -1332,7 +1332,10 @@ trustedGenDkgSecretAES(int *errStatus, char *errString, uint8_t *encrypted_dkg_s
...
@@ -1332,7 +1332,10 @@ trustedGenDkgSecretAES(int *errStatus, char *errString, uint8_t *encrypted_dkg_s
snprintf
(
errString
+
strlen
(
dkg_secret
)
+
8
,
BUF_LEN
-
strlen
(
dkg_secret
)
-
8
,
snprintf
(
errString
+
strlen
(
dkg_secret
)
+
8
,
BUF_LEN
-
strlen
(
dkg_secret
)
-
8
,
"encrypted poly is not equal to decrypted poly"
);
"encrypted poly is not equal to decrypted poly"
);
*
errStatus
=
-
333
;
*
errStatus
=
-
333
;
return
;
}
}
*
errStatus
=
0
;
}
}
void
void
...
...
secure_enclave/secure_enclave.edl
View file @
d7127e0f
...
@@ -224,7 +224,7 @@ enclave {
...
@@ -224,7 +224,7 @@ enclave {
[out] int *errStatus,
[out] int *errStatus,
[out, count = SMALL_BUF_SIZE] char* err_string,
[out, count = SMALL_BUF_SIZE] char* err_string,
[in, count = 3050] uint8_t* encrypted_poly,
[in, count = 3050] uint8_t* encrypted_poly,
[
user_check
] uint64_t* enc_len);
[
out
] uint64_t* enc_len);
public void trustedGetEncryptedSecretShareAES(
public void trustedGetEncryptedSecretShareAES(
[out]int *errStatus,
[out]int *errStatus,
...
...
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