]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(arcfour_stream): Deleted function. It's not very useful, and neither
authorNiels Möller <nisse@lysator.liu.se>
Fri, 18 Feb 2011 18:52:31 +0000 (19:52 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 18 Feb 2011 18:52:31 +0000 (19:52 +0100)
documented nor tested.

Rev: nettle/ChangeLog:1.158
Rev: nettle/arcfour.c:1.2

ChangeLog
arcfour.c

index ba793cc2f213b1ae34b7c1bdb3d79cbaf2bf1aa1..13441372120a08168e4af6af96550014afa3af21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-18  Niels Möller  <nisse@lysator.liu.se>
+
+       * arcfour.c (arcfour_stream): Deleted function. It's not very
+       useful, and neither documented nor tested.
+
 2011-02-16  Niels Möller  <nisse@lysator.liu.se>
 
        * cbc.h (CBC_ENCRYPT): Avoid using NULL; we don't ensure that it
index d83342220ab60541f4ff7d5577e6eec3c684007d..3e15a40d3e24fcf41089eafb29404d11b1a739d8 100644 (file)
--- a/arcfour.c
+++ b/arcfour.c
@@ -56,23 +56,3 @@ arcfour_set_key(struct arcfour_ctx *ctx,
   ctx->i = ctx->j = 0;
 }
 
-void
-arcfour_stream(struct arcfour_ctx *ctx,
-              unsigned length, uint8_t *dst)
-{
-  register uint8_t i, j;
-  register int si, sj;
-
-  i = ctx->i; j = ctx->j;
-  while(length--)
-    {
-      i++; i &= 0xff;
-      si = ctx->S[i];
-      j += si; j &= 0xff;
-      sj = ctx->S[i] = ctx->S[j];
-      ctx->S[j] = si;
-      *dst++ = ctx->S[ (si + sj) & 0xff ];
-    }
-  ctx->i = i; ctx->j = j;
-}
-