mol_crypto_lib 0.1.1374 → 0.1.1375
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.d.ts +1 -1
- package/node.deps.json +1 -1
- package/node.js +4 -1
- package/node.js.map +1 -1
- package/node.mjs +4 -1
- package/node.test.js +4 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.deps.json +1 -1
- package/web.js +4 -1
- package/web.js.map +1 -1
- package/web.mjs +4 -1
package/node.mjs
CHANGED
@@ -2417,7 +2417,10 @@ var $;
|
|
2417
2417
|
var $;
|
2418
2418
|
(function ($) {
|
2419
2419
|
let sponge = new Uint32Array(80);
|
2420
|
-
function $mol_crypto_hash(
|
2420
|
+
function $mol_crypto_hash(input) {
|
2421
|
+
const data = input instanceof Uint8Array
|
2422
|
+
? input
|
2423
|
+
: new Uint8Array(input.buffer, input.byteOffset, input.byteLength);
|
2421
2424
|
const bits = data.byteLength << 3;
|
2422
2425
|
const kbits = bits >> 5;
|
2423
2426
|
const kword = 0x80 << (24 - bits & 0b11111);
|
package/node.test.js
CHANGED
@@ -2408,7 +2408,10 @@ var $;
|
|
2408
2408
|
var $;
|
2409
2409
|
(function ($) {
|
2410
2410
|
let sponge = new Uint32Array(80);
|
2411
|
-
function $mol_crypto_hash(
|
2411
|
+
function $mol_crypto_hash(input) {
|
2412
|
+
const data = input instanceof Uint8Array
|
2413
|
+
? input
|
2414
|
+
: new Uint8Array(input.buffer, input.byteOffset, input.byteLength);
|
2412
2415
|
const bits = data.byteLength << 3;
|
2413
2416
|
const kbits = bits >> 5;
|
2414
2417
|
const kword = 0x80 << (24 - bits & 0b11111);
|