lazy ByteStrings: toChunks

Dominic Steinitz dominic.steinitz at blueyonder.co.uk
Sat Jan 27 05:38:41 EST 2007


> On 24.01 11:58, Ross Paterson wrote:
> > Can you point at some examples?  I had a quick look, but couldn't find
> > any uses of toChunks not preceded by concat.  I would expect most of
> > those examples to operate on substrings that might span chunk boundaries.
>
> I am using toChunks for encryption and it is a very valuable tool.
> Basically the task is "process each chunk of this bytestring which
> might be >4gb in total".
>
> - Einar Karttunen

Einar,

I am re-writing some of the crypto library at the moment. Two questions:

1. Why not use lazy bytestrings for everything?

2. What encryption are you working on and could it supplement / replace code 
in the crypto library?

Dominic.



More information about the Libraries mailing list