On Mon, Jun 03, 2024 at 05:28:56PM +0900, Sergey Senozhatsky wrote: > > Herbert, I'm not sure I see how tfm sharing is working. > > crypto_tfm carries a pointer to __crt_ctx, which e.g. for zstd > is struct zstd_ctx, where it keeps all the state (zstd_cctx, zstd_dctx, > and compression/decompression workmem buffers). That's the legacy compression interface. You should be looking at the crypto_acomp interface which handles this properly. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt