Hello Fabio,

Clipperz's implementation does not use typed array, as they are too
new and too little supported for our target.

But Clipperz is wrapping all the binary data manipulation into an
abstract BinaryArray class [1]. This abstract class had a few
different implementations, one using untyped arrays, another using
regular strings and a third one using hex strings. The hex string
implementation performed very badly, and also the string one was not
working great, so at the moment only the array based implementation is
left.

But it would be trivial to add another implementation based on typed
arrays; and it would also be possible to have both implementations
available, and selecting the right one based on the browser where the
code is going to be executed.

I may try to give typed array a spin within Clipperz library and see
what it comes out.

Cheers,

Giulio Cesare

[1]: 
https://github.com/clipperz/javascript-crypto-library/blob/master/js/Clipperz/ByteArray.js



On Sat, Feb 18, 2012 at 6:23 PM, Fabio Pietrosanti (naif)
<[email protected]> wrote:
> Venom told me about the typed array to manipulate efficiently (on
> latests browsers) raw binary data:
>
> http://caniuse.com/#search=typed%20array
>
> Does OpenPGPJS or clipperz or pgpbox use such techniques?
>
> -naif
> _______________________________________________
>
> http://openpgpjs.org
_______________________________________________

http://openpgpjs.org

Reply via email to