This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* AES implementation in JavaScript (c) Chris Veness 2005-2012 */ | |
/* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */ | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
var Aes = {}; // Aes namespace | |
/** | |
* AES Cipher function: encrypt 'input' state with Rijndael algorithm | |
* applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage | |
* | |
* @param {Number[]} input 16-byte (128-bit) input state array |