Re: additional API for SHAKE streaming read

2024-03-14 Thread Niels Möller
Daiki Ueno writes: >> * One could perhaps use index == 0 instead of index == block_size for >> the case that there is no buffered data. But the current convention >> does make your "if (length <= left)" nice and simple. > > I agree that the current convention is a bit awkward, so in the

Re: additional API for SHAKE streaming read

2024-03-14 Thread Daiki Ueno
Niels Möller writes: > Daiki Ueno writes: > >> Yes, this makes the code a lot simpler. I'm attaching an updated patch. > > Thanks, looks good to me. Some details I'm thinking about that might be > improvements: > > * One could perhaps use index == 0 instead of index == block_size for > the