Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Import 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebremer committed Jul 7, 2022
1 parent 3fecefa commit 75c63d1
Show file tree
Hide file tree
Showing 90 changed files with 268 additions and 162 deletions.
2 changes: 1 addition & 1 deletion build/components/aes-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/components/aes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/cipher-core-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/components/cipher-core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/core-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/components/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/enc-base64-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/enc-base64.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/enc-utf16-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/enc-utf16.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/evpkdf-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/evpkdf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/format-hex-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/format-hex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/hmac-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/hmac.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
6 changes: 3 additions & 3 deletions build/components/lib-typedarrays-min.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
(function(){if("function"==typeof ArrayBuffer){var b=CryptoJS.lib.WordArray,$superInit=b.init;b.init=function(a){a instanceof ArrayBuffer&&(a=new DataView(a));if(a instanceof Int8Array||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int16Array||a instanceof Uint16Array||a instanceof Int32Array||a instanceof Uint32Array||a instanceof Float32Array||a instanceof Float64Array)a=new DataView(a.buffer);if(a instanceof DataView){for(var b=a.byteLength,d=[],c=0;c<b;c++)d[c>>>2]|=a.getUint8(c)<<
24-8*(c%4);$superInit.call(this,d,b)}else $superInit.apply(this,arguments)};b.init.prototype=b}})();
(function(){if("function"==typeof ArrayBuffer){var b=CryptoJS.lib.WordArray,e=b.init;(b.init=function(a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));if(a instanceof Int8Array||a instanceof Uint8ClampedArray||a instanceof Int16Array||a instanceof Uint16Array||a instanceof Int32Array||a instanceof Uint32Array||a instanceof Float32Array||a instanceof Float64Array)a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);if(a instanceof Uint8Array){for(var b=a.byteLength,d=[],c=0;c<b;c++)d[c>>>2]|=a[c]<<
24-8*(c%4);e.call(this,d,b)}else e.apply(this,arguments)}).prototype=b}})();
30 changes: 16 additions & 14 deletions build/components/lib-typedarrays.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand All @@ -16,19 +16,18 @@ code.google.com/p/crypto-js/wiki/License
var WordArray = C_lib.WordArray;

// Reference original init
var $superInit = WordArray.init;
var superInit = WordArray.init;

// Augment WordArray.init to handle typed arrays
WordArray.init = function (typedArray) {
// Convert buffers to data view
var subInit = WordArray.init = function (typedArray) {
// Convert buffers to uint8
if (typedArray instanceof ArrayBuffer) {
typedArray = new DataView(typedArray);
typedArray = new Uint8Array(typedArray);
}

// Convert array views to data view
// Convert other array views to uint8
if (
typedArray instanceof Int8Array ||
typedArray instanceof Uint8Array ||
typedArray instanceof Uint8ClampedArray ||
typedArray instanceof Int16Array ||
typedArray instanceof Uint16Array ||
Expand All @@ -37,24 +36,27 @@ code.google.com/p/crypto-js/wiki/License
typedArray instanceof Float32Array ||
typedArray instanceof Float64Array
) {
typedArray = new DataView(typedArray.buffer);
typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
}

// Handle data views
if (typedArray instanceof DataView) {
// Handle Uint8Array
if (typedArray instanceof Uint8Array) {
// Shortcut
var typedArrayByteLength = typedArray.byteLength;

// Extract bytes
var words = [];
for (var i = 0; i < typedArrayByteLength; i++) {
words[i >>> 2] |= typedArray.getUint8(i) << (24 - (i % 4) * 8);
words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);
}

$superInit.call(this, words, typedArrayByteLength);
// Initialize this word array
superInit.call(this, words, typedArrayByteLength);
} else {
// Else call normal init
$superInit.apply(this, arguments);
superInit.apply(this, arguments);
}
};

WordArray.init.prototype = WordArray;
subInit.prototype = WordArray;
}());
2 changes: 1 addition & 1 deletion build/components/md5-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/components/md5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-cfb-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-cfb.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-ctr-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-ctr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-ecb-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-ecb.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-ofb-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/mode-ofb.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-ansix923-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-ansix923.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-iso10126-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-iso10126.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-iso97971-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-iso97971.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-nopadding-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-nopadding.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-zeropadding-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pad-zeropadding.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pbkdf2-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/pbkdf2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/rabbit-legacy-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/components/rabbit-legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/rabbit-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/components/rabbit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/rc4-min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/rc4.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
CryptoJS v3.1
CryptoJS v3.1.1
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
Expand Down
2 changes: 1 addition & 1 deletion build/components/ripemd160-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 75c63d1

Please sign in to comment.