Home | History | Annotate | Download | only in sunspider-0.9

Lines Matching refs:nBits

158  * Use AES to encrypt 'plaintext' with 'password' using 'nBits' key, in 'Counter' mode of operation
164 function AESEncryptCtr(plaintext, password, nBits) {
165 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
169 var nBytes = nBits/8; // no bytes in key
224 * Use AES to decrypt 'ciphertext' with 'password' using 'nBits' key, in Counter mode of operation
230 function AESDecryptCtr(ciphertext, password, nBits) {
231 if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
233 var nBytes = nBits/8; // no bytes in key