The following code example enciphers the plaintext block '00 11 22 .. EE FF' with the 256 bit key '00 01 02 .. 1E 1F'.
AES_Init(); var block = new Array(16); for(var i = 0; i < 16; i++) block[i] = 0x11 * i; var key = new Array(32); for(var i = 0; i < 32; i++) key[i] = i; AES_ExpandKey(key); AES_Encrypt(block, key); AES_Done();
jsaes is free software, written in 2006 by B. Poettering. The code is licensed under the GNU GPL. The well-functioning of the encryption/decryption routines has been verified for different key lengths with the test vectors given in FIPS-197, Appendix C.
The code is well documented and the API trivial. Therefore there are no further docs at the moment.
New versions are announced via the freshmeat page.