summaryrefslogtreecommitdiff
path: root/camellia192-meta.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-01-29 15:13:54 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-01-29 15:13:54 +0100
commit587855374c50562acf598660e173e76c6e3195bb (patch)
tree2a8169192ca0c6df7cdbf230094f497680996a67 /camellia192-meta.c
parentf508b1fe613f06c571bdc1997cd006f95874d4cb (diff)
downloadnettle-set_key-changes.tar.gz
Dropped length argument from nettle_set_key_func.set_key-changes
Diffstat (limited to 'camellia192-meta.c')
-rw-r--r--camellia192-meta.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/camellia192-meta.c b/camellia192-meta.c
index bdb5c130..62d9b194 100644
--- a/camellia192-meta.c
+++ b/camellia192-meta.c
@@ -2,7 +2,7 @@
/* nettle, low-level cryptographics library
*
- * Copyright (C) 2010, 2013 Niels Möller
+ * Copyright (C) 2010, 2013, 2014 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -30,25 +30,11 @@
#include "camellia.h"
-static void
-camellia192_set_encrypt_key_wrapper (void *ctx, size_t length, const uint8_t *key)
-{
- assert (length == CAMELLIA192_KEY_SIZE);
- camellia192_set_encrypt_key (ctx, key);
-}
-
-static void
-camellia192_set_decrypt_key_wrapper (void *ctx, size_t length, const uint8_t *key)
-{
- assert (length == CAMELLIA192_KEY_SIZE);
- camellia192_set_decrypt_key (ctx, key);
-}
-
const struct nettle_cipher nettle_camellia192 =
{ "camellia192", sizeof(struct camellia256_ctx),
CAMELLIA_BLOCK_SIZE, CAMELLIA192_KEY_SIZE,
- camellia192_set_encrypt_key_wrapper,
- camellia192_set_decrypt_key_wrapper,
+ (nettle_set_key_func *) camellia192_set_encrypt_key,
+ (nettle_set_key_func *) camellia192_set_decrypt_key,
(nettle_crypt_func *) camellia256_crypt,
(nettle_crypt_func *) camellia256_crypt
};