@bitwarden/commercial-sdk-internal 0.2.0-main.401 → 0.2.0-main.403
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 +155 -71
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +15 -6
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +21 -6
- package/node/bitwarden_wasm_internal.js +155 -71
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +18 -9
- 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.
|
|
@@ -858,10 +858,22 @@ exports.isEncryptFileError = function (error) {
|
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
-
function
|
|
861
|
+
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
862
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(arg0, arg1, arg2) {
|
|
866
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(
|
|
867
|
+
arg0,
|
|
868
|
+
arg1,
|
|
869
|
+
addHeapObject(arg2),
|
|
870
|
+
);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
function wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8(arg0, arg1, arg2) {
|
|
862
874
|
try {
|
|
863
875
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
864
|
-
wasm.
|
|
876
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8(
|
|
865
877
|
retptr,
|
|
866
878
|
arg0,
|
|
867
879
|
arg1,
|
|
@@ -877,18 +889,6 @@ function wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(arg0, arg
|
|
|
877
889
|
}
|
|
878
890
|
}
|
|
879
891
|
|
|
880
|
-
function wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(arg0, arg1, arg2) {
|
|
881
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(
|
|
882
|
-
arg0,
|
|
883
|
-
arg1,
|
|
884
|
-
addHeapObject(arg2),
|
|
885
|
-
);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
889
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
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);
|
|
4198
|
+
const len1 = WASM_VECTOR_LEN;
|
|
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);
|
|
4142
4226
|
const len1 = WASM_VECTOR_LEN;
|
|
4143
|
-
wasm.
|
|
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_1cdb0d79866a6837 = 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_bf0beccb0458352a = function (arg0) {
|
|
4679
4763
|
const ret = getObject(arg0).folder;
|
|
4680
4764
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4681
4765
|
};
|
|
@@ -4702,7 +4786,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
|
|
|
4702
4786
|
return ret;
|
|
4703
4787
|
};
|
|
4704
4788
|
|
|
4705
|
-
exports.
|
|
4789
|
+
exports.__wbg_get_1b7efe6c2c00e86d = function () {
|
|
4706
4790
|
return handleError(function (arg0, arg1, arg2) {
|
|
4707
4791
|
let deferred0_0;
|
|
4708
4792
|
let deferred0_1;
|
|
@@ -4717,7 +4801,12 @@ exports.__wbg_get_10cebdc47b1c368b = function () {
|
|
|
4717
4801
|
}, arguments);
|
|
4718
4802
|
};
|
|
4719
4803
|
|
|
4720
|
-
exports.
|
|
4804
|
+
exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
|
|
4805
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4806
|
+
return addHeapObject(ret);
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
exports.__wbg_get_ab3c82eecdf4bc91 = function () {
|
|
4721
4810
|
return handleError(function (arg0, arg1, arg2) {
|
|
4722
4811
|
let deferred0_0;
|
|
4723
4812
|
let deferred0_1;
|
|
@@ -4732,12 +4821,7 @@ exports.__wbg_get_486f71d3e5c28990 = function () {
|
|
|
4732
4821
|
}, arguments);
|
|
4733
4822
|
};
|
|
4734
4823
|
|
|
4735
|
-
exports.
|
|
4736
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4737
|
-
return addHeapObject(ret);
|
|
4738
|
-
};
|
|
4739
|
-
|
|
4740
|
-
exports.__wbg_get_access_token_40bd5ef30e4d38c3 = function (arg0) {
|
|
4824
|
+
exports.__wbg_get_access_token_418fcb38cdc8413d = function (arg0) {
|
|
4741
4825
|
const ret = getObject(arg0).get_access_token();
|
|
4742
4826
|
return addHeapObject(ret);
|
|
4743
4827
|
};
|
|
@@ -4933,14 +5017,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
|
|
|
4933
5017
|
return ret;
|
|
4934
5018
|
};
|
|
4935
5019
|
|
|
4936
|
-
exports.
|
|
5020
|
+
exports.__wbg_list_056c98609a1fb3ef = function () {
|
|
4937
5021
|
return handleError(function (arg0) {
|
|
4938
5022
|
const ret = getObject(arg0).list();
|
|
4939
5023
|
return addHeapObject(ret);
|
|
4940
5024
|
}, arguments);
|
|
4941
5025
|
};
|
|
4942
5026
|
|
|
4943
|
-
exports.
|
|
5027
|
+
exports.__wbg_list_78accfdd0a91ad5f = function () {
|
|
4944
5028
|
return handleError(function (arg0) {
|
|
4945
5029
|
const ret = getObject(arg0).list();
|
|
4946
5030
|
return addHeapObject(ret);
|
|
@@ -5184,7 +5268,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
5184
5268
|
}, arguments);
|
|
5185
5269
|
};
|
|
5186
5270
|
|
|
5187
|
-
exports.
|
|
5271
|
+
exports.__wbg_remove_2d6d9bd3eaac392b = function () {
|
|
5188
5272
|
return handleError(function (arg0, arg1, arg2) {
|
|
5189
5273
|
let deferred0_0;
|
|
5190
5274
|
let deferred0_1;
|
|
@@ -5199,7 +5283,7 @@ exports.__wbg_remove_1e82e22a182f6e4c = function () {
|
|
|
5199
5283
|
}, arguments);
|
|
5200
5284
|
};
|
|
5201
5285
|
|
|
5202
|
-
exports.
|
|
5286
|
+
exports.__wbg_remove_7648970db543e157 = function () {
|
|
5203
5287
|
return handleError(function (arg0, arg1, arg2) {
|
|
5204
5288
|
let deferred0_0;
|
|
5205
5289
|
let deferred0_1;
|
|
@@ -5245,7 +5329,11 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
5245
5329
|
return addHeapObject(ret);
|
|
5246
5330
|
};
|
|
5247
5331
|
|
|
5248
|
-
exports.
|
|
5332
|
+
exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
5333
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5334
|
+
};
|
|
5335
|
+
|
|
5336
|
+
exports.__wbg_set_5235cc0f26ed539b = function () {
|
|
5249
5337
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5250
5338
|
let deferred0_0;
|
|
5251
5339
|
let deferred0_1;
|
|
@@ -5260,7 +5348,7 @@ exports.__wbg_set_2803286624ebb516 = function () {
|
|
|
5260
5348
|
}, arguments);
|
|
5261
5349
|
};
|
|
5262
5350
|
|
|
5263
|
-
exports.
|
|
5351
|
+
exports.__wbg_set_7f395f02ecd2904e = function () {
|
|
5264
5352
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5265
5353
|
let deferred0_0;
|
|
5266
5354
|
let deferred0_1;
|
|
@@ -5275,10 +5363,6 @@ exports.__wbg_set_30c6d49ef3e5915f = function () {
|
|
|
5275
5363
|
}, arguments);
|
|
5276
5364
|
};
|
|
5277
5365
|
|
|
5278
|
-
exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
5279
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5280
|
-
};
|
|
5281
|
-
|
|
5282
5366
|
exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
|
|
5283
5367
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5284
5368
|
return addHeapObject(ret);
|
|
@@ -5467,13 +5551,13 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
|
|
|
5467
5551
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5468
5552
|
};
|
|
5469
5553
|
|
|
5470
|
-
exports.
|
|
5471
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5554
|
+
exports.__wbindgen_cast_1e9dc1058b799ead = function (arg0, arg1) {
|
|
5555
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5472
5556
|
const ret = makeMutClosure(
|
|
5473
5557
|
arg0,
|
|
5474
5558
|
arg1,
|
|
5475
|
-
wasm.
|
|
5476
|
-
|
|
5559
|
+
wasm.wasm_bindgen__closure__destroy__h6cdc1ac3a8dcb5bd,
|
|
5560
|
+
wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
|
|
5477
5561
|
);
|
|
5478
5562
|
return addHeapObject(ret);
|
|
5479
5563
|
};
|
|
@@ -5484,17 +5568,6 @@ exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
|
|
|
5484
5568
|
return addHeapObject(ret);
|
|
5485
5569
|
};
|
|
5486
5570
|
|
|
5487
|
-
exports.__wbindgen_cast_4042b341512ce63a = function (arg0, arg1) {
|
|
5488
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5489
|
-
const ret = makeMutClosure(
|
|
5490
|
-
arg0,
|
|
5491
|
-
arg1,
|
|
5492
|
-
wasm.wasm_bindgen__closure__destroy__hd2baf0154e030ab9,
|
|
5493
|
-
wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb,
|
|
5494
|
-
);
|
|
5495
|
-
return addHeapObject(ret);
|
|
5496
|
-
};
|
|
5497
|
-
|
|
5498
5571
|
exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
|
|
5499
5572
|
// Cast intrinsic for `U64 -> Externref`.
|
|
5500
5573
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -5534,23 +5607,23 @@ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
|
|
|
5534
5607
|
return addHeapObject(ret);
|
|
5535
5608
|
};
|
|
5536
5609
|
|
|
5537
|
-
exports.
|
|
5538
|
-
// Cast intrinsic for `
|
|
5539
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
5540
|
-
return addHeapObject(ret);
|
|
5541
|
-
};
|
|
5542
|
-
|
|
5543
|
-
exports.__wbindgen_cast_d49c305f67640cb1 = function (arg0, arg1) {
|
|
5544
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("Event")], shim_idx: 42, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5610
|
+
exports.__wbindgen_cast_c5e8bf91c85dc4ef = function (arg0, arg1) {
|
|
5611
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5545
5612
|
const ret = makeMutClosure(
|
|
5546
5613
|
arg0,
|
|
5547
5614
|
arg1,
|
|
5548
|
-
wasm.
|
|
5549
|
-
|
|
5615
|
+
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5616
|
+
wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
|
|
5550
5617
|
);
|
|
5551
5618
|
return addHeapObject(ret);
|
|
5552
5619
|
};
|
|
5553
5620
|
|
|
5621
|
+
exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
|
|
5622
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
5623
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
5624
|
+
return addHeapObject(ret);
|
|
5625
|
+
};
|
|
5626
|
+
|
|
5554
5627
|
exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
|
5555
5628
|
// Cast intrinsic for `F64 -> Externref`.
|
|
5556
5629
|
const ret = arg0;
|
|
@@ -5568,6 +5641,17 @@ exports.__wbindgen_cast_d87bfd09ab1288e4 = function (arg0, arg1) {
|
|
|
5568
5641
|
return addHeapObject(ret);
|
|
5569
5642
|
};
|
|
5570
5643
|
|
|
5644
|
+
exports.__wbindgen_cast_daac1d8e48fc3ba0 = function (arg0, arg1) {
|
|
5645
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5646
|
+
const ret = makeMutClosure(
|
|
5647
|
+
arg0,
|
|
5648
|
+
arg1,
|
|
5649
|
+
wasm.wasm_bindgen__closure__destroy__h6cdc1ac3a8dcb5bd,
|
|
5650
|
+
wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8,
|
|
5651
|
+
);
|
|
5652
|
+
return addHeapObject(ret);
|
|
5653
|
+
};
|
|
5654
|
+
|
|
5571
5655
|
exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
|
|
5572
5656
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5573
5657
|
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,
|
|
@@ -442,24 +451,24 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
|
442
451
|
export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
443
452
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
444
453
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
445
|
-
export const
|
|
454
|
+
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
446
455
|
a: number,
|
|
447
456
|
b: number,
|
|
448
|
-
c: number,
|
|
449
|
-
d: number,
|
|
450
457
|
) => void;
|
|
451
|
-
export const
|
|
452
|
-
export const
|
|
458
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
459
|
+
export const wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5: (
|
|
453
460
|
a: number,
|
|
454
461
|
b: number,
|
|
455
462
|
c: number,
|
|
456
463
|
) => void;
|
|
457
|
-
export const
|
|
464
|
+
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
465
|
+
export const wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8: (
|
|
458
466
|
a: number,
|
|
459
467
|
b: number,
|
|
468
|
+
c: number,
|
|
469
|
+
d: number,
|
|
460
470
|
) => void;
|
|
461
|
-
export const
|
|
462
|
-
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
471
|
+
export const wasm_bindgen__closure__destroy__h6cdc1ac3a8dcb5bd: (a: number, b: number) => void;
|
|
463
472
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
464
473
|
a: number,
|
|
465
474
|
b: number,
|