Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
bceb555e
Commit
bceb555e
authored
Aug 5, 2016
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
hogweed-benchmark: Use uint8_t for curve25519 values.
parent
094ae866
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+2
-2
2 additions, 2 deletions
ChangeLog
examples/hogweed-benchmark.c
+4
-4
4 additions, 4 deletions
examples/hogweed-benchmark.c
with
6 additions
and
6 deletions
ChangeLog
+
2
−
2
View file @
bceb555e
2016-08-05 Niels Möller <nisse@lysator.liu.se>
2016-08-05 Niels Möller <nisse@lysator.liu.se>
* examples/hogweed-benchmark.c
(bench_rsa_init)
: Use uint8_t for
* examples/hogweed-benchmark.c: Use uint8_t for
curve25519 values.
sexp strings.
(bench_rsa_init): Use uint8_t for
sexp strings.
(bench_dsa_init): Likewise.
(bench_dsa_init): Likewise.
* examples/io.c (read_file): Use size_t for sizes, and uint8_t for
* examples/io.c (read_file): Use size_t for sizes, and uint8_t for
...
...
This diff is collapsed.
Click to expand it.
examples/hogweed-benchmark.c
+
4
−
4
View file @
bceb555e
...
@@ -652,15 +652,15 @@ bench_openssl_ecdsa_clear (void *p)
...
@@ -652,15 +652,15 @@ bench_openssl_ecdsa_clear (void *p)
struct
curve25519_ctx
struct
curve25519_ctx
{
{
char
x
[
CURVE25519_SIZE
];
uint8_t
x
[
CURVE25519_SIZE
];
char
s
[
CURVE25519_SIZE
];
uint8_t
s
[
CURVE25519_SIZE
];
};
};
static
void
static
void
bench_curve25519_mul_g
(
void
*
p
)
bench_curve25519_mul_g
(
void
*
p
)
{
{
struct
curve25519_ctx
*
ctx
=
p
;
struct
curve25519_ctx
*
ctx
=
p
;
char
q
[
CURVE25519_SIZE
];
uint8_t
q
[
CURVE25519_SIZE
];
curve25519_mul_g
(
q
,
ctx
->
s
);
curve25519_mul_g
(
q
,
ctx
->
s
);
}
}
...
@@ -668,7 +668,7 @@ static void
...
@@ -668,7 +668,7 @@ static void
bench_curve25519_mul
(
void
*
p
)
bench_curve25519_mul
(
void
*
p
)
{
{
struct
curve25519_ctx
*
ctx
=
p
;
struct
curve25519_ctx
*
ctx
=
p
;
char
q
[
CURVE25519_SIZE
];
uint8_t
q
[
CURVE25519_SIZE
];
curve25519_mul
(
q
,
ctx
->
s
,
ctx
->
x
);
curve25519_mul
(
q
,
ctx
->
s
,
ctx
->
x
);
}
}
...
...
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