On Thu, Jul 02, 2020 at 09:40:42AM +0200, Ard Biesheuvel wrote: > > I suppose you are looking into this for chaining algif_skipcher > requests, right? So in that case, the ARC4 state should really be > treated as an IV, which is owned by the caller, and not stored in > either the TFM or the skcipher request object. Yes I have considered this approach previously but it's just too messy. What I'm trying to do now is to allow the state to be stored in the request object. When combined with the proposed REQ_MORE flag, this should be sufficient. It evens works on XTS. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt