mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	Rather than allocating the stream memory in the request object, move it into a per-cpu buffer managed by scomp. This takes the stress off the user from having to manage large request objects and setting up their own per-cpu buffers in order to do so. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0-or-later */
 | 
						|
/*
 | 
						|
 * Cryptographic API.
 | 
						|
 *
 | 
						|
 * Copyright 2015 LG Electronics Inc.
 | 
						|
 * Copyright (c) 2016, Intel Corporation
 | 
						|
 * Copyright (c) 2023 Herbert Xu <herbert@gondor.apana.org.au>
 | 
						|
 */
 | 
						|
#ifndef _LOCAL_CRYPTO_COMPRESS_H
 | 
						|
#define _LOCAL_CRYPTO_COMPRESS_H
 | 
						|
 | 
						|
#include "internal.h"
 | 
						|
 | 
						|
struct acomp_req;
 | 
						|
struct comp_alg_common;
 | 
						|
 | 
						|
int crypto_init_scomp_ops_async(struct crypto_tfm *tfm);
 | 
						|
 | 
						|
void comp_prepare_alg(struct comp_alg_common *alg);
 | 
						|
 | 
						|
#endif	/* _LOCAL_CRYPTO_COMPRESS_H */
 |