[Haskell-cafe] Crypto-api performance

Jesper Louis Andersen jesper.louis.andersen at gmail.com
Tue May 10 11:14:40 CEST 2011


On Tue, May 10, 2011 at 09:47, Johan Brinch <brinchj at gmail.com> wrote:

> Stuff like xor'ing two bytestrings or generating a block of
> incremental IV's (for CTR mode)?

I don't particularly like the notion of XOR on a bytestring. The
bytestring is not a number and it does not make much sense to bitwise
xor such a string. I'd rather have a type specifically tailored for
doing crypto-style computations and then use it. Such that the
underlying implementation can be repa, bytestring,
supermegavectorizationistic, or something completely different.

-- 
J.



More information about the Haskell-Cafe mailing list