mirror of
https://github.com/torvalds/linux.git
synced 2026-08-08 16:37:47 +02:00
Add a new helper ACOMP_REQUEST_CLONE that will transform a stack
request into a dynamically allocated one if possible, and otherwise
switch it over to the sycnrhonous fallback transform. The intended
usage is:
ACOMP_STACK_ON_REQUEST(req, tfm);
...
err = crypto_acomp_compress(req);
/* The request cannot complete synchronously. */
if (err == -EAGAIN) {
/* This will not fail. */
req = ACOMP_REQUEST_CLONE(req, gfp);
/* Redo operation. */
err = crypto_acomp_compress(req);
}
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|
||
|---|---|---|
| .. | ||
| acompress.h | ||
| aead.h | ||
| akcipher.h | ||
| blake2b.h | ||
| blake2s.h | ||
| cipher.h | ||
| des.h | ||
| ecc.h | ||
| engine.h | ||
| geniv.h | ||
| hash.h | ||
| kdf_selftest.h | ||
| kpp.h | ||
| poly1305.h | ||
| rng.h | ||
| rsa.h | ||
| scompress.h | ||
| sig.h | ||
| simd.h | ||
| skcipher.h | ||