@bitwarden/commercial-sdk-internal 0.2.0-main.402 → 0.2.0-main.404
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/bitwarden_wasm_internal.d.ts +21 -6
- package/bitwarden_wasm_internal_bg.js +173 -83
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +18 -9
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +21 -6
- package/node/bitwarden_wasm_internal.js +169 -79
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +15 -6
- package/package.json +1 -1
|
@@ -115,6 +115,12 @@ export enum LoginLinkedIdType {
|
|
|
115
115
|
Username = 100,
|
|
116
116
|
Password = 101,
|
|
117
117
|
}
|
|
118
|
+
export enum RsaError {
|
|
119
|
+
Decryption = 0,
|
|
120
|
+
Encryption = 1,
|
|
121
|
+
KeyParse = 2,
|
|
122
|
+
KeySerialize = 3,
|
|
123
|
+
}
|
|
118
124
|
export enum SecureNoteType {
|
|
119
125
|
Generic = 0,
|
|
120
126
|
}
|
|
@@ -2445,13 +2451,22 @@ export class PureCrypto {
|
|
|
2445
2451
|
master_key: Uint8Array,
|
|
2446
2452
|
): Uint8Array;
|
|
2447
2453
|
/**
|
|
2448
|
-
* Given
|
|
2449
|
-
* the corresponding public RSA key in DER format.
|
|
2454
|
+
* Given a decrypted private RSA key PKCS8 DER this
|
|
2455
|
+
* returns the corresponding public RSA key in DER format.
|
|
2450
2456
|
*/
|
|
2451
|
-
static rsa_extract_public_key(
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2457
|
+
static rsa_extract_public_key(private_key: Uint8Array): Uint8Array;
|
|
2458
|
+
/**
|
|
2459
|
+
* Generates a new RSA key pair and returns the private key
|
|
2460
|
+
*/
|
|
2461
|
+
static rsa_generate_keypair(): Uint8Array;
|
|
2462
|
+
/**
|
|
2463
|
+
* Decrypts data using RSAES-OAEP with SHA-1
|
|
2464
|
+
*/
|
|
2465
|
+
static rsa_decrypt_data(encrypted_data: Uint8Array, private_key: Uint8Array): Uint8Array;
|
|
2466
|
+
/**
|
|
2467
|
+
* Encrypts data using RSAES-OAEP with SHA-1
|
|
2468
|
+
*/
|
|
2469
|
+
static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
|
|
2455
2470
|
}
|
|
2456
2471
|
/**
|
|
2457
2472
|
* The `SendAccessClient` is used to interact with the Bitwarden API to get send access tokens.
|
|
@@ -862,10 +862,18 @@ function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg
|
|
|
862
862
|
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
863
863
|
}
|
|
864
864
|
|
|
865
|
-
function
|
|
865
|
+
function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
|
|
866
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
|
|
867
|
+
arg0,
|
|
868
|
+
arg1,
|
|
869
|
+
addHeapObject(arg2),
|
|
870
|
+
);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
function wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(arg0, arg1, arg2) {
|
|
866
874
|
try {
|
|
867
875
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
868
|
-
wasm.
|
|
876
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(
|
|
869
877
|
retptr,
|
|
870
878
|
arg0,
|
|
871
879
|
arg1,
|
|
@@ -881,14 +889,6 @@ function wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(arg0, arg
|
|
|
881
889
|
}
|
|
882
890
|
}
|
|
883
891
|
|
|
884
|
-
function wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(arg0, arg1, arg2) {
|
|
885
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(
|
|
886
|
-
arg0,
|
|
887
|
-
arg1,
|
|
888
|
-
addHeapObject(arg2),
|
|
889
|
-
);
|
|
890
|
-
}
|
|
891
|
-
|
|
892
892
|
function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
|
|
893
893
|
wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
|
|
894
894
|
arg0,
|
|
@@ -1032,6 +1032,19 @@ exports.LoginLinkedIdType = Object.freeze({
|
|
|
1032
1032
|
Password: 101,
|
|
1033
1033
|
101: "Password",
|
|
1034
1034
|
});
|
|
1035
|
+
/**
|
|
1036
|
+
* @enum {0 | 1 | 2 | 3}
|
|
1037
|
+
*/
|
|
1038
|
+
exports.RsaError = Object.freeze({
|
|
1039
|
+
Decryption: 0,
|
|
1040
|
+
0: "Decryption",
|
|
1041
|
+
Encryption: 1,
|
|
1042
|
+
1: "Encryption",
|
|
1043
|
+
KeyParse: 2,
|
|
1044
|
+
2: "KeyParse",
|
|
1045
|
+
KeySerialize: 3,
|
|
1046
|
+
3: "KeySerialize",
|
|
1047
|
+
});
|
|
1035
1048
|
/**
|
|
1036
1049
|
* @enum {0}
|
|
1037
1050
|
*/
|
|
@@ -4123,24 +4136,95 @@ class PureCrypto {
|
|
|
4123
4136
|
}
|
|
4124
4137
|
}
|
|
4125
4138
|
/**
|
|
4126
|
-
* Given
|
|
4127
|
-
* the corresponding public RSA key in DER format.
|
|
4128
|
-
* @param {
|
|
4129
|
-
* @param {Uint8Array} wrapping_key
|
|
4139
|
+
* Given a decrypted private RSA key PKCS8 DER this
|
|
4140
|
+
* returns the corresponding public RSA key in DER format.
|
|
4141
|
+
* @param {Uint8Array} private_key
|
|
4130
4142
|
* @returns {Uint8Array}
|
|
4131
4143
|
*/
|
|
4132
|
-
static rsa_extract_public_key(
|
|
4144
|
+
static rsa_extract_public_key(private_key) {
|
|
4133
4145
|
try {
|
|
4134
4146
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4135
|
-
const ptr0 =
|
|
4136
|
-
encrypted_private_key,
|
|
4137
|
-
wasm.__wbindgen_malloc,
|
|
4138
|
-
wasm.__wbindgen_realloc,
|
|
4139
|
-
);
|
|
4147
|
+
const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
|
|
4140
4148
|
const len0 = WASM_VECTOR_LEN;
|
|
4141
|
-
|
|
4149
|
+
wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0);
|
|
4150
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4151
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4152
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4153
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4154
|
+
if (r3) {
|
|
4155
|
+
throw takeObject(r2);
|
|
4156
|
+
}
|
|
4157
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4158
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4159
|
+
return v2;
|
|
4160
|
+
} finally {
|
|
4161
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
/**
|
|
4165
|
+
* Generates a new RSA key pair and returns the private key
|
|
4166
|
+
* @returns {Uint8Array}
|
|
4167
|
+
*/
|
|
4168
|
+
static rsa_generate_keypair() {
|
|
4169
|
+
try {
|
|
4170
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4171
|
+
wasm.purecrypto_rsa_generate_keypair(retptr);
|
|
4172
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4173
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4174
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4175
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4176
|
+
if (r3) {
|
|
4177
|
+
throw takeObject(r2);
|
|
4178
|
+
}
|
|
4179
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4180
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4181
|
+
return v1;
|
|
4182
|
+
} finally {
|
|
4183
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
/**
|
|
4187
|
+
* Decrypts data using RSAES-OAEP with SHA-1
|
|
4188
|
+
* @param {Uint8Array} encrypted_data
|
|
4189
|
+
* @param {Uint8Array} private_key
|
|
4190
|
+
* @returns {Uint8Array}
|
|
4191
|
+
*/
|
|
4192
|
+
static rsa_decrypt_data(encrypted_data, private_key) {
|
|
4193
|
+
try {
|
|
4194
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4195
|
+
const ptr0 = passArray8ToWasm0(encrypted_data, wasm.__wbindgen_malloc);
|
|
4196
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4197
|
+
const ptr1 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
|
|
4142
4198
|
const len1 = WASM_VECTOR_LEN;
|
|
4143
|
-
wasm.
|
|
4199
|
+
wasm.purecrypto_rsa_decrypt_data(retptr, ptr0, len0, ptr1, len1);
|
|
4200
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4201
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4202
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4203
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4204
|
+
if (r3) {
|
|
4205
|
+
throw takeObject(r2);
|
|
4206
|
+
}
|
|
4207
|
+
var v3 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4208
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4209
|
+
return v3;
|
|
4210
|
+
} finally {
|
|
4211
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4212
|
+
}
|
|
4213
|
+
}
|
|
4214
|
+
/**
|
|
4215
|
+
* Encrypts data using RSAES-OAEP with SHA-1
|
|
4216
|
+
* @param {Uint8Array} plain_data
|
|
4217
|
+
* @param {Uint8Array} public_key
|
|
4218
|
+
* @returns {Uint8Array}
|
|
4219
|
+
*/
|
|
4220
|
+
static rsa_encrypt_data(plain_data, public_key) {
|
|
4221
|
+
try {
|
|
4222
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4223
|
+
const ptr0 = passArray8ToWasm0(plain_data, wasm.__wbindgen_malloc);
|
|
4224
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4225
|
+
const ptr1 = passArray8ToWasm0(public_key, wasm.__wbindgen_malloc);
|
|
4226
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4227
|
+
wasm.purecrypto_rsa_encrypt_data(retptr, ptr0, len0, ptr1, len1);
|
|
4144
4228
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4145
4229
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4146
4230
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4582,7 +4666,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
|
|
|
4582
4666
|
}, arguments);
|
|
4583
4667
|
};
|
|
4584
4668
|
|
|
4585
|
-
exports.
|
|
4669
|
+
exports.__wbg_cipher_a69755738b4a95e4 = function (arg0) {
|
|
4586
4670
|
const ret = getObject(arg0).cipher;
|
|
4587
4671
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4588
4672
|
};
|
|
@@ -4675,7 +4759,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
|
|
|
4675
4759
|
return addHeapObject(ret);
|
|
4676
4760
|
};
|
|
4677
4761
|
|
|
4678
|
-
exports.
|
|
4762
|
+
exports.__wbg_folder_6ddccfa2359908cd = function (arg0) {
|
|
4679
4763
|
const ret = getObject(arg0).folder;
|
|
4680
4764
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4681
4765
|
};
|
|
@@ -4691,6 +4775,12 @@ exports.__wbg_getRandomValues_38097e921c2494c3 = function () {
|
|
|
4691
4775
|
}, arguments);
|
|
4692
4776
|
};
|
|
4693
4777
|
|
|
4778
|
+
exports.__wbg_getRandomValues_3c9c0d586e575a16 = function () {
|
|
4779
|
+
return handleError(function (arg0, arg1) {
|
|
4780
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4781
|
+
}, arguments);
|
|
4782
|
+
};
|
|
4783
|
+
|
|
4694
4784
|
exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function () {
|
|
4695
4785
|
return handleError(function (arg0, arg1) {
|
|
4696
4786
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
@@ -4702,7 +4792,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
|
|
|
4702
4792
|
return ret;
|
|
4703
4793
|
};
|
|
4704
4794
|
|
|
4705
|
-
exports.
|
|
4795
|
+
exports.__wbg_get_63fc1a87cfa05664 = function () {
|
|
4706
4796
|
return handleError(function (arg0, arg1, arg2) {
|
|
4707
4797
|
let deferred0_0;
|
|
4708
4798
|
let deferred0_1;
|
|
@@ -4717,7 +4807,12 @@ exports.__wbg_get_4c60beeeb1154fc2 = function () {
|
|
|
4717
4807
|
}, arguments);
|
|
4718
4808
|
};
|
|
4719
4809
|
|
|
4720
|
-
exports.
|
|
4810
|
+
exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
|
|
4811
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4812
|
+
return addHeapObject(ret);
|
|
4813
|
+
};
|
|
4814
|
+
|
|
4815
|
+
exports.__wbg_get_7f59e4189b579885 = function () {
|
|
4721
4816
|
return handleError(function (arg0, arg1, arg2) {
|
|
4722
4817
|
let deferred0_0;
|
|
4723
4818
|
let deferred0_1;
|
|
@@ -4732,12 +4827,7 @@ exports.__wbg_get_756969d3b9917d61 = function () {
|
|
|
4732
4827
|
}, arguments);
|
|
4733
4828
|
};
|
|
4734
4829
|
|
|
4735
|
-
exports.
|
|
4736
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4737
|
-
return addHeapObject(ret);
|
|
4738
|
-
};
|
|
4739
|
-
|
|
4740
|
-
exports.__wbg_get_access_token_7db381e38e606e59 = function (arg0) {
|
|
4830
|
+
exports.__wbg_get_access_token_5d1676f62fd8cd77 = function (arg0) {
|
|
4741
4831
|
const ret = getObject(arg0).get_access_token();
|
|
4742
4832
|
return addHeapObject(ret);
|
|
4743
4833
|
};
|
|
@@ -4933,14 +5023,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
|
|
|
4933
5023
|
return ret;
|
|
4934
5024
|
};
|
|
4935
5025
|
|
|
4936
|
-
exports.
|
|
5026
|
+
exports.__wbg_list_2aa62e3f6d399917 = function () {
|
|
4937
5027
|
return handleError(function (arg0) {
|
|
4938
5028
|
const ret = getObject(arg0).list();
|
|
4939
5029
|
return addHeapObject(ret);
|
|
4940
5030
|
}, arguments);
|
|
4941
5031
|
};
|
|
4942
5032
|
|
|
4943
|
-
exports.
|
|
5033
|
+
exports.__wbg_list_3b311a5af885ff76 = function () {
|
|
4944
5034
|
return handleError(function (arg0) {
|
|
4945
5035
|
const ret = getObject(arg0).list();
|
|
4946
5036
|
return addHeapObject(ret);
|
|
@@ -5184,7 +5274,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
5184
5274
|
}, arguments);
|
|
5185
5275
|
};
|
|
5186
5276
|
|
|
5187
|
-
exports.
|
|
5277
|
+
exports.__wbg_remove_47756c4838416808 = function () {
|
|
5188
5278
|
return handleError(function (arg0, arg1, arg2) {
|
|
5189
5279
|
let deferred0_0;
|
|
5190
5280
|
let deferred0_1;
|
|
@@ -5199,7 +5289,7 @@ exports.__wbg_remove_2008f1dde7b91f51 = function () {
|
|
|
5199
5289
|
}, arguments);
|
|
5200
5290
|
};
|
|
5201
5291
|
|
|
5202
|
-
exports.
|
|
5292
|
+
exports.__wbg_remove_e8858f2fbc02dbd1 = function () {
|
|
5203
5293
|
return handleError(function (arg0, arg1, arg2) {
|
|
5204
5294
|
let deferred0_0;
|
|
5205
5295
|
let deferred0_1;
|
|
@@ -5245,11 +5335,7 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
5245
5335
|
return addHeapObject(ret);
|
|
5246
5336
|
};
|
|
5247
5337
|
|
|
5248
|
-
exports.
|
|
5249
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5250
|
-
};
|
|
5251
|
-
|
|
5252
|
-
exports.__wbg_set_512ce00f6a1a36e7 = function () {
|
|
5338
|
+
exports.__wbg_set_268d54f279c675e3 = function () {
|
|
5253
5339
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5254
5340
|
let deferred0_0;
|
|
5255
5341
|
let deferred0_1;
|
|
@@ -5264,12 +5350,11 @@ exports.__wbg_set_512ce00f6a1a36e7 = function () {
|
|
|
5264
5350
|
}, arguments);
|
|
5265
5351
|
};
|
|
5266
5352
|
|
|
5267
|
-
exports.
|
|
5268
|
-
|
|
5269
|
-
return addHeapObject(ret);
|
|
5353
|
+
exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
5354
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5270
5355
|
};
|
|
5271
5356
|
|
|
5272
|
-
exports.
|
|
5357
|
+
exports.__wbg_set_6e08863f9db5b0dc = function () {
|
|
5273
5358
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5274
5359
|
let deferred0_0;
|
|
5275
5360
|
let deferred0_1;
|
|
@@ -5284,6 +5369,11 @@ exports.__wbg_set_b17bc1811a1e440e = function () {
|
|
|
5284
5369
|
}, arguments);
|
|
5285
5370
|
};
|
|
5286
5371
|
|
|
5372
|
+
exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
|
|
5373
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5374
|
+
return addHeapObject(ret);
|
|
5375
|
+
};
|
|
5376
|
+
|
|
5287
5377
|
exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
|
|
5288
5378
|
getObject(arg0).body = getObject(arg1);
|
|
5289
5379
|
};
|
|
@@ -5467,17 +5557,6 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
|
|
|
5467
5557
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5468
5558
|
};
|
|
5469
5559
|
|
|
5470
|
-
exports.__wbindgen_cast_1dc3b0d4f0abedd3 = function (arg0, arg1) {
|
|
5471
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5472
|
-
const ret = makeMutClosure(
|
|
5473
|
-
arg0,
|
|
5474
|
-
arg1,
|
|
5475
|
-
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5476
|
-
wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb,
|
|
5477
|
-
);
|
|
5478
|
-
return addHeapObject(ret);
|
|
5479
|
-
};
|
|
5480
|
-
|
|
5481
5560
|
exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
|
|
5482
5561
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5483
5562
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -5489,8 +5568,8 @@ exports.__wbindgen_cast_4042b341512ce63a = function (arg0, arg1) {
|
|
|
5489
5568
|
const ret = makeMutClosure(
|
|
5490
5569
|
arg0,
|
|
5491
5570
|
arg1,
|
|
5492
|
-
wasm.
|
|
5493
|
-
|
|
5571
|
+
wasm.wasm_bindgen__closure__destroy__hba496874d56e8206,
|
|
5572
|
+
wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff,
|
|
5494
5573
|
);
|
|
5495
5574
|
return addHeapObject(ret);
|
|
5496
5575
|
};
|
|
@@ -5501,6 +5580,17 @@ exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
|
|
|
5501
5580
|
return addHeapObject(ret);
|
|
5502
5581
|
};
|
|
5503
5582
|
|
|
5583
|
+
exports.__wbindgen_cast_567ce6425eb96825 = function (arg0, arg1) {
|
|
5584
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 551, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5585
|
+
const ret = makeMutClosure(
|
|
5586
|
+
arg0,
|
|
5587
|
+
arg1,
|
|
5588
|
+
wasm.wasm_bindgen__closure__destroy__hfcb631b72e5e985c,
|
|
5589
|
+
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5590
|
+
);
|
|
5591
|
+
return addHeapObject(ret);
|
|
5592
|
+
};
|
|
5593
|
+
|
|
5504
5594
|
exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
|
|
5505
5595
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5506
5596
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5509,22 +5599,33 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
|
|
|
5509
5599
|
return addHeapObject(ret);
|
|
5510
5600
|
};
|
|
5511
5601
|
|
|
5512
|
-
exports.
|
|
5513
|
-
|
|
5602
|
+
exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
|
|
5603
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5604
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
5605
|
+
// Cast intrinsic for `Vector(NamedExternref("Cipher")) -> Externref`.
|
|
5606
|
+
const ret = v0;
|
|
5607
|
+
return addHeapObject(ret);
|
|
5608
|
+
};
|
|
5609
|
+
|
|
5610
|
+
exports.__wbindgen_cast_8340b5b160d85933 = function (arg0, arg1) {
|
|
5611
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5514
5612
|
const ret = makeMutClosure(
|
|
5515
5613
|
arg0,
|
|
5516
5614
|
arg1,
|
|
5517
|
-
wasm.
|
|
5615
|
+
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5518
5616
|
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5519
5617
|
);
|
|
5520
5618
|
return addHeapObject(ret);
|
|
5521
5619
|
};
|
|
5522
5620
|
|
|
5523
|
-
exports.
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5621
|
+
exports.__wbindgen_cast_9654b59eb60e619d = function (arg0, arg1) {
|
|
5622
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5623
|
+
const ret = makeMutClosure(
|
|
5624
|
+
arg0,
|
|
5625
|
+
arg1,
|
|
5626
|
+
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5627
|
+
wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff,
|
|
5628
|
+
);
|
|
5528
5629
|
return addHeapObject(ret);
|
|
5529
5630
|
};
|
|
5530
5631
|
|
|
@@ -5545,8 +5646,8 @@ exports.__wbindgen_cast_d49c305f67640cb1 = function (arg0, arg1) {
|
|
|
5545
5646
|
const ret = makeMutClosure(
|
|
5546
5647
|
arg0,
|
|
5547
5648
|
arg1,
|
|
5548
|
-
wasm.
|
|
5549
|
-
|
|
5649
|
+
wasm.wasm_bindgen__closure__destroy__hba496874d56e8206,
|
|
5650
|
+
wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe,
|
|
5550
5651
|
);
|
|
5551
5652
|
return addHeapObject(ret);
|
|
5552
5653
|
};
|
|
@@ -5557,17 +5658,6 @@ exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
|
|
5557
5658
|
return addHeapObject(ret);
|
|
5558
5659
|
};
|
|
5559
5660
|
|
|
5560
|
-
exports.__wbindgen_cast_d87bfd09ab1288e4 = function (arg0, arg1) {
|
|
5561
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5562
|
-
const ret = makeMutClosure(
|
|
5563
|
-
arg0,
|
|
5564
|
-
arg1,
|
|
5565
|
-
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5566
|
-
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5567
|
-
);
|
|
5568
|
-
return addHeapObject(ret);
|
|
5569
|
-
};
|
|
5570
|
-
|
|
5571
5661
|
exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
|
|
5572
5662
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5573
5663
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
Binary file
|
|
@@ -178,7 +178,16 @@ export const purecrypto_decrypt_user_key_with_master_key: (
|
|
|
178
178
|
d: number,
|
|
179
179
|
e: number,
|
|
180
180
|
) => void;
|
|
181
|
-
export const purecrypto_rsa_extract_public_key: (
|
|
181
|
+
export const purecrypto_rsa_extract_public_key: (a: number, b: number, c: number) => void;
|
|
182
|
+
export const purecrypto_rsa_generate_keypair: (a: number) => void;
|
|
183
|
+
export const purecrypto_rsa_decrypt_data: (
|
|
184
|
+
a: number,
|
|
185
|
+
b: number,
|
|
186
|
+
c: number,
|
|
187
|
+
d: number,
|
|
188
|
+
e: number,
|
|
189
|
+
) => void;
|
|
190
|
+
export const purecrypto_rsa_encrypt_data: (
|
|
182
191
|
a: number,
|
|
183
192
|
b: number,
|
|
184
193
|
c: number,
|
|
@@ -447,18 +456,18 @@ export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
|
447
456
|
b: number,
|
|
448
457
|
) => void;
|
|
449
458
|
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
450
|
-
export const
|
|
451
|
-
export const wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06: (
|
|
459
|
+
export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
|
|
452
460
|
a: number,
|
|
453
461
|
b: number,
|
|
454
462
|
c: number,
|
|
455
|
-
d: number,
|
|
456
463
|
) => void;
|
|
457
|
-
export const
|
|
458
|
-
export const
|
|
464
|
+
export const wasm_bindgen__closure__destroy__hba496874d56e8206: (a: number, b: number) => void;
|
|
465
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
466
|
+
export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
|
|
459
467
|
a: number,
|
|
460
468
|
b: number,
|
|
461
469
|
c: number,
|
|
470
|
+
d: number,
|
|
462
471
|
) => void;
|
|
463
472
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
464
473
|
a: number,
|