diff options
author | Niels Möller <nisse@lysator.liu.se> | 2011-02-18 19:52:31 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2011-02-18 19:52:31 +0100 |
commit | b51d1c2cb0210fdce83a25a71e18a7d2ab314e60 (patch) | |
tree | d723831c9e2c68bb0a8725ee0893836f9a741226 /arcfour.c | |
parent | c64d97a45f69a3d38d68d991530d7e99b5b0e930 (diff) | |
download | nettle-b51d1c2cb0210fdce83a25a71e18a7d2ab314e60.tar.gz |
(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
Diffstat (limited to 'arcfour.c')
-rw-r--r-- | arcfour.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -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; -} - |