]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blobdiff - prebuilt/iot-gateway/node_modules/aws-iot-device-sdk/node_modules/crypto-js/pad-iso10126.js
Updated Sensor To Cloud design to have an easy to use setup GUI on the
[apps/tidep0084.git] / prebuilt / iot-gateway / node_modules / aws-iot-device-sdk / node_modules / crypto-js / pad-iso10126.js
diff --git a/prebuilt/iot-gateway/node_modules/aws-iot-device-sdk/node_modules/crypto-js/pad-iso10126.js b/prebuilt/iot-gateway/node_modules/aws-iot-device-sdk/node_modules/crypto-js/pad-iso10126.js
deleted file mode 100644 (file)
index 6e2aefd..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;(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 10126 padding strategy.
-        */
-       CryptoJS.pad.Iso10126 = {
-           pad: function (data, blockSize) {
-               // Shortcut
-               var blockSizeBytes = blockSize * 4;
-
-               // Count padding bytes
-               var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
-
-               // Pad
-               data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).
-                    concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
-           },
-
-           unpad: function (data) {
-               // Get number of padding bytes from last byte
-               var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
-
-               // Remove padding
-               data.sigBytes -= nPaddingBytes;
-           }
-       };
-
-
-       return CryptoJS.pad.Iso10126;
-
-}));
\ No newline at end of file