diff --git a/crypto_hash.js b/crypto_hash.js index 344324d..84e596f 100644 --- a/crypto_hash.js +++ b/crypto_hash.js @@ -1,5 +1,5 @@ /* eslint-disable camelcase */ -const sha512 = require('sha512-wasm') +const sha512 = require('sha512-universal') const assert = require('nanoassert') if (new Uint16Array([1])[0] !== 1) throw new Error('Big endian architecture is not supported.') diff --git a/crypto_hash_sha256.js b/crypto_hash_sha256.js index e4c916f..f6fb9a8 100644 --- a/crypto_hash_sha256.js +++ b/crypto_hash_sha256.js @@ -1,5 +1,5 @@ /* eslint-disable camelcase */ -const sha256 = require('sha256-wasm') +const sha256 = require('sha256-universal') const assert = require('nanoassert') if (new Uint16Array([1])[0] !== 1) throw new Error('Big endian architecture is not supported.')