Sha256: f7f7179b8bea5b6ef4f0891f23b563db8aa530376795cd99ef84942cfc62d328

Contents?: true

Size: 918 Bytes

Versions: 35

Compression:

Stored size: 918 Bytes

Contents

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

	/**
	 * ISO/IEC 9797-1 Padding Method 2.
	 */
	CryptoJS.pad.Iso97971 = {
	    pad: function (data, blockSize) {
	        // Add 0x80 byte
	        data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));

	        // Zero pad the rest
	        CryptoJS.pad.ZeroPadding.pad(data, blockSize);
	    },

	    unpad: function (data) {
	        // Remove zero padding
	        CryptoJS.pad.ZeroPadding.unpad(data);

	        // Remove one more byte -- the 0x80 byte
	        data.sigBytes--;
	    }
	};


	return CryptoJS.pad.Iso97971;

}));

Version data entries

35 entries across 35 versions & 4 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/crypto-js/pad-iso97971.js
rapid_stack-0.1.1 templates/FrontEnd/node_modules/crypto-js/pad-iso97971.js
rapid_stack-0.1.0 templates/FrontEnd/node_modules/crypto-js/pad-iso97971.js
appmap-0.72.2 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.72.1 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.72.0 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.71.0 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.70.2 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.70.1 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.70.0 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.69.0 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.68.2 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.68.1 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.68.0 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.67.1 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.67.0 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.66.2 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.66.1 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.66.0 ./node_modules/crypto-js/pad-iso97971.js
appmap-0.65.1 ./node_modules/crypto-js/pad-iso97971.js