Blame view
crypto/compress.c
921 Bytes
2874c5fd2 treewide: Replace... |
1 |
// SPDX-License-Identifier: GPL-2.0-or-later |
1da177e4c Linux-2.6.12-rc2 |
2 3 4 5 6 7 |
/* * Cryptographic API. * * Compression operations. * * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> |
1da177e4c Linux-2.6.12-rc2 |
8 |
*/ |
1da177e4c Linux-2.6.12-rc2 |
9 |
#include <linux/crypto.h> |
1da177e4c Linux-2.6.12-rc2 |
10 |
#include "internal.h" |
c441a909c crypto: compress ... |
11 12 13 |
int crypto_comp_compress(struct crypto_comp *comp, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen) |
1da177e4c Linux-2.6.12-rc2 |
14 |
{ |
c441a909c crypto: compress ... |
15 |
struct crypto_tfm *tfm = crypto_comp_tfm(comp); |
6c2bb98bc [CRYPTO] all: Pas... |
16 |
return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, |
1da177e4c Linux-2.6.12-rc2 |
17 18 |
dlen); } |
c441a909c crypto: compress ... |
19 |
EXPORT_SYMBOL_GPL(crypto_comp_compress); |
1da177e4c Linux-2.6.12-rc2 |
20 |
|
c441a909c crypto: compress ... |
21 22 23 |
int crypto_comp_decompress(struct crypto_comp *comp, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen) |
1da177e4c Linux-2.6.12-rc2 |
24 |
{ |
c441a909c crypto: compress ... |
25 |
struct crypto_tfm *tfm = crypto_comp_tfm(comp); |
6c2bb98bc [CRYPTO] all: Pas... |
26 |
return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, |
1da177e4c Linux-2.6.12-rc2 |
27 28 |
dlen); } |
c441a909c crypto: compress ... |
29 |
EXPORT_SYMBOL_GPL(crypto_comp_decompress); |