On Fri, 29 May 2020 at 15:19, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote: > > On Fri, May 29, 2020 at 03:10:43PM +0200, Ard Biesheuvel wrote: > > > > OK, so the undocumented assumption is that algif_skcipher requests are > > delineated by ALG_SET_IV commands, and that anything that gets sent to > > the socket in between should be treated as a single request, right? I > > Correct. > So what about the final request? At which point do you decide to return the final chunk of data that you have been holding back in order to ensure that you can perform the final processing correctly if it is not being followed by a ALG_SET_IV command?