Sha256: 542ddc722d9711595c11d57caa9424beca928b3553747a51e3f1c57c2c08ec16

Contents?: true

Size: 1.87 KB

Versions: 32

Compression:

Stored size: 1.87 KB

Contents

;(function (root, factory, undef) {
	if (typeof exports === "object") {
		// CommonJS
		module.exports = exports = factory(require("./core"), require("./sha256"));
	}
	else if (typeof define === "function" && define.amd) {
		// AMD
		define(["./core", "./sha256"], factory);
	}
	else {
		// Global (browser)
		factory(root.CryptoJS);
	}
}(this, function (CryptoJS) {

	(function () {
	    // Shortcuts
	    var C = CryptoJS;
	    var C_lib = C.lib;
	    var WordArray = C_lib.WordArray;
	    var C_algo = C.algo;
	    var SHA256 = C_algo.SHA256;

	    /**
	     * SHA-224 hash algorithm.
	     */
	    var SHA224 = C_algo.SHA224 = SHA256.extend({
	        _doReset: function () {
	            this._hash = new WordArray.init([
	                0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
	                0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
	            ]);
	        },

	        _doFinalize: function () {
	            var hash = SHA256._doFinalize.call(this);

	            hash.sigBytes -= 4;

	            return hash;
	        }
	    });

	    /**
	     * Shortcut function to the hasher's object interface.
	     *
	     * @param {WordArray|string} message The message to hash.
	     *
	     * @return {WordArray} The hash.
	     *
	     * @static
	     *
	     * @example
	     *
	     *     var hash = CryptoJS.SHA224('message');
	     *     var hash = CryptoJS.SHA224(wordArray);
	     */
	    C.SHA224 = SHA256._createHelper(SHA224);

	    /**
	     * Shortcut function to the HMAC's object interface.
	     *
	     * @param {WordArray|string} message The message to hash.
	     * @param {WordArray|string} key The secret key.
	     *
	     * @return {WordArray} The HMAC.
	     *
	     * @static
	     *
	     * @example
	     *
	     *     var hmac = CryptoJS.HmacSHA224(message, key);
	     */
	    C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
	}());


	return CryptoJS.SHA224;

}));

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
appmap-0.72.2 ./node_modules/crypto-js/sha224.js
appmap-0.72.1 ./node_modules/crypto-js/sha224.js
appmap-0.72.0 ./node_modules/crypto-js/sha224.js
appmap-0.71.0 ./node_modules/crypto-js/sha224.js
appmap-0.70.2 ./node_modules/crypto-js/sha224.js
appmap-0.70.1 ./node_modules/crypto-js/sha224.js
appmap-0.70.0 ./node_modules/crypto-js/sha224.js
appmap-0.69.0 ./node_modules/crypto-js/sha224.js
appmap-0.68.2 ./node_modules/crypto-js/sha224.js
appmap-0.68.1 ./node_modules/crypto-js/sha224.js
appmap-0.68.0 ./node_modules/crypto-js/sha224.js
appmap-0.67.1 ./node_modules/crypto-js/sha224.js
appmap-0.67.0 ./node_modules/crypto-js/sha224.js
appmap-0.66.2 ./node_modules/crypto-js/sha224.js
appmap-0.66.1 ./node_modules/crypto-js/sha224.js
appmap-0.66.0 ./node_modules/crypto-js/sha224.js
appmap-0.65.1 ./node_modules/crypto-js/sha224.js
appmap-0.65.0 ./node_modules/crypto-js/sha224.js
appmap-0.64.0 ./node_modules/crypto-js/sha224.js
appmap-0.63.0 ./node_modules/crypto-js/sha224.js