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
0563cbe1
Unverified
Commit
0563cbe1
authored
Feb 17, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2077 Fixed Naming
parent
c71f547e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
13 deletions
+23
-13
sgxwallet.c
sgxwallet.c
+5
-4
testw.cpp
testw.cpp
+18
-9
No files found.
sgxwallet.c
View file @
0563cbe1
...
...
@@ -73,11 +73,12 @@ int main(int argc, char *argv[]) {
switch
(
opt
)
{
case
'h'
:
if
(
strlen
(
argv
[
1
])
==
2
)
{
fprintf
(
stderr
,
"-c
client certificate will not be checked
\n
"
);
fprintf
(
stderr
,
"-s
client certificate will be signed automatically
\n
"
);
fprintf
(
stderr
,
"-c
do not verify client certificate
\n
"
);
fprintf
(
stderr
,
"-s
sign client certificate without human confirmation
\n
"
);
fprintf
(
stderr
,
"-d turn on debug output
\n
"
);
fprintf
(
stderr
,
"-0 SGXWalletServer will be launched on http (not https)
\n
"
);
fprintf
(
stderr
,
"-b Enter backup key
\n
"
);
fprintf
(
stderr
,
"-0 launch SGXWalletServer using http (not https)
\n
"
);
fprintf
(
stderr
,
"-b Restore from back up (you will need to enter backup key)
\n
"
);
fprintf
(
stderr
,
"-y Do not ask user to acknoledge receipt of backup key
\n
"
);
exit
(
0
);
}
else
{
fprintf
(
stderr
,
"unknown flag %s
\n
"
,
argv
[
1
]);
...
...
testw.cpp
View file @
0563cbe1
...
...
@@ -123,6 +123,7 @@ char *encryptTestKey() {
TEST_CASE
(
"BLS key encrypt"
,
"[bls-key-encrypt]"
)
{
DEBUG_PRINT
=
1
;
is_sgx_https
=
0
;
autoconfirm
=
true
;
init_all
(
false
,
true
,
init_SEK
);
auto
key
=
encryptTestKey
();
REQUIRE
(
key
!=
nullptr
);
...
...
@@ -135,6 +136,7 @@ TEST_CASE("BLS key encrypt/decrypt", "[bls-key-encrypt-decrypt]") {
DEBUG_PRINT
=
1
;
is_sgx_https
=
0
;
autoconfirm
=
true
;
init_all
(
false
,
true
,
init_SEK
);
...
...
@@ -165,6 +167,7 @@ TEST_CASE("BLS key encrypt/decrypt", "[bls-key-encrypt-decrypt]") {
TEST_CASE
(
"DKG gen test"
,
"[dkg-gen]"
)
{
autoconfirm
=
true
;
//init_all();
init_enclave
();
vector
<
uint8_t
>
encrypted_dkg_secret
(
DKG_MAX_SEALED_LEN
,
0
);
...
...
@@ -251,7 +254,7 @@ libff::alt_bn128_G2 VectStringToG2(const vector<string> &G2_str_vect) {
}
TEST_CASE
(
"DKG public shares test"
,
"[dkg-pub_shares]"
)
{
autoconfirm
=
true
;
//init_all();
libff
::
init_alt_bn128_params
();
init_enclave
();
...
...
@@ -322,7 +325,7 @@ TEST_CASE("DKG public shares test", "[dkg-pub_shares]") {
}
TEST_CASE
(
"DKG encrypted secret shares test"
,
"[dkg-encr_sshares]"
)
{
autoconfirm
=
true
;
// init_all();
init_enclave
();
...
...
@@ -358,7 +361,7 @@ TEST_CASE("DKG encrypted secret shares test", "[dkg-encr_sshares]") {
}
TEST_CASE
(
"DKG verification test"
,
"[dkg-verify]"
)
{
autoconfirm
=
true
;
// init_all();
init_enclave
();
...
...
@@ -397,7 +400,7 @@ TEST_CASE("DKG verification test", "[dkg-verify]") {
TEST_CASE
(
"ECDSA keygen and signature test"
,
"[ecdsa_test]"
)
{
autoconfirm
=
true
;
init_enclave
();
vector
<
char
>
errMsg
(
1024
,
0
);
...
...
@@ -442,7 +445,7 @@ TEST_CASE("ECDSA keygen and signature test", "[ecdsa_test]") {
}
TEST_CASE
(
"Test test"
,
"[test_test]"
)
{
autoconfirm
=
true
;
init_enclave
();
vector
<
char
>
errMsg
(
1024
,
0
);
...
...
@@ -471,7 +474,7 @@ TEST_CASE("Test test", "[test_test]") {
}
TEST_CASE
(
"get public ECDSA key"
,
"[get_pub_ecdsa_key_test]"
)
{
autoconfirm
=
true
;
//init_all();
init_enclave
();
...
...
@@ -678,6 +681,7 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") {
}
TEST_CASE
(
"API test"
,
"[api_test]"
)
{
autoconfirm
=
true
;
//DEBUG_PRINT = 1;
is_sgx_https
=
0
;
//cerr << __GNUC__ << endl;
...
...
@@ -784,6 +788,7 @@ TEST_CASE("API test", "[api_test]") {
}
TEST_CASE
(
"getServerStatus test"
,
"[getServerStatus_test]"
)
{
autoconfirm
=
true
;
is_sgx_https
=
0
;
init_all
(
false
,
true
,
init_SEK
);
HttpClient
client
(
"http://localhost:1029"
);
...
...
@@ -905,6 +910,7 @@ void SendRPCRequest() {
}
TEST_CASE
(
"ManySimultaneousThreads"
,
"[many_threads_test]"
)
{
autoconfirm
=
true
;
is_sgx_https
=
0
;
DEBUG_PRINT
=
1
;
is_aes
=
1
;
...
...
@@ -925,6 +931,7 @@ TEST_CASE("ManySimultaneousThreads", "[many_threads_test]") {
}
TEST_CASE
(
"ecdsa API test"
,
"[ecdsa_api_test]"
)
{
autoconfirm
=
true
;
DEBUG_PRINT
=
1
;
is_sgx_https
=
0
;
is_aes
=
1
;
...
...
@@ -976,6 +983,7 @@ TEST_CASE("ecdsa API test", "[ecdsa_api_test]") {
}
TEST_CASE
(
"dkg API test"
,
"[dkg_api_test]"
)
{
autoconfirm
=
true
;
DEBUG_PRINT
=
1
;
is_sgx_https
=
0
;
...
...
@@ -1053,6 +1061,7 @@ TEST_CASE("dkg API test", "[dkg_api_test]") {
}
TEST_CASE
(
"isPolyExists test"
,
"[is_poly_test]"
)
{
autoconfirm
=
true
;
DEBUG_PRINT
=
1
;
is_sgx_https
=
0
;
...
...
@@ -1081,7 +1090,7 @@ TEST_CASE("isPolyExists test", "[is_poly_test]") {
}
TEST_CASE
(
"AES_DKG test"
,
"[aes_dkg]"
)
{
autoconfirm
=
true
;
is_sgx_https
=
0
;
DEBUG_PRINT
=
1
;
is_aes
=
1
;
...
...
@@ -1213,7 +1222,7 @@ TEST_CASE("AES_DKG test", "[aes_dkg]") {
}
TEST_CASE
(
"bls_sign_api test"
,
"[bls_sign]"
)
{
autoconfirm
=
true
;
is_sgx_https
=
0
;
DEBUG_PRINT
=
1
;
is_aes
=
1
;
...
...
@@ -1248,7 +1257,7 @@ TEST_CASE("bls_sign_api test", "[bls_sign]") {
TEST_CASE
(
"AES encrypt/decrypt"
,
"[AES-encrypt-decrypt]"
)
{
{
autoconfirm
=
true
;
DEBUG_PRINT
=
1
;
is_sgx_https
=
0
;
...
...
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