1d14bbfffSSteve French /* SPDX-License-Identifier: GPL-2.0-only */ 2d14bbfffSSteve French /* 3d14bbfffSSteve French * Copyright (C) 2024, SUSE LLC 4d14bbfffSSteve French * 5d14bbfffSSteve French * Authors: Enzo Matsumiya <ematsumiya@suse.de> 6d14bbfffSSteve French * 7*94ae8c3fSEnzo Matsumiya * Implementation of the LZ77 "plain" compression algorithm, as per MS-XCA spec. 8d14bbfffSSteve French */ 9d14bbfffSSteve French #ifndef _SMB_COMPRESS_LZ77_H 10d14bbfffSSteve French #define _SMB_COMPRESS_LZ77_H 11d14bbfffSSteve French 12d14bbfffSSteve French #include <linux/kernel.h> 13d14bbfffSSteve French 14*94ae8c3fSEnzo Matsumiya int lz77_compress(const void *src, u32 slen, void *dst, u32 *dlen); 15d14bbfffSSteve French #endif /* _SMB_COMPRESS_LZ77_H */ 16