diff --git a/ChangeLog b/ChangeLog index ba793cc2f213b1ae34b7c1bdb3d79cbaf2bf1aa1..13441372120a08168e4af6af96550014afa3af21 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 d83342220ab60541f4ff7d5577e6eec3c684007d..3e15a40d3e24fcf41089eafb29404d11b1a739d8 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; -} -