Skip to content

Commit

Permalink
Merge branch 'release/3.1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
evanvosberg committed May 28, 2015
2 parents 7ed8a08 + 6398d9c commit a94ba57
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# crypto-js

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

## Node.js (Install)

Expand Down Expand Up @@ -85,6 +85,7 @@ require(["crypto-js"], function (CryptoJS) {
var encrypted = CryptoJS.AES(...);
var encrypted = CryptoJS.SHA256(...);
</script>
```

## API

Expand Down
9 changes: 5 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "crypto-js",
"version": "3.1.4",
"description": "Modularized port of googlecode project crypto-js.",
"homepage": "http://github.com/evanvosberg/crypto-js",
"version": "3.1.5",
"description": "JavaScript library of crypto standards.",
"license": "MIT",
"homepage": "http://github.com/brix/crypto-js",
"repository": {
"type": "git",
"url": "http://github.com/evanvosberg/crypto-js.git"
"url": "http://github.com/brix/crypto-js.git"
},
"keywords": [
"security",
Expand Down
5 changes: 1 addition & 4 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,11 @@
var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
}
} else if (thatWords.length > 0xffff) {
} else {
// Copy one word at a time
for (var i = 0; i < thatSigBytes; i += 4) {
thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];
}
} else {
// Copy all words at once
thisWords.push.apply(thisWords, thatWords);
}
this.sigBytes += thatSigBytes;

Expand Down
5 changes: 1 addition & 4 deletions crypto-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,11 @@
var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
}
} else if (thatWords.length > 0xffff) {
} else {
// Copy one word at a time
for (var i = 0; i < thatSigBytes; i += 4) {
thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];
}
} else {
// Copy all words at once
thisWords.push.apply(thisWords, thatWords);
}
this.sigBytes += thatSigBytes;

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "crypto-js",
"version": "3.1.4",
"description": "Modularized port of googlecode project crypto-js.",
"version": "3.1.5",
"description": "JavaScript library of crypto standards.",
"license": "MIT",
"author": {
"name": "Evan Vosberg",
"url": "http://github.com/evanvosberg"
},
"homepage": "http://github.com/evanvosberg/crypto-js",
"homepage": "http://github.com/brix/crypto-js",
"repository": {
"type": "git",
"url": "http://github.com/evanvosberg/crypto-js.git"
"url": "http://github.com/brix/crypto-js.git"
},
"keywords": [
"security",
Expand Down

0 comments on commit a94ba57

Please sign in to comment.