Re: [PATCH v9 3/3] crypto: Add Inside Secure SafeXcel EIP-93 crypto engine support

Herbert Xu
2025-01-04T23:28:17Z

On Sat, Jan 04, 2025 at 05:26:28PM +0100, Christian Marangi wrote:
>
> I'm a bit confused by this... I can't find any reference of
> CRYPTO_ALG_SYNC, is this something new? Any hint on where to look for
> it? Can't find it in include/linux/crypto.h
>
> Following the codeflow of crypto_alloc_ahash is a bit problematic.

Sorry, I meant CRYPTO_ALG_ASYNC:

ahash_tfm = crypto_alloc_ahash(alg_name, 0, CRYPTO_ALG_ASYNC);

This should give you a synchronous tfm.

Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt