summaryrefslogtreecommitdiff
path: root/nettle-internal.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-17 13:22:35 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-17 13:22:35 +0200
commit07db57cd636e08cf365b5346de7f56cf6c29c9d1 (patch)
tree14e8775873d784f00e8e6b3a8ce6fd97c5ada114 /nettle-internal.c
parentfc9f5348949159189fd349427da7c93bc2fee5d0 (diff)
downloadnettle-07db57cd636e08cf365b5346de7f56cf6c29c9d1.tar.gz
Benchmark salsa20r12.
Diffstat (limited to 'nettle-internal.c')
-rw-r--r--nettle-internal.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nettle-internal.c b/nettle-internal.c
index d1d76752..f271eac0 100644
--- a/nettle-internal.c
+++ b/nettle-internal.c
@@ -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