lz4.c (5800571960234f9d1f1011bf135799b2014d4268) | lz4.c (d6ebf5286f8f94a254a8c90d4b9f2a8b076a8634) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only | |
2/* 3 * Cryptographic API. 4 * 5 * Copyright (c) 2013 Chanho Min <chanho.min@lge.com> | 1/* 2 * Cryptographic API. 3 * 4 * Copyright (c) 2013 Chanho Min <chanho.min@lge.com> |
5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published by 8 * the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 * You should have received a copy of the GNU General Public License along with 16 * this program; if not, write to the Free Software Foundation, Inc., 51 17 * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * |
|
6 */ 7 8#include <linux/init.h> 9#include <linux/module.h> 10#include <linux/crypto.h> 11#include <linux/vmalloc.h> 12#include <linux/lz4.h> 13#include <crypto/internal/scompress.h> --- 87 unchanged lines hidden (view full) --- 101 unsigned int slen, u8 *dst, 102 unsigned int *dlen) 103{ 104 return __lz4_decompress_crypto(src, slen, dst, dlen, NULL); 105} 106 107static struct crypto_alg alg_lz4 = { 108 .cra_name = "lz4", | 19 */ 20 21#include <linux/init.h> 22#include <linux/module.h> 23#include <linux/crypto.h> 24#include <linux/vmalloc.h> 25#include <linux/lz4.h> 26#include <crypto/internal/scompress.h> --- 87 unchanged lines hidden (view full) --- 114 unsigned int slen, u8 *dst, 115 unsigned int *dlen) 116{ 117 return __lz4_decompress_crypto(src, slen, dst, dlen, NULL); 118} 119 120static struct crypto_alg alg_lz4 = { 121 .cra_name = "lz4", |
122 .cra_driver_name = "lz4-generic", |
|
109 .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, 110 .cra_ctxsize = sizeof(struct lz4_ctx), 111 .cra_module = THIS_MODULE, 112 .cra_init = lz4_init, 113 .cra_exit = lz4_exit, 114 .cra_u = { .compress = { 115 .coa_compress = lz4_compress_crypto, 116 .coa_decompress = lz4_decompress_crypto } } --- 43 unchanged lines hidden --- | 123 .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, 124 .cra_ctxsize = sizeof(struct lz4_ctx), 125 .cra_module = THIS_MODULE, 126 .cra_init = lz4_init, 127 .cra_exit = lz4_exit, 128 .cra_u = { .compress = { 129 .coa_compress = lz4_compress_crypto, 130 .coa_decompress = lz4_decompress_crypto } } --- 43 unchanged lines hidden --- |