RE: [PATCH v9 4/5] crypto: cmh - add AES skcipher/aead/cmac

From: Ousherovitch, Alex

Date: Fri Nov 27 2026 - 16:45:39 EST


On Fri, Nov 27, 2026 at 12:29:50PM +0800, Herbert Xu wrote:
> Please don't use embedded fallback requests. Put them on the stack
> instead with HASH_FBREQ_ON_STACK.

Will do in v10. cmac(aes) is NO_FALLBACK and allocates its own
fallback, so it will use HASH_REQUEST_ON_STACK on that tfm, as will
cmac(sm4) and xcbc(sm4) in a later series; the hashes and HMAC there
will use HASH_FBREQ_ON_STACK.

The ccm(aes) fallback request will stay in the request context, as the
generic ccm template's reqsize can exceed MAX_SYNC_AEAD_REQSIZE.

Thanks,
Alex