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
bceb555e
Commit
bceb555e
authored
Aug 05, 2016
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hogweed-benchmark: Use uint8_t for curve25519 values.
parent
094ae866
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ChangeLog
ChangeLog
+2
-2
examples/hogweed-benchmark.c
examples/hogweed-benchmark.c
+4
-4
No files found.
ChangeLog
View file @
bceb555e
2016-08-05 Niels Möller <nisse@lysator.liu.se>
* examples/hogweed-benchmark.c
(bench_rsa_init): Use uint8_t for
sexp strings.
* examples/hogweed-benchmark.c
: Use uint8_t for curve25519 values.
(bench_rsa_init): Use uint8_t for
sexp strings.
(bench_dsa_init): Likewise.
* examples/io.c (read_file): Use size_t for sizes, and uint8_t for
...
...
examples/hogweed-benchmark.c
View file @
bceb555e
...
...
@@ -652,15 +652,15 @@ bench_openssl_ecdsa_clear (void *p)
struct
curve25519_ctx
{
char
x
[
CURVE25519_SIZE
];
char
s
[
CURVE25519_SIZE
];
uint8_t
x
[
CURVE25519_SIZE
];
uint8_t
s
[
CURVE25519_SIZE
];
};
static
void
bench_curve25519_mul_g
(
void
*
p
)
{
struct
curve25519_ctx
*
ctx
=
p
;
char
q
[
CURVE25519_SIZE
];
uint8_t
q
[
CURVE25519_SIZE
];
curve25519_mul_g
(
q
,
ctx
->
s
);
}
...
...
@@ -668,7 +668,7 @@ static void
bench_curve25519_mul
(
void
*
p
)
{
struct
curve25519_ctx
*
ctx
=
p
;
char
q
[
CURVE25519_SIZE
];
uint8_t
q
[
CURVE25519_SIZE
];
curve25519_mul
(
q
,
ctx
->
s
,
ctx
->
x
);
}
...
...
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