Skip to content
Snippets Groups Projects
Commit b51d1c2c authored by Niels Möller's avatar Niels Möller
Browse files

(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
parent c64d97a4
No related branches found
No related tags found
No related merge requests found
2011-02-18 Niels Mller <nisse@lysator.liu.se>
* arcfour.c (arcfour_stream): Deleted function. It's not very
useful, and neither documented nor tested.
2011-02-16 Niels Mller <nisse@lysator.liu.se> 2011-02-16 Niels Mller <nisse@lysator.liu.se>
* cbc.h (CBC_ENCRYPT): Avoid using NULL; we don't ensure that it * cbc.h (CBC_ENCRYPT): Avoid using NULL; we don't ensure that it
......
...@@ -56,23 +56,3 @@ arcfour_set_key(struct arcfour_ctx *ctx, ...@@ -56,23 +56,3 @@ arcfour_set_key(struct arcfour_ctx *ctx,
ctx->i = ctx->j = 0; 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment