Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
7ee0230d
Commit
7ee0230d
authored
Apr 10, 2014
by
Nikos Mavrogiannopoulos
Committed by
Niels Möller
Apr 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabled tests for openssl curves secp256r1 and secp192r1.
parent
0802f01a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
ChangeLog
ChangeLog
+7
-0
examples/hogweed-benchmark.c
examples/hogweed-benchmark.c
+4
-7
No files found.
ChangeLog
View file @
7ee0230d
2014-04-10 Niels Möller <nisse@lysator.liu.se>
From Nikos Mavrogiannopoulos:
* examples/hogweed-benchmark.c (bench_openssl_ecdsa_init): Support
for secp192r1 and secp256r1.
(alg_list): Add them.
2014-04-09 Niels Möller <nisse@lysator.liu.se>
* examples/nettle-benchmark.c (main): Benchmark sha512_224 and
...
...
examples/hogweed-benchmark.c
View file @
7ee0230d
...
...
@@ -564,28 +564,23 @@ bench_openssl_ecdsa_init (unsigned size)
{
struct
openssl_ecdsa_ctx
*
ctx
=
xalloc
(
sizeof
(
*
ctx
));
/* Apparently, secp192r1 and secp256r1 are missing */
switch
(
size
)
{
#if 0
case
192
:
ctx->key = EC_KEY_new_by_curve_name (NID_
secp192r
1);
ctx
->
key
=
EC_KEY_new_by_curve_name
(
NID_
X9_62_prime192v
1
);
ctx
->
digest_length
=
24
;
/* truncated */
ctx
->
digest
=
hash_string
(
&
nettle_sha224
,
3
,
"abc"
);
break
;
#endif
case
224
:
ctx
->
key
=
EC_KEY_new_by_curve_name
(
NID_secp224r1
);
ctx
->
digest_length
=
SHA224_DIGEST_SIZE
;
ctx
->
digest
=
hash_string
(
&
nettle_sha224
,
3
,
"abc"
);
break
;
#if 0
case
256
:
ctx->key = EC_KEY_new_by_curve_name (NID_
secp256r
1);
ctx
->
key
=
EC_KEY_new_by_curve_name
(
NID_
X9_62_prime256v
1
);
ctx
->
digest_length
=
SHA256_DIGEST_SIZE
;
ctx
->
digest
=
hash_string
(
&
nettle_sha256
,
3
,
"abc"
);
break
;
#endif
case
384
:
ctx
->
key
=
EC_KEY_new_by_curve_name
(
NID_secp384r1
);
ctx
->
digest_length
=
SHA384_DIGEST_SIZE
;
...
...
@@ -653,7 +648,9 @@ struct alg alg_list[] = {
{
"ecdsa"
,
384
,
bench_ecdsa_init
,
bench_ecdsa_sign
,
bench_ecdsa_verify
,
bench_ecdsa_clear
},
{
"ecdsa"
,
521
,
bench_ecdsa_init
,
bench_ecdsa_sign
,
bench_ecdsa_verify
,
bench_ecdsa_clear
},
#if WITH_OPENSSL
{
"ecdsa (openssl)"
,
192
,
bench_openssl_ecdsa_init
,
bench_openssl_ecdsa_sign
,
bench_openssl_ecdsa_verify
,
bench_openssl_ecdsa_clear
},
{
"ecdsa (openssl)"
,
224
,
bench_openssl_ecdsa_init
,
bench_openssl_ecdsa_sign
,
bench_openssl_ecdsa_verify
,
bench_openssl_ecdsa_clear
},
{
"ecdsa (openssl)"
,
256
,
bench_openssl_ecdsa_init
,
bench_openssl_ecdsa_sign
,
bench_openssl_ecdsa_verify
,
bench_openssl_ecdsa_clear
},
{
"ecdsa (openssl)"
,
384
,
bench_openssl_ecdsa_init
,
bench_openssl_ecdsa_sign
,
bench_openssl_ecdsa_verify
,
bench_openssl_ecdsa_clear
},
{
"ecdsa (openssl)"
,
521
,
bench_openssl_ecdsa_init
,
bench_openssl_ecdsa_sign
,
bench_openssl_ecdsa_verify
,
bench_openssl_ecdsa_clear
},
#endif
...
...
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