Comparing version 0.2.23 to 0.2.24
{ | ||
"name": "node-rsa", | ||
"version": "0.2.23", | ||
"version": "0.2.24", | ||
"description": "Node.js RSA library", | ||
@@ -5,0 +5,0 @@ "main": "src/NodeRSA.js", |
@@ -30,3 +30,3 @@ # Node-RSA | ||
``` | ||
*Requires nodejs >= 0.10.x or io.js >= 1.x* | ||
> <sub>Requires nodejs >= 0.10.x or io.js >= 1.x</sub> | ||
@@ -213,2 +213,5 @@ ### Testing | ||
### 0.2.24 | ||
* Now used old hash APIs for webpack compatible. | ||
### 0.2.22 | ||
@@ -215,0 +218,0 @@ * `encryptPrivate` and `decryptPublic` now using only pkcs1 (type 1) padding. |
@@ -51,6 +51,6 @@ /** | ||
var hash = crypt.createHash(hashFunction); | ||
hash.write(seed); | ||
hash.update(seed); | ||
c.writeUInt32BE(i, 0); | ||
hash.end(c); | ||
hash.read().copy(T, i * hLen); | ||
hash.update(c); | ||
hash.digest().copy(T, i * hLen); | ||
} | ||
@@ -181,2 +181,2 @@ return T.slice(0, maskLength); | ||
return new Scheme(key, options); | ||
}; | ||
}; |
@@ -171,4 +171,4 @@ /** | ||
var mHash = crypt.createHash(hash); | ||
mHash.end(M); | ||
mHash = mHash.read(); | ||
mHash.update(M); | ||
mHash = mHash.digest(); | ||
@@ -181,4 +181,4 @@ var Mapostrophe = new Buffer(8 + hLen + sLen); | ||
var Hapostrophe = crypt.createHash(hash); | ||
Hapostrophe.end(Mapostrophe); | ||
Hapostrophe = Hapostrophe.read(); | ||
Hapostrophe.update(Mapostrophe); | ||
Hapostrophe = Hapostrophe.digest(); | ||
@@ -185,0 +185,0 @@ return H.toString("hex") === Hapostrophe.toString("hex"); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168348
3732
300