diff options
Diffstat (limited to 'camellia192-meta.c')
-rw-r--r-- | camellia192-meta.c | 20 |
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 }; |