From 52f72d298abd81a6102ddddf2fff4918e4b077ce Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 25 Oct 2022 12:59:06 +0100 Subject: [crypto] Expose null crypto algorithm methods for reuse Signed-off-by: Michael Brown --- src/crypto/arc4.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/crypto/arc4.c') diff --git a/src/crypto/arc4.c b/src/crypto/arc4.c index 91a732019..0dba2fc59 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, }; -- cgit v1.2.3-55-g7522