On Mon, Jul 28, 2025 at 11:24:25PM +0200, Mikulas Patocka wrote: > > I'd like to ask the maintainers of crypto-api - Herbert or David - what if > I pass vmalloc-allocated memory (or possibly stack memory) as "result" to > ahash_request_set_crypt(req, sg, result, nbytes);? Is it legal or not?
It's perfectly legal to pass a stack-allocated or vmallc pointer for the result field in ahash. Only SG lists require DMA memory. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt