src/crypto/aes-browser.js
function AESCipher(key, iv, bits, mode) {
  if (!(this instanceof AESCipher))
    return new AESCipher(key, iv, mode);

  assert(mode === 'ecb' || mode === 'cbc', 'Unknown mode.');

  this.key = new AESKey(key, bits);
  this.mode = mode;
  this.prev = iv;
  this.waiting = null;
}
function AESCipher(key, iv, bits, mode) {
  if (!(this instanceof AESCipher))
    return new AESCipher(key, iv, mode);

  assert(mode === 'ecb' || mode === 'cbc', 'Unknown mode.');

  this.key = new AESKey(key, bits);
  this.mode = mode;
  this.prev = iv;
  this.waiting = null;
}
function AESCipher ( key , iv , bits , mode ) { if ( ! ( this instanceof AESCipher ) ) return new AESCipher ( key , iv , mode ) ; assert ( mode === 'ecb' || mode === 'cbc' , 'Unknown mode.' ) ; this . key = new AESKey ( key , bits ) ; this . mode = mode ; this . prev = iv ; this . waiting = null ; }
AES cipher.
@constructor
@ignore
@param {Buffer} key
@param {Buffer} iv
@param {Number} bits
@param {String} mode
AES cipher .