From 44e59856309080ae8696f8af6b96cad365d4ee05 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Thu, 2 Jul 2020 17:35:40 +0200 Subject: [PATCH] change to universal hashes --- crypto_hash.js | 2 +- crypto_hash_sha256.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.')