1 | ;(function (root, factory, undef) {
|
2 | if (typeof exports === "object") {
|
3 |
|
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
|
5 | }
|
6 | else if (typeof define === "function" && define.amd) {
|
7 |
|
8 | define(["./core", "./cipher-core"], factory);
|
9 | }
|
10 | else {
|
11 |
|
12 | factory(root.CryptoJS);
|
13 | }
|
14 | }(this, function (CryptoJS) {
|
15 |
|
16 | |
17 |
|
18 |
|
19 | CryptoJS.mode.ECB = (function () {
|
20 | var ECB = CryptoJS.lib.BlockCipherMode.extend();
|
21 |
|
22 | ECB.Encryptor = ECB.extend({
|
23 | processBlock: function (words, offset) {
|
24 | this._cipher.encryptBlock(words, offset);
|
25 | }
|
26 | });
|
27 |
|
28 | ECB.Decryptor = ECB.extend({
|
29 | processBlock: function (words, offset) {
|
30 | this._cipher.decryptBlock(words, offset);
|
31 | }
|
32 | });
|
33 |
|
34 | return ECB;
|
35 | }());
|
36 |
|
37 |
|
38 | return CryptoJS.mode.ECB;
|
39 |
|
40 | })); |
\ | No newline at end of file |