diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-04-12 18:57:19 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-04-16 15:36:24 +0800 |
| commit | 04bfa4c7d5119ca38f8133bfdae7957a60c8b221 (patch) | |
| tree | 70c6700d83b01fdd8f40f017cc5d7f126d88ef8c /tools/lib/python/kdoc/python_version.py | |
| parent | 90916934fd093edf62bc0c5c9a940a8efa7db2f8 (diff) | |
crypto: hash - Add HASH_REQUEST_ON_STACK
Allow any ahash to be used with a stack request, with optional
dynamic allocation when async is needed. The intended usage is:
HASH_REQUEST_ON_STACK(req, tfm);
...
err = crypto_ahash_digest(req);
/* The request cannot complete synchronously. */
if (err == -EAGAIN) {
/* This will not fail. */
req = HASH_REQUEST_CLONE(req, gfp);
/* Redo operation. */
err = crypto_ahash_digest(req);
}
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
