lzo-rle.c (5800571960234f9d1f1011bf135799b2014d4268) lzo-rle.c (d6ebf5286f8f94a254a8c90d4b9f2a8b076a8634)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Cryptographic API.
1/*
2 * Cryptographic API.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published by
6 * the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 *
4 */
5
6#include <linux/init.h>
7#include <linux/module.h>
8#include <linux/crypto.h>
9#include <linux/vmalloc.h>
10#include <linux/mm.h>
11#include <linux/lzo.h>

--- 92 unchanged lines hidden (view full) ---

104 unsigned int slen, u8 *dst, unsigned int *dlen,
105 void *ctx)
106{
107 return __lzorle_decompress(src, slen, dst, dlen);
108}
109
110static struct crypto_alg alg = {
111 .cra_name = "lzo-rle",
17 */
18
19#include <linux/init.h>
20#include <linux/module.h>
21#include <linux/crypto.h>
22#include <linux/vmalloc.h>
23#include <linux/mm.h>
24#include <linux/lzo.h>

--- 92 unchanged lines hidden (view full) ---

117 unsigned int slen, u8 *dst, unsigned int *dlen,
118 void *ctx)
119{
120 return __lzorle_decompress(src, slen, dst, dlen);
121}
122
123static struct crypto_alg alg = {
124 .cra_name = "lzo-rle",
125 .cra_driver_name = "lzo-rle-generic",
112 .cra_flags = CRYPTO_ALG_TYPE_COMPRESS,
113 .cra_ctxsize = sizeof(struct lzorle_ctx),
114 .cra_module = THIS_MODULE,
115 .cra_init = lzorle_init,
116 .cra_exit = lzorle_exit,
117 .cra_u = { .compress = {
118 .coa_compress = lzorle_compress,
119 .coa_decompress = lzorle_decompress } }

--- 43 unchanged lines hidden ---
126 .cra_flags = CRYPTO_ALG_TYPE_COMPRESS,
127 .cra_ctxsize = sizeof(struct lzorle_ctx),
128 .cra_module = THIS_MODULE,
129 .cra_init = lzorle_init,
130 .cra_exit = lzorle_exit,
131 .cra_u = { .compress = {
132 .coa_compress = lzorle_compress,
133 .coa_decompress = lzorle_decompress } }

--- 43 unchanged lines hidden ---