Skip to content

Commit a94ba57

Browse files
author
evanvosberg
committed
Merge branch 'release/3.1.5'
2 parents 7ed8a08 + 6398d9c commit a94ba57

5 files changed

Lines changed: 14 additions & 17 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# crypto-js
22

3-
Modularized port of googlecode project crypto-js.
3+
JavaScript library of crypto standards.
44

55
## Node.js (Install)
66

@@ -85,6 +85,7 @@ require(["crypto-js"], function (CryptoJS) {
8585
var encrypted = CryptoJS.AES(...);
8686
var encrypted = CryptoJS.SHA256(...);
8787
</script>
88+
```
8889

8990
## API
9091

bower.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "crypto-js",
3-
"version": "3.1.4",
4-
"description": "Modularized port of googlecode project crypto-js.",
5-
"homepage": "http://github.com/evanvosberg/crypto-js",
3+
"version": "3.1.5",
4+
"description": "JavaScript library of crypto standards.",
5+
"license": "MIT",
6+
"homepage": "http://github.com/brix/crypto-js",
67
"repository": {
78
"type": "git",
8-
"url": "http://github.com/evanvosberg/crypto-js.git"
9+
"url": "http://github.com/brix/crypto-js.git"
910
},
1011
"keywords": [
1112
"security",

core.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,11 @@
225225
var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
226226
thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
227227
}
228-
} else if (thatWords.length > 0xffff) {
228+
} else {
229229
// Copy one word at a time
230230
for (var i = 0; i < thatSigBytes; i += 4) {
231231
thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];
232232
}
233-
} else {
234-
// Copy all words at once
235-
thisWords.push.apply(thisWords, thatWords);
236233
}
237234
this.sigBytes += thatSigBytes;
238235

crypto-js.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,11 @@
225225
var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
226226
thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
227227
}
228-
} else if (thatWords.length > 0xffff) {
228+
} else {
229229
// Copy one word at a time
230230
for (var i = 0; i < thatSigBytes; i += 4) {
231231
thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];
232232
}
233-
} else {
234-
// Copy all words at once
235-
thisWords.push.apply(thisWords, thatWords);
236233
}
237234
this.sigBytes += thatSigBytes;
238235

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "crypto-js",
3-
"version": "3.1.4",
4-
"description": "Modularized port of googlecode project crypto-js.",
3+
"version": "3.1.5",
4+
"description": "JavaScript library of crypto standards.",
5+
"license": "MIT",
56
"author": {
67
"name": "Evan Vosberg",
78
"url": "http://github.com/evanvosberg"
89
},
9-
"homepage": "http://github.com/evanvosberg/crypto-js",
10+
"homepage": "http://github.com/brix/crypto-js",
1011
"repository": {
1112
"type": "git",
12-
"url": "http://github.com/evanvosberg/crypto-js.git"
13+
"url": "http://github.com/brix/crypto-js.git"
1314
},
1415
"keywords": [
1516
"security",

0 commit comments

Comments
 (0)