Re: [af_alg v2] crypto:af_alg cast ki_complete ternary op to int

2019-10-10 Thread Herbert Xu
On Fri, Oct 04, 2019 at 10:50:58AM -0700, Ayush Sawal wrote: > when libkcapi test is executed using HW accelerator, cipher operation > return -74.Since af_alg_async_cb->ki_complete treat err as unsigned int, > libkcapi receive 429467222 even though it expect -ve value. > > Hence its required to c

[af_alg v2] crypto:af_alg cast ki_complete ternary op to int

2019-10-04 Thread Ayush Sawal
when libkcapi test is executed using HW accelerator, cipher operation return -74.Since af_alg_async_cb->ki_complete treat err as unsigned int, libkcapi receive 429467222 even though it expect -ve value. Hence its required to cast resultlen to int so that proper error is returned to libkcapi. AEA