-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm][crypto] RandomNumberGenerator mapped to Web Crypto getRandomValues #42728
[wasm][crypto] RandomNumberGenerator mapped to Web Crypto getRandomValues #42728
Commits on Sep 25, 2020
-
[wasm][crypto] RandomNumberGenerator mapped to Web Crypto getRandomVa…
…lues - Uses Web Crypto API [`getRandomValues`](https://www.w3.org/TR/WebCryptoAPI/#Crypto-method-getRandomValues) if available. - Falls back to `/dev/urandom` as default if the crypto library is missing.
Configuration menu - View commit details
-
Copy full SHA for f0a662c - Browse repository at this point
Copy the full SHA f0a662cView commit details
Commits on Sep 28, 2020
-
Configuration menu - View commit details
-
Copy full SHA for eb46e2f - Browse repository at this point
Copy the full SHA eb46e2fView commit details -
Merge branch 'master' of https://github.com/dotnet/runtime into wasm-…
…crypto-getRandomValues
Configuration menu - View commit details
-
Copy full SHA for ce149c9 - Browse repository at this point
Copy the full SHA ce149c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 878cfcf - Browse repository at this point
Copy the full SHA 878cfcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 289efef - Browse repository at this point
Copy the full SHA 289efefView commit details -
Configuration menu - View commit details
-
Copy full SHA for b5d372b - Browse repository at this point
Copy the full SHA b5d372bView commit details
Commits on Sep 29, 2020
-
Merge branch 'master' of https://github.com/dotnet/runtime into wasm-…
…crypto-getRandomValues
Configuration menu - View commit details
-
Copy full SHA for f657f4f - Browse repository at this point
Copy the full SHA f657f4fView commit details -
Add javascript bridge implementation library to Native source tree.
- Javascript checks for crypto interface and uses `crypto.getRandomValues` - Add api bridge call when building for emscripten browser. - separate out into browser subdirectory - If we couldn't find a proper implementation, as Math.random() is not suitable we will abort. ``` ABORT: no cryptographic support found getRandomValues. Consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } }; ```
Configuration menu - View commit details
-
Copy full SHA for cf74a12 - Browse repository at this point
Copy the full SHA cf74a12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88fa846 - Browse repository at this point
Copy the full SHA 88fa846View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b8987d - Browse repository at this point
Copy the full SHA 2b8987dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 61f1c19 - Browse repository at this point
Copy the full SHA 61f1c19View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce13ad1 - Browse repository at this point
Copy the full SHA ce13ad1View commit details
Commits on Sep 30, 2020
-
Merge branch 'master' of https://github.com/dotnet/runtime into wasm-…
…crypto-getRandomValues
Configuration menu - View commit details
-
Copy full SHA for 4eb6639 - Browse repository at this point
Copy the full SHA 4eb6639View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e593bb - Browse repository at this point
Copy the full SHA 5e593bbView commit details
Commits on Oct 1, 2020
-
Update src/mono/wasm/runtime-test.js
Co-authored-by: Ryan Lucia <ryan@luciaonline.net>
Configuration menu - View commit details
-
Copy full SHA for 76de399 - Browse repository at this point
Copy the full SHA 76de399View commit details -
Merge branch 'master' of https://github.com/dotnet/runtime into wasm-…
…crypto-getRandomValues
Configuration menu - View commit details
-
Copy full SHA for 75a81ce - Browse repository at this point
Copy the full SHA 75a81ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8077f7c - Browse repository at this point
Copy the full SHA 8077f7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec16f1a - Browse repository at this point
Copy the full SHA ec16f1aView commit details -
Return -1 if crypto does not exist instead of aborting from js. This …
…allows the managed code exception flow to continue as normal.
Configuration menu - View commit details
-
Copy full SHA for 7b7e9d2 - Browse repository at this point
Copy the full SHA 7b7e9d2View commit details