diff options
| author | Michael Brown | 2022-10-25 13:59:06 +0200 |
|---|---|---|
| committer | Michael Brown | 2022-10-25 14:20:22 +0200 |
| commit | 52f72d298abd81a6102ddddf2fff4918e4b077ce (patch) | |
| tree | ccae06dfd5d708991031730871188ee37a138c62 /src/crypto/arc4.c | |
| parent | [tls] Add support for DHE variants of the existing cipher suites (diff) | |
| download | ipxe-52f72d298abd81a6102ddddf2fff4918e4b077ce.tar.gz ipxe-52f72d298abd81a6102ddddf2fff4918e4b077ce.tar.xz ipxe-52f72d298abd81a6102ddddf2fff4918e4b077ce.zip | |
[crypto] Expose null crypto algorithm methods for reuse
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto/arc4.c')
| -rw-r--r-- | src/crypto/arc4.c | 8 |
1 files changed, 1 insertions, 7 deletions
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, }; |
