diff options
| author | Ard Biesheuvel <[email protected]> | 2025-03-16 01:21:27 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2025-03-21 09:39:06 +0000 |
| commit | fce8b8d5986b76a4fdd062e3eec1bb6420fee6c5 (patch) | |
| tree | a650adef7eb2d2a2dd863f4aba70e25321c138c0 /crypto/compress.c | |
| parent | crypto: compress_null - drop obsolete 'comp' implementation (diff) | |
| download | kernel-fce8b8d5986b76a4fdd062e3eec1bb6420fee6c5.tar.gz kernel-fce8b8d5986b76a4fdd062e3eec1bb6420fee6c5.zip | |
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'crypto/compress.c')
| -rw-r--r-- | crypto/compress.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/crypto/compress.c b/crypto/compress.c deleted file mode 100644 index 9048fe390c46..000000000000 --- 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 <[email protected]> - */ -#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); |
