From b51d1c2cb0210fdce83a25a71e18a7d2ab314e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Fri, 18 Feb 2011 19:52:31 +0100 Subject: [PATCH] (arcfour_stream): Deleted function. It's not very useful, and neither documented nor tested. Rev: nettle/ChangeLog:1.158 Rev: nettle/arcfour.c:1.2 --- ChangeLog | 5 +++++ arcfour.c | 20 -------------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba793cc2..13441372 100644 --- 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 diff --git a/arcfour.c b/arcfour.c index d8334222..3e15a40d 100644 --- 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; -} - -- GitLab