aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/compress.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2025-03-16 09:21:27 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-03-21 17:39:06 +0800
commitfce8b8d5986b76a4fdd062e3eec1bb6420fee6c5 (patch)
treea650adef7eb2d2a2dd863f4aba70e25321c138c0 /crypto/compress.c
parentbe457e4e8da6e0a797dba2344ac34de647a5322e (diff)
downloadnet-fce8b8d5986b76a4fdd062e3eec1bb6420fee6c5.tar.gz
crypto: remove obsolete 'comp' compression API
The 'comp' compression API has been superseded by the acomp API, which is a bit more cumbersome to use, but ultimately more flexible when it comes to hardware implementations. Now that all the users and implementations have been removed, let's remove the core plumbing of the 'comp' API as well. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/compress.c')
-rw-r--r--crypto/compress.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/crypto/compress.c b/crypto/compress.c
deleted file mode 100644
index 9048fe390c4630..00000000000000
--- a/crypto/compress.c
+++ /dev/null
@@ -1,32 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * Cryptographic API.
- *
- * Compression operations.
- *
- * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
- */
-#include <linux/crypto.h>
-#include "internal.h"
-
-int crypto_comp_compress(struct crypto_comp *comp,
- const u8 *src, unsigned int slen,
- u8 *dst, unsigned int *dlen)
-{
- struct crypto_tfm *tfm = crypto_comp_tfm(comp);
-
- return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst,
- dlen);
-}
-EXPORT_SYMBOL_GPL(crypto_comp_compress);
-
-int crypto_comp_decompress(struct crypto_comp *comp,
- const u8 *src, unsigned int slen,
- u8 *dst, unsigned int *dlen)
-{
- struct crypto_tfm *tfm = crypto_comp_tfm(comp);
-
- return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst,
- dlen);
-}
-EXPORT_SYMBOL_GPL(crypto_comp_decompress);