]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Deleted nettle_cipher nettle_arcfour128.
authorNiels Möller <nisse@lysator.liu.se>
Sun, 16 Mar 2014 21:48:23 +0000 (22:48 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 16 Mar 2014 21:48:23 +0000 (22:48 +0100)
ChangeLog
Makefile.in
arcfour-meta.c [deleted file]
examples/nettle-benchmark.c
examples/nettle-openssl.c
nettle-meta-ciphers.c
nettle-meta.h
testsuite/meta-cipher-test.c

index f408d1ef894e8f7eae99bc70fdb5f165f7b45d50..c92c2a05a4e1f24566e2322d782a523e10c72068 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2014-03-16  Niels Möller  <nisse@lysator.liu.se>
+
+       * arcfour-meta.c: Deleted file.
+       * nettle-meta.h (nettle_arcfour128): Deleted declaration.
+       * nettle-meta-ciphers.c (nettle_ciphers): Deleted
+       nettle_arcfour128 from list.
+       * Makefile.in (nettle_SOURCES): Deleted arcfour-meta.c.
+       * examples/nettle-openssl.c (nettle_openssl_arcfour128): Deleted.
+       * testsuite/meta-cipher-test.c: Adjust test for removal of
+       nettle_arcfour128.
+
 2014-03-15  Niels Möller  <nisse@lysator.liu.se>
 
        * examples/nettle-benchmark.c (struct bench_aead_info): New
index 522c774d7bffaa080c9329028d470ab66b31bad6..d88e331f4c8142de726ce4a1653d38aa55ac4212 100644 (file)
@@ -72,7 +72,7 @@ nettle_SOURCES = aes-decrypt-internal.c aes-decrypt.c \
                 aes192-meta.c \
                 aes256-set-encrypt-key.c aes256-set-decrypt-key.c \
                 aes256-meta.c \
-                arcfour.c arcfour-crypt.c arcfour-meta.c \
+                arcfour.c arcfour-crypt.c \
                 arctwo.c arctwo-meta.c blowfish.c \
                 base16-encode.c base16-decode.c base16-meta.c \
                 base64-encode.c base64-decode.c base64-meta.c \
diff --git a/arcfour-meta.c b/arcfour-meta.c
deleted file mode 100644 (file)
index 70ec106..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* arcfour-meta.c */
-
-/* nettle, low-level cryptographics library
- *
- * Copyright (C) 2002 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
- * the Free Software Foundation; either version 2.1 of the License, or (at your
- * option) any later version.
- * 
- * The nettle library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
- * License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public License
- * along with the nettle library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02111-1301, USA.
- */
-
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "nettle-meta.h"
-
-#include "arcfour.h"
-
-const struct nettle_cipher nettle_arcfour128 =
-  { "arcfour128", sizeof(struct arcfour_ctx),
-    0, ARCFOUR128_KEY_SIZE,
-    (nettle_set_key_func *) arcfour128_set_key,
-    (nettle_set_key_func *) arcfour128_set_key,
-    (nettle_crypt_func *) arcfour_crypt,
-    (nettle_crypt_func *) arcfour_crypt
-  };
index a84e9daca6268d930a92bf25f0b6f44c20bdca03..8a15891ab954274d3294a3f5dca5f071edf3ee46 100644 (file)
@@ -735,7 +735,6 @@ main(int argc, char **argv)
       OPENSSL(&nettle_openssl_aes128)
       OPENSSL(&nettle_openssl_aes192)
       OPENSSL(&nettle_openssl_aes256)
-      &nettle_arcfour128, OPENSSL(&nettle_openssl_arcfour128)
       &nettle_blowfish128, OPENSSL(&nettle_openssl_blowfish128)
       &nettle_camellia128, &nettle_camellia192, &nettle_camellia256,
       &nettle_cast128, OPENSSL(&nettle_openssl_cast128)
index 25aa5e9719ceb0f27fe10c02d7353025a70a090c..a2678363ddc743a6b1189a682a53a322066b96b3 100644 (file)
@@ -149,30 +149,6 @@ nettle_openssl_aes256 = {
   openssl_aes_encrypt, openssl_aes_decrypt
 };
 
-/* Arcfour */
-static nettle_set_key_func openssl_arcfour128_set_key;
-static void
-openssl_arcfour128_set_key(void *ctx, const uint8_t *key)
-{
-  RC4_set_key(ctx, 16, key);
-}
-
-static nettle_crypt_func openssl_arcfour_crypt;
-static void
-openssl_arcfour_crypt(void *ctx, size_t length,
-                     uint8_t *dst, const uint8_t *src)
-{
-  RC4(ctx, length, src, dst);
-}
-
-const struct nettle_cipher
-nettle_openssl_arcfour128 = {
-  "openssl arcfour128", sizeof(RC4_KEY),
-  0, 16,
-  openssl_arcfour128_set_key, openssl_arcfour128_set_key,
-  openssl_arcfour_crypt, openssl_arcfour_crypt
-};
-
 /* Blowfish */
 static nettle_set_key_func openssl_bf128_set_key;
 static void
index 316cf87b534ff78213b9e834fbb9781e16a9d48c..d618bc760d1f4a119fc2560a0bb935eb81072e4c 100644 (file)
@@ -31,7 +31,6 @@ const struct nettle_cipher * const nettle_ciphers[] = {
   &nettle_aes128,
   &nettle_aes192,
   &nettle_aes256,
-  &nettle_arcfour128,
   &nettle_camellia128,
   &nettle_camellia192,
   &nettle_camellia256,
index 2c9506b5695a73af9fbdbc7ae66cac7e5293c71e..f7b8675f2ee480ca84dccfdda9f9606061bc8c73 100644 (file)
@@ -59,8 +59,6 @@ extern const struct nettle_cipher nettle_aes128;
 extern const struct nettle_cipher nettle_aes192;
 extern const struct nettle_cipher nettle_aes256;
 
-extern const struct nettle_cipher nettle_arcfour128;
-
 extern const struct nettle_cipher nettle_camellia128;
 extern const struct nettle_cipher nettle_camellia192;
 extern const struct nettle_cipher nettle_camellia256;
index e252addd3324a151531499be8faaf8a662814f88..f949fd76aabb5c678ef413e489d1542ea984ee96 100644 (file)
@@ -9,7 +9,6 @@ const char* ciphers[] = {
   "arctwo64",
   "arctwo128",
   "arctwo_gutmann128",
-  "arcfour128",
   "camellia128",
   "camellia192",
   "camellia256",