code: function aesDecrypt(msg, key, iv) {
      var logger = getLogger('security.cipher.aesDecrypt');
      var encryptedMsg = buffer2WordArray(msg);
      var keyWordArray = buffer2WordArray(key);
      var ivWordArray = buffer2WordArray(iv);
      if (logger.isDebugEnabled()) {
          logger.debug('encryptedMsg = %s\nkeyWordArray = %s\nivWordArray = %s',
              JSON.stringify(encryptedMsg), JSON.stringify(keyWordArray), JSON.stringify(ivWordArray));
      }
      var decryptedWordArray = CryptoJS.AES.decrypt({ciphertext: encryptedMsg}, keyWordArray, {
          iv: ivWordArray,
          padding: CryptoJS.pad.NoPadding,
          mode: CryptoJS.mode.IGE
      });
      if (logger.isDebugEnabled()) {
          logger.debug('decryptedWordArray = %s', JSON.stringify(decryptedWordArray));
      }
      return wordArray2Buffer(decryptedWordArray);
  }
docs: AES decrypt function