documented nor tested.
Rev: nettle/ChangeLog:1.158
Rev: nettle/arcfour.c:1.2
+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
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;
-}
-