It makes sense. Thanks for the clarification, Herbert. One more question: are you planning to convert the ctr template to skcipher? -- Regards, Marcelo On Thu, Feb 23, 2017 at 07:21:56PM +0800, Herbert Xu wrote: > Marcelo Cerri wrote: > > > > I noticed you used a similar approach in arch/s390/crypto/aes_s390.c > > (commit 64e2680). > > > > How do you ensure the skcipher operation will not be asynchronous? > > You need to set the bit CRYPTO_ALG_ASYNC in the mask field when > allocating the algorithm to ensure that it's synchronous. > > Cheers, > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt