mol_crypto_lib 0.1.1079 → 0.1.1081
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 +4 -4
- package/node.js +6 -6
- package/node.js.map +1 -1
- package/node.mjs +6 -6
- package/node.test.js +6 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +4 -4
- package/web.js +6 -6
- package/web.js.map +1 -1
- package/web.mjs +6 -6
package/node.mjs
CHANGED
@@ -1787,19 +1787,19 @@ var $;
|
|
1787
1787
|
return new this(secret);
|
1788
1788
|
}
|
1789
1789
|
async serial() {
|
1790
|
-
return await $mol_crypto_native.subtle.exportKey('raw', this.native);
|
1790
|
+
return new Uint8Array(await $mol_crypto_native.subtle.exportKey('raw', this.native));
|
1791
1791
|
}
|
1792
1792
|
async encrypt(open, salt) {
|
1793
|
-
return await $mol_crypto_native.subtle.encrypt({
|
1793
|
+
return new Uint8Array(await $mol_crypto_native.subtle.encrypt({
|
1794
1794
|
...algorithm,
|
1795
1795
|
iv: salt,
|
1796
|
-
}, this.native, open);
|
1796
|
+
}, this.native, open));
|
1797
1797
|
}
|
1798
1798
|
async decrypt(closed, salt) {
|
1799
|
-
return await $mol_crypto_native.subtle.decrypt({
|
1799
|
+
return new Uint8Array(await $mol_crypto_native.subtle.decrypt({
|
1800
1800
|
...algorithm,
|
1801
1801
|
iv: salt,
|
1802
|
-
}, this.native, closed);
|
1802
|
+
}, this.native, closed));
|
1803
1803
|
}
|
1804
1804
|
}
|
1805
1805
|
$.$mol_crypto_secret = $mol_crypto_secret;
|
@@ -2195,7 +2195,7 @@ var $;
|
|
2195
2195
|
return new $mol_crypto_key_public(this.buffer, this.byteOffset, this.byteOffset + 64);
|
2196
2196
|
}
|
2197
2197
|
async sign(data) {
|
2198
|
-
return await $mol_crypto_native.subtle.sign(algorithm, await this.native(), data);
|
2198
|
+
return new Uint8Array(await $mol_crypto_native.subtle.sign(algorithm, await this.native(), data));
|
2199
2199
|
}
|
2200
2200
|
}
|
2201
2201
|
__decorate([
|
package/node.test.js
CHANGED
@@ -1778,19 +1778,19 @@ var $;
|
|
1778
1778
|
return new this(secret);
|
1779
1779
|
}
|
1780
1780
|
async serial() {
|
1781
|
-
return await $mol_crypto_native.subtle.exportKey('raw', this.native);
|
1781
|
+
return new Uint8Array(await $mol_crypto_native.subtle.exportKey('raw', this.native));
|
1782
1782
|
}
|
1783
1783
|
async encrypt(open, salt) {
|
1784
|
-
return await $mol_crypto_native.subtle.encrypt({
|
1784
|
+
return new Uint8Array(await $mol_crypto_native.subtle.encrypt({
|
1785
1785
|
...algorithm,
|
1786
1786
|
iv: salt,
|
1787
|
-
}, this.native, open);
|
1787
|
+
}, this.native, open));
|
1788
1788
|
}
|
1789
1789
|
async decrypt(closed, salt) {
|
1790
|
-
return await $mol_crypto_native.subtle.decrypt({
|
1790
|
+
return new Uint8Array(await $mol_crypto_native.subtle.decrypt({
|
1791
1791
|
...algorithm,
|
1792
1792
|
iv: salt,
|
1793
|
-
}, this.native, closed);
|
1793
|
+
}, this.native, closed));
|
1794
1794
|
}
|
1795
1795
|
}
|
1796
1796
|
$.$mol_crypto_secret = $mol_crypto_secret;
|
@@ -2186,7 +2186,7 @@ var $;
|
|
2186
2186
|
return new $mol_crypto_key_public(this.buffer, this.byteOffset, this.byteOffset + 64);
|
2187
2187
|
}
|
2188
2188
|
async sign(data) {
|
2189
|
-
return await $mol_crypto_native.subtle.sign(algorithm, await this.native(), data);
|
2189
|
+
return new Uint8Array(await $mol_crypto_native.subtle.sign(algorithm, await this.native(), data));
|
2190
2190
|
}
|
2191
2191
|
}
|
2192
2192
|
__decorate([
|