Skip to content

Commit

Permalink
5.0.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Apr 19, 2016
1 parent 419db22 commit 03719b5
Show file tree
Hide file tree
Showing 9 changed files with 312 additions and 7 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

ChangeLog for jsrsasign

* Changes between 5.0.8 to 5.0.9 (2016-Apr-19)
- ext/rng.js
- use window.crypto.getRandomValues for SecureRandom
if available. (ToDo also for Node.js)

* Changes between 5.0.7 to 5.0.8 (2016-Apr-14)
- LICENSE.txt small update for years of copyright.
- ext/x64-core*.js was missed and added
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kjur-jsrsasign",
"version": "5.0.8",
"version": "5.0.9",
"main": "jsrsasign-latest-all-min.js",
"description": "The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL CMS SignedData, TimeStamp, CAdES, JWS and JWT in pure JavaScript.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion ext/rng-min.js
100755 → 100644

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

7 changes: 7 additions & 0 deletions ext/rng.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ if(rng_pool == null) {
rng_pool = new Array();
rng_pptr = 0;
var t;
if(window.crypto && window.crypto.getRandomValues) {
// Use webcrypto if available
var ua = new Uint8Array(32);
window.crypto.getRandomValues(ua);
for(t = 0; t < 32; ++t)
rng_pool[rng_pptr++] = ua[t];
}
if(navigator.appName == "Netscape" && navigator.appVersion < "5" && window.crypto) {
// Extract entropy (256 bits) from NS4 RNG if available
var z = window.crypto.random(32);
Expand Down
4 changes: 2 additions & 2 deletions jsrsasign-latest-all-min.js

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

Loading

0 comments on commit 03719b5

Please sign in to comment.