mol_crypto_lib 0.1.1596 → 0.1.1598
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.js +1 -1
- package/node.js.map +1 -1
- package/node.mjs +1 -1
- package/node.test.js +1 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
package/node.js
CHANGED
@@ -2458,7 +2458,7 @@ var $;
|
|
2458
2458
|
const trimed = await this.decrypt(closed, salt);
|
2459
2459
|
if (trimed.byteLength !== closed.byteLength - 1)
|
2460
2460
|
throw new Error('Length of opened buffer should be ' + (closed.byteLength - 1));
|
2461
|
-
const opened = new Uint8Array(
|
2461
|
+
const opened = new Uint8Array(closed.byteLength);
|
2462
2462
|
opened[0] = 0xFF;
|
2463
2463
|
opened.set(trimed, 1);
|
2464
2464
|
return opened;
|