Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
20
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
1f4a0fe0
Commit
1f4a0fe0
authored
3 years ago
by
Evgeniy Kramsakov
Browse files
Options
Downloads
Plain Diff
Merge branch 'bug-5304' into 'release-3.0'
bug-5304 See merge request
!414
parents
a3075d77
a41d09a6
No related branches found
Branches containing commit
No related tags found
10 merge requests
!439
feature 4930
,
!437
feature 4930
,
!435
Feature 4930
,
!434
Feature 5344
,
!433
Feature 5344
,
!432
Feature 5220
,
!431
Feature 5220
,
!430
Feature 5220
,
!428
bugs-5311
,
!414
bug-5304
Pipeline
#10160
passed with stage
Stage: analyze
in 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap-sdk/crypto/test/crypto/dap_enc_base58_test.c
+5
-2
5 additions, 2 deletions
dap-sdk/crypto/test/crypto/dap_enc_base58_test.c
dap-sdk/crypto/test/crypto/main.c
+32
-38
32 additions, 38 deletions
dap-sdk/crypto/test/crypto/main.c
with
37 additions
and
40 deletions
dap-sdk/crypto/test/crypto/dap_enc_base58_test.c
+
5
−
2
View file @
1f4a0fe0
...
...
@@ -7,9 +7,12 @@
#include
"dap_enc_base58.h"
#include
"dap_enc_base58_test.h"
size_t
source_size
;
static
void
test_encode_decode_base58
(
void
)
{
static
size_t
source_size
=
0
;
// static size_t source_size = 0;
// source_size = 0;
int
step
=
1
+
random_uint32_t
(
20
);
source_size
+=
(
size_t
)
step
;
...
...
@@ -30,7 +33,7 @@ static void test_encode_decode_base58(void)
void
dap_enc_base58_tests_run
()
{
dap_print_module_name
(
"dap_enc_base58"
);
source_size
=
0
;
benchmark_mgs_time
(
"Encode and decode DAP_ENC_STANDARD_B58 100 times"
,
benchmark_test_time
(
test_encode_decode_base58
,
100
));
...
...
This diff is collapsed.
Click to expand it.
dap-sdk/crypto/test/crypto/main.c
+
32
−
38
View file @
1f4a0fe0
...
...
@@ -15,46 +15,40 @@
void
dap_enc_newhope_tests_run
(
const
int
times
);
int
main
(
void
)
{
// switch off debug info from library
int
main
(
void
)
{
// switch off debug info from library
dap_log_level_set
(
L_CRITICAL
);
const
int
test_numbers
=
100
;
// dap_enc_ringct20_tests_run(test_numbers);//return 0;
const
int
test_numbers
=
100
;
dap_enc_newhope_tests_run
(
test_numbers
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_SALSA2012
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_SALSA2012
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_SEED_OFB
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_SEED_OFB
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_GOST_OFB
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_GOST_OFB
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_KUZN_OFB
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_KUZN_OFB
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_CBC
,
0
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_CBC
,
0
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_OFB
,
0
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_OFB
,
0
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_IAES
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_IAES
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_OAES
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_OAES
,
32
);
// return 0;
// dap_enc_tests_run();
// dap_enc_picnic_tests_run();
// dap_enc_sig_bliss_tests_run();
// dap_enc_dilithium_tests_run();
// dap_enc_msrln_tests_run();
//
// dap_enc_base64_tests_run();
// dap_enc_base58_tests_run();
// dap_enc_defeo_tests_run();
// dap_enc_tesla_tests_run();
//
// dap_enc_multi_sign_tests_run();
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_SALSA2012
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_SALSA2012
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_SEED_OFB
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_SEED_OFB
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_GOST_OFB
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_GOST_OFB
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_KUZN_OFB
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_KUZN_OFB
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_CBC
,
0
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_CBC
,
0
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_OFB
,
0
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_BF_OFB
,
0
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_IAES
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_IAES
,
32
);
test_encypt_decrypt
(
test_numbers
,
DAP_ENC_KEY_TYPE_OAES
,
32
);
test_encypt_decrypt_fast
(
test_numbers
,
DAP_ENC_KEY_TYPE_OAES
,
32
);
// // return 0;
dap_enc_tests_run
();
dap_enc_picnic_tests_run
();
dap_enc_sig_bliss_tests_run
();
dap_enc_dilithium_tests_run
();
dap_enc_msrln_tests_run
();
dap_enc_base64_tests_run
();
dap_enc_base58_tests_run
();
dap_enc_defeo_tests_run
();
dap_enc_tesla_tests_run
();
dap_enc_multi_sign_tests_run
();
dap_enc_ringct20_tests_run
(
100
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment