aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/arc4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/arc4.c')
-rw-r--r--src/crypto/arc4.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/crypto/arc4.c b/src/crypto/arc4.c
index 91a7320..0dba2fc 100644
--- a/src/crypto/arc4.c
+++ b/src/crypto/arc4.c
@@ -96,12 +96,6 @@ static void arc4_xor ( void *ctxv, const void *srcv, void *dstv,
ctx->j = j;
}
-static void arc4_setiv ( void *ctx __unused, const void *iv __unused )
-{
- /* ARC4 does not use a fixed-length IV */
-}
-
-
/**
* Perform ARC4 encryption or decryption, skipping initial keystream bytes
*
@@ -126,7 +120,7 @@ struct cipher_algorithm arc4_algorithm = {
.ctxsize = ARC4_CTX_SIZE,
.blocksize = 1,
.setkey = arc4_setkey,
- .setiv = arc4_setiv,
+ .setiv = cipher_null_setiv,
.encrypt = arc4_xor,
.decrypt = arc4_xor,
};