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
07db57cd
Commit
07db57cd
authored
12 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Benchmark salsa20r12.
parent
fc9f5348
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+6
-0
6 additions, 0 deletions
ChangeLog
examples/nettle-benchmark.c
+1
-1
1 addition, 1 deletion
examples/nettle-benchmark.c
nettle-internal.c
+9
-0
9 additions, 0 deletions
nettle-internal.c
nettle-internal.h
+1
-0
1 addition, 0 deletions
nettle-internal.h
with
17 additions
and
1 deletion
ChangeLog
+
6
−
0
View file @
07db57cd
2013-04-17 Niels Möller <nisse@lysator.liu.se>
* examples/nettle-benchmark.c (main): Benchmark salsa20r12.
* nettle-internal.c (nettle_salsa20r12): Cipher struct for
benchmarking only.
* nettle-internal.h (nettle_salsa20): Declare it.
* Makefile.in (eccdata): Depend on mini-gmp files. Drop -lgmp.
* eccdata.c: Use mini-gmp, to avoid gmp dependency and associated
...
...
This diff is collapsed.
Click to expand it.
examples/nettle-benchmark.c
+
1
−
1
View file @
07db57cd
...
...
@@ -662,7 +662,7 @@ main(int argc, char **argv)
&
nettle_des3
,
&
nettle_serpent256
,
&
nettle_twofish128
,
&
nettle_twofish192
,
&
nettle_twofish256
,
&
nettle_salsa20
,
&
nettle_salsa20
,
&
nettle_salsa20r12
,
NULL
};
...
...
This diff is collapsed.
Click to expand it.
nettle-internal.c
+
9
−
0
View file @
07db57cd
...
...
@@ -97,6 +97,15 @@ nettle_salsa20 = {
(
nettle_crypt_func
*
)
salsa20_crypt
};
const
struct
nettle_cipher
nettle_salsa20r12
=
{
"salsa20r12"
,
sizeof
(
struct
salsa20_ctx
),
0
,
SALSA20_KEY_SIZE
,
salsa20_set_key_hack
,
salsa20_set_key_hack
,
(
nettle_crypt_func
*
)
salsa20r12_crypt
,
(
nettle_crypt_func
*
)
salsa20r12_crypt
};
const
struct
nettle_aead
nettle_gcm_aes128
=
_NETTLE_AEAD
(
gcm
,
GCM
,
aes
,
128
);
const
struct
nettle_aead
...
...
This diff is collapsed.
Click to expand it.
nettle-internal.h
+
1
−
0
View file @
07db57cd
...
...
@@ -62,6 +62,7 @@ extern const struct nettle_cipher nettle_blowfish128;
/* For benchmarking only, sets no iv and lies about the block size. */
extern
const
struct
nettle_cipher
nettle_salsa20
;
extern
const
struct
nettle_cipher
nettle_salsa20r12
;
/* Glue to openssl, for comparative benchmarking. Code in
* examples/nettle-openssl.c. */
...
...
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