Bundle official msrcrypto distro in the source (solves some bugs, probably safer)

zio/stable
Paul Frazee 2022-07-19 14:40:06 -05:00
parent 84dac9fa39
commit 6b32698b3e
3 changed files with 10145 additions and 2 deletions

View File

@ -26,7 +26,6 @@
"mobx": "^6.6.0", "mobx": "^6.6.0",
"mobx-react-lite": "^3.4.0", "mobx-react-lite": "^3.4.0",
"mobx-state-tree": "^5.1.5", "mobx-state-tree": "^5.1.5",
"msrcrypto": "^1.5.8",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2", "react-dom": "17.0.2",
"react-native": "0.68.2", "react-native": "0.68.2",

View File

@ -2,7 +2,7 @@ import {NativeModules} from 'react-native'
const {AppSecureRandomModule} = NativeModules const {AppSecureRandomModule} = NativeModules
import {toByteArray} from 'base64-js' import {toByteArray} from 'base64-js'
// @ts-ignore we dont have types for this -prf // @ts-ignore we dont have types for this -prf
import crypto from 'msrcrypto' import crypto from '../third-party/msrcrypto'
import '@zxing/text-encoding' // TextEncoder / TextDecoder import '@zxing/text-encoding' // TextEncoder / TextDecoder
async function generateSecureRandom(bytes: number) { async function generateSecureRandom(bytes: number) {

10144
src/third-party/msrcrypto.js vendored 100644

File diff suppressed because it is too large Load Diff