id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking
5310,crypto: integrate RSA and jsbn BigInteger library,guest,Eugene Lazutkin,"This ticket tracks the progress of the integration of the jsbn large-integer !JavaScript math library. The !BigInteger portion consists of the following source files:
* http://xenon.stanford.edu/~tjw/jsbn/jsbn.js
* http://xenon.stanford.edu/~tjw/jsbn/jsbn2.js
This code was originally split into two pieces because the first part contained just enough code to perform RSA encryption with small exponents. The second part contains most of the operations one expects from a general-purpose large number math library.
Other source files that may be of interest:
* http://xenon.stanford.edu/~tjw/jsbn/rsa.js
RSA (encryption only), only requires ""jsbn.js"" for minimal download time. Supports pkcs1 padding. Uses ""!SecureRandom"" from ""rng.js"" to generate the random pad.
* http://xenon.stanford.edu/~tjw/jsbn/rsa2.js
RSA (remaining portions, including decryption and keygen). Also uses ""!SecureRandom"" from ""rng.js"" for randomness in keygen. No signing support, since that requires hashing, but it wouldn't be too hard to add if needed.
* http://xenon.stanford.edu/~tjw/jsbn/rng.js
Simple entropy collector and RNG frontend. Gathers a bunch of entropy from various sources like event timing and native sources (this needs some review and improvement), puts it in a pool, and seeds the RNG backend. Afterwards, it calls into the backend to get the actual random bytes. This way it is algorithm-independent - one can use ARC4 for small size or maybe SHA1-based if your application already needs it and you want to reuse algorithms.
* http://xenon.stanford.edu/~tjw/jsbn/prng4.js
A simple, small implementation of the ""ARC4"" algorithm to serve as a backend for ""rng.js"". Not sure if Dojo has this already in its crypto toolkit.
* http://xenon.stanford.edu/~tjw/jsbn/base64.js
Base64 implementation. I would guess Dojo already has one of these but I thought I'd mention it anyway for completeness.",task,closed,high,1.4,Dojox,0.9,fixed,,tjw99@…,,