the idea of using TypedBuffers instead of Buffers is that Buffer is not a native implementation but a Node one that would require to be included in the codebase requireing a large scurity audit on it.
for what relates using a TypedArray (Uint8/Uint16/Uint32) of the size of the block this should for real be evaluated. In the streaming patch i'm already preallocating a buffer of the size of the encrypted file (there is a formula to know that) and i'm then using two preallocated Uint8 buffers internally to do the encryption given the fact that PGP require a pointer to the previous block; this way this 2 buffers are allocated only once not requiring allocations/dealocations at each encryptBlock _______________________________________________ http://openpgpjs.org Subscribe/unsubscribe: http://list.openpgpjs.org

