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
86eb1073
Unverified
Commit
86eb1073
authored
Aug 28, 2019
by
a72d9e2bad9edfd58d6c0248c12c953b71d409d2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added gmp
parent
d470a18d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
Makefile
secure_enclave/Makefile
+1
-1
sgxd.c
sgxd.c
+14
-0
No files found.
secure_enclave/Makefile
View file @
86eb1073
...
...
@@ -201,7 +201,7 @@ AMTAR = $${TAR-tar}
AM_DEFAULT_VERBOSITY
=
1
AUTOCONF
=
${
SHELL
}
/d/sgxd/missing autoconf
AUTOHEADER
=
${
SHELL
}
/d/sgxd/missing autoheader
AUTOMAKE
=
${
SHELL
}
/d/sgxd/missing automake-1.15
AUTOMAKE
=
AWK
=
gawk
CC
=
gcc
CCDEPMODE
=
depmode
=
gcc3
...
...
sgxd.c
View file @
86eb1073
...
...
@@ -191,6 +191,20 @@ int main(int argc, char *argv[]) {
unsigned
char
*
result
=
carray2Hex
(
encryptedKey
,
enc_len
);
uint64_t
dec_len
;
uint8_t
*
bin
=
hex2carray
(
result
,
&
dec_len
);
if
(
dec_len
!=
enc_len
)
{
return
1
;
}
for
(
int
i
=
0
;
i
<
dec_len
;
i
++
)
{
if
(
bin
[
i
]
!=
encryptedKey
[
i
])
return
1
;
}
gmp_printf
(
"Result: %s"
,
result
);
...
...
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