vendor/cryptojs-v3.0.2/components/cipher-core.js
function (xformMode, key, cfg) {
            // Apply config defaults
            this.cfg = this.cfg.extend(cfg);

            // Store transform mode and key
            this._xformMode = xformMode;
            this._key = key;

            // Set initial values
            this.reset();
        }
function (xformMode, key, cfg) {
            // Apply config defaults
            this.cfg = this.cfg.extend(cfg);

            // Store transform mode and key
            this._xformMode = xformMode;
            this._key = key;

            // Set initial values
            this.reset();
        }
function ( xformMode , key , cfg ) { // Apply config defaults
 this . cfg = this . cfg . extend ( cfg ) ; // Store transform mode and key
 this . _xformMode = xformMode ; this . _key = key ; // Set initial values
 this . reset ( ) ; }
Initializes a newly created cipher.

@param {number} xformMode Either the encryption or decryption transormation mode constant.
@param {WordArray} key The key.
@param {Object} cfg (Optional) The configuration options to use for this operation.

@example

var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
Initializes a newly created cipher .