@bitwarden/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/VERSION +1 -1
- 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 +13 -4
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +21 -6
- package/node/bitwarden_wasm_internal.js +179 -89
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +17 -8
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
59f40d406211ea591c2ef0e27aed2360f3f47d12
|
|
@@ -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
|
}
|
|
@@ -2424,13 +2430,22 @@ export class PureCrypto {
|
|
|
2424
2430
|
master_key: Uint8Array,
|
|
2425
2431
|
): Uint8Array;
|
|
2426
2432
|
/**
|
|
2427
|
-
* Given
|
|
2428
|
-
* the corresponding public RSA key in DER format.
|
|
2433
|
+
* Given a decrypted private RSA key PKCS8 DER this
|
|
2434
|
+
* returns the corresponding public RSA key in DER format.
|
|
2429
2435
|
*/
|
|
2430
|
-
static rsa_extract_public_key(
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2436
|
+
static rsa_extract_public_key(private_key: Uint8Array): Uint8Array;
|
|
2437
|
+
/**
|
|
2438
|
+
* Generates a new RSA key pair and returns the private key
|
|
2439
|
+
*/
|
|
2440
|
+
static rsa_generate_keypair(): Uint8Array;
|
|
2441
|
+
/**
|
|
2442
|
+
* Decrypts data using RSAES-OAEP with SHA-1
|
|
2443
|
+
*/
|
|
2444
|
+
static rsa_decrypt_data(encrypted_data: Uint8Array, private_key: Uint8Array): Uint8Array;
|
|
2445
|
+
/**
|
|
2446
|
+
* Encrypts data using RSAES-OAEP with SHA-1
|
|
2447
|
+
*/
|
|
2448
|
+
static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
|
|
2434
2449
|
}
|
|
2435
2450
|
/**
|
|
2436
2451
|
* The `SendAccessClient` is used to interact with the Bitwarden API to get send access tokens.
|
|
@@ -868,10 +868,10 @@ export function isEncryptFileError(error) {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
function
|
|
871
|
+
function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg1, arg2) {
|
|
872
872
|
try {
|
|
873
873
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
874
|
-
wasm.
|
|
874
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(
|
|
875
875
|
retptr,
|
|
876
876
|
arg0,
|
|
877
877
|
arg1,
|
|
@@ -891,8 +891,8 @@ function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg
|
|
|
891
891
|
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
892
892
|
}
|
|
893
893
|
|
|
894
|
-
function
|
|
895
|
-
wasm.
|
|
894
|
+
function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
|
|
895
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
|
|
896
896
|
arg0,
|
|
897
897
|
arg1,
|
|
898
898
|
addHeapObject(arg2),
|
|
@@ -1042,6 +1042,19 @@ export const LoginLinkedIdType = Object.freeze({
|
|
|
1042
1042
|
Password: 101,
|
|
1043
1043
|
101: "Password",
|
|
1044
1044
|
});
|
|
1045
|
+
/**
|
|
1046
|
+
* @enum {0 | 1 | 2 | 3}
|
|
1047
|
+
*/
|
|
1048
|
+
export const RsaError = Object.freeze({
|
|
1049
|
+
Decryption: 0,
|
|
1050
|
+
0: "Decryption",
|
|
1051
|
+
Encryption: 1,
|
|
1052
|
+
1: "Encryption",
|
|
1053
|
+
KeyParse: 2,
|
|
1054
|
+
2: "KeyParse",
|
|
1055
|
+
KeySerialize: 3,
|
|
1056
|
+
3: "KeySerialize",
|
|
1057
|
+
});
|
|
1045
1058
|
/**
|
|
1046
1059
|
* @enum {0}
|
|
1047
1060
|
*/
|
|
@@ -4012,24 +4025,95 @@ export class PureCrypto {
|
|
|
4012
4025
|
}
|
|
4013
4026
|
}
|
|
4014
4027
|
/**
|
|
4015
|
-
* Given
|
|
4016
|
-
* the corresponding public RSA key in DER format.
|
|
4017
|
-
* @param {
|
|
4018
|
-
* @param {Uint8Array} wrapping_key
|
|
4028
|
+
* Given a decrypted private RSA key PKCS8 DER this
|
|
4029
|
+
* returns the corresponding public RSA key in DER format.
|
|
4030
|
+
* @param {Uint8Array} private_key
|
|
4019
4031
|
* @returns {Uint8Array}
|
|
4020
4032
|
*/
|
|
4021
|
-
static rsa_extract_public_key(
|
|
4033
|
+
static rsa_extract_public_key(private_key) {
|
|
4022
4034
|
try {
|
|
4023
4035
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4024
|
-
const ptr0 =
|
|
4025
|
-
encrypted_private_key,
|
|
4026
|
-
wasm.__wbindgen_malloc,
|
|
4027
|
-
wasm.__wbindgen_realloc,
|
|
4028
|
-
);
|
|
4036
|
+
const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
|
|
4029
4037
|
const len0 = WASM_VECTOR_LEN;
|
|
4030
|
-
|
|
4038
|
+
wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0);
|
|
4039
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4040
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4041
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4042
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4043
|
+
if (r3) {
|
|
4044
|
+
throw takeObject(r2);
|
|
4045
|
+
}
|
|
4046
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4047
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4048
|
+
return v2;
|
|
4049
|
+
} finally {
|
|
4050
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4053
|
+
/**
|
|
4054
|
+
* Generates a new RSA key pair and returns the private key
|
|
4055
|
+
* @returns {Uint8Array}
|
|
4056
|
+
*/
|
|
4057
|
+
static rsa_generate_keypair() {
|
|
4058
|
+
try {
|
|
4059
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4060
|
+
wasm.purecrypto_rsa_generate_keypair(retptr);
|
|
4061
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4062
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4063
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4064
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4065
|
+
if (r3) {
|
|
4066
|
+
throw takeObject(r2);
|
|
4067
|
+
}
|
|
4068
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4069
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4070
|
+
return v1;
|
|
4071
|
+
} finally {
|
|
4072
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4073
|
+
}
|
|
4074
|
+
}
|
|
4075
|
+
/**
|
|
4076
|
+
* Decrypts data using RSAES-OAEP with SHA-1
|
|
4077
|
+
* @param {Uint8Array} encrypted_data
|
|
4078
|
+
* @param {Uint8Array} private_key
|
|
4079
|
+
* @returns {Uint8Array}
|
|
4080
|
+
*/
|
|
4081
|
+
static rsa_decrypt_data(encrypted_data, private_key) {
|
|
4082
|
+
try {
|
|
4083
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4084
|
+
const ptr0 = passArray8ToWasm0(encrypted_data, wasm.__wbindgen_malloc);
|
|
4085
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4086
|
+
const ptr1 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
|
|
4031
4087
|
const len1 = WASM_VECTOR_LEN;
|
|
4032
|
-
wasm.
|
|
4088
|
+
wasm.purecrypto_rsa_decrypt_data(retptr, ptr0, len0, ptr1, len1);
|
|
4089
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4090
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4091
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4092
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4093
|
+
if (r3) {
|
|
4094
|
+
throw takeObject(r2);
|
|
4095
|
+
}
|
|
4096
|
+
var v3 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4097
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4098
|
+
return v3;
|
|
4099
|
+
} finally {
|
|
4100
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4101
|
+
}
|
|
4102
|
+
}
|
|
4103
|
+
/**
|
|
4104
|
+
* Encrypts data using RSAES-OAEP with SHA-1
|
|
4105
|
+
* @param {Uint8Array} plain_data
|
|
4106
|
+
* @param {Uint8Array} public_key
|
|
4107
|
+
* @returns {Uint8Array}
|
|
4108
|
+
*/
|
|
4109
|
+
static rsa_encrypt_data(plain_data, public_key) {
|
|
4110
|
+
try {
|
|
4111
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4112
|
+
const ptr0 = passArray8ToWasm0(plain_data, wasm.__wbindgen_malloc);
|
|
4113
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4114
|
+
const ptr1 = passArray8ToWasm0(public_key, wasm.__wbindgen_malloc);
|
|
4115
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4116
|
+
wasm.purecrypto_rsa_encrypt_data(retptr, ptr0, len0, ptr1, len1);
|
|
4033
4117
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4034
4118
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4035
4119
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4461,7 +4545,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
|
|
|
4461
4545
|
}, arguments);
|
|
4462
4546
|
}
|
|
4463
4547
|
|
|
4464
|
-
export function
|
|
4548
|
+
export function __wbg_cipher_a69755738b4a95e4(arg0) {
|
|
4465
4549
|
const ret = getObject(arg0).cipher;
|
|
4466
4550
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4467
4551
|
}
|
|
@@ -4554,7 +4638,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4554
4638
|
return addHeapObject(ret);
|
|
4555
4639
|
}
|
|
4556
4640
|
|
|
4557
|
-
export function
|
|
4641
|
+
export function __wbg_folder_6ddccfa2359908cd(arg0) {
|
|
4558
4642
|
const ret = getObject(arg0).folder;
|
|
4559
4643
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4560
4644
|
}
|
|
@@ -4570,6 +4654,12 @@ export function __wbg_getRandomValues_38097e921c2494c3() {
|
|
|
4570
4654
|
}, arguments);
|
|
4571
4655
|
}
|
|
4572
4656
|
|
|
4657
|
+
export function __wbg_getRandomValues_3c9c0d586e575a16() {
|
|
4658
|
+
return handleError(function (arg0, arg1) {
|
|
4659
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4660
|
+
}, arguments);
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4573
4663
|
export function __wbg_getRandomValues_b8f5dbd5f3995a9e() {
|
|
4574
4664
|
return handleError(function (arg0, arg1) {
|
|
4575
4665
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
@@ -4581,7 +4671,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4581
4671
|
return ret;
|
|
4582
4672
|
}
|
|
4583
4673
|
|
|
4584
|
-
export function
|
|
4674
|
+
export function __wbg_get_63fc1a87cfa05664() {
|
|
4585
4675
|
return handleError(function (arg0, arg1, arg2) {
|
|
4586
4676
|
let deferred0_0;
|
|
4587
4677
|
let deferred0_1;
|
|
@@ -4596,7 +4686,12 @@ export function __wbg_get_4c60beeeb1154fc2() {
|
|
|
4596
4686
|
}, arguments);
|
|
4597
4687
|
}
|
|
4598
4688
|
|
|
4599
|
-
export function
|
|
4689
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
4690
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4691
|
+
return addHeapObject(ret);
|
|
4692
|
+
}
|
|
4693
|
+
|
|
4694
|
+
export function __wbg_get_7f59e4189b579885() {
|
|
4600
4695
|
return handleError(function (arg0, arg1, arg2) {
|
|
4601
4696
|
let deferred0_0;
|
|
4602
4697
|
let deferred0_1;
|
|
@@ -4611,12 +4706,7 @@ export function __wbg_get_756969d3b9917d61() {
|
|
|
4611
4706
|
}, arguments);
|
|
4612
4707
|
}
|
|
4613
4708
|
|
|
4614
|
-
export function
|
|
4615
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4616
|
-
return addHeapObject(ret);
|
|
4617
|
-
}
|
|
4618
|
-
|
|
4619
|
-
export function __wbg_get_access_token_7db381e38e606e59(arg0) {
|
|
4709
|
+
export function __wbg_get_access_token_5d1676f62fd8cd77(arg0) {
|
|
4620
4710
|
const ret = getObject(arg0).get_access_token();
|
|
4621
4711
|
return addHeapObject(ret);
|
|
4622
4712
|
}
|
|
@@ -4812,14 +4902,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
4812
4902
|
return ret;
|
|
4813
4903
|
}
|
|
4814
4904
|
|
|
4815
|
-
export function
|
|
4905
|
+
export function __wbg_list_2aa62e3f6d399917() {
|
|
4816
4906
|
return handleError(function (arg0) {
|
|
4817
4907
|
const ret = getObject(arg0).list();
|
|
4818
4908
|
return addHeapObject(ret);
|
|
4819
4909
|
}, arguments);
|
|
4820
4910
|
}
|
|
4821
4911
|
|
|
4822
|
-
export function
|
|
4912
|
+
export function __wbg_list_3b311a5af885ff76() {
|
|
4823
4913
|
return handleError(function (arg0) {
|
|
4824
4914
|
const ret = getObject(arg0).list();
|
|
4825
4915
|
return addHeapObject(ret);
|
|
@@ -5063,7 +5153,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
5063
5153
|
}, arguments);
|
|
5064
5154
|
}
|
|
5065
5155
|
|
|
5066
|
-
export function
|
|
5156
|
+
export function __wbg_remove_47756c4838416808() {
|
|
5067
5157
|
return handleError(function (arg0, arg1, arg2) {
|
|
5068
5158
|
let deferred0_0;
|
|
5069
5159
|
let deferred0_1;
|
|
@@ -5078,7 +5168,7 @@ export function __wbg_remove_2008f1dde7b91f51() {
|
|
|
5078
5168
|
}, arguments);
|
|
5079
5169
|
}
|
|
5080
5170
|
|
|
5081
|
-
export function
|
|
5171
|
+
export function __wbg_remove_e8858f2fbc02dbd1() {
|
|
5082
5172
|
return handleError(function (arg0, arg1, arg2) {
|
|
5083
5173
|
let deferred0_0;
|
|
5084
5174
|
let deferred0_1;
|
|
@@ -5124,11 +5214,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5124
5214
|
return addHeapObject(ret);
|
|
5125
5215
|
}
|
|
5126
5216
|
|
|
5127
|
-
export function
|
|
5128
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5129
|
-
}
|
|
5130
|
-
|
|
5131
|
-
export function __wbg_set_512ce00f6a1a36e7() {
|
|
5217
|
+
export function __wbg_set_268d54f279c675e3() {
|
|
5132
5218
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5133
5219
|
let deferred0_0;
|
|
5134
5220
|
let deferred0_1;
|
|
@@ -5143,12 +5229,11 @@ export function __wbg_set_512ce00f6a1a36e7() {
|
|
|
5143
5229
|
}, arguments);
|
|
5144
5230
|
}
|
|
5145
5231
|
|
|
5146
|
-
export function
|
|
5147
|
-
|
|
5148
|
-
return addHeapObject(ret);
|
|
5232
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5233
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5149
5234
|
}
|
|
5150
5235
|
|
|
5151
|
-
export function
|
|
5236
|
+
export function __wbg_set_6e08863f9db5b0dc() {
|
|
5152
5237
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5153
5238
|
let deferred0_0;
|
|
5154
5239
|
let deferred0_1;
|
|
@@ -5163,6 +5248,11 @@ export function __wbg_set_b17bc1811a1e440e() {
|
|
|
5163
5248
|
}, arguments);
|
|
5164
5249
|
}
|
|
5165
5250
|
|
|
5251
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5252
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5253
|
+
return addHeapObject(ret);
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5166
5256
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5167
5257
|
getObject(arg0).body = getObject(arg1);
|
|
5168
5258
|
}
|
|
@@ -5346,39 +5436,31 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
|
|
|
5346
5436
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5347
5437
|
}
|
|
5348
5438
|
|
|
5349
|
-
export function
|
|
5350
|
-
// Cast intrinsic for `
|
|
5439
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
5440
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5441
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
5442
|
+
return addHeapObject(ret);
|
|
5443
|
+
}
|
|
5444
|
+
|
|
5445
|
+
export function __wbindgen_cast_4042b341512ce63a(arg0, arg1) {
|
|
5446
|
+
// 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`.
|
|
5351
5447
|
const ret = makeMutClosure(
|
|
5352
5448
|
arg0,
|
|
5353
5449
|
arg1,
|
|
5354
|
-
wasm.
|
|
5355
|
-
|
|
5450
|
+
wasm.wasm_bindgen__closure__destroy__h09d4e676b918dc23,
|
|
5451
|
+
wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa,
|
|
5356
5452
|
);
|
|
5357
5453
|
return addHeapObject(ret);
|
|
5358
5454
|
}
|
|
5359
5455
|
|
|
5360
|
-
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
5361
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5362
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
5363
|
-
return addHeapObject(ret);
|
|
5364
|
-
}
|
|
5365
|
-
|
|
5366
5456
|
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
5367
5457
|
// Cast intrinsic for `U64 -> Externref`.
|
|
5368
5458
|
const ret = BigInt.asUintN(64, arg0);
|
|
5369
5459
|
return addHeapObject(ret);
|
|
5370
5460
|
}
|
|
5371
5461
|
|
|
5372
|
-
export function
|
|
5373
|
-
|
|
5374
|
-
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
5375
|
-
// Cast intrinsic for `Vector(NamedExternref("CipherRiskResult")) -> Externref`.
|
|
5376
|
-
const ret = v0;
|
|
5377
|
-
return addHeapObject(ret);
|
|
5378
|
-
}
|
|
5379
|
-
|
|
5380
|
-
export function __wbindgen_cast_6b441f2e42512d6e(arg0, arg1) {
|
|
5381
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 545, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5462
|
+
export function __wbindgen_cast_567ce6425eb96825(arg0, arg1) {
|
|
5463
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 551, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5382
5464
|
const ret = makeMutClosure(
|
|
5383
5465
|
arg0,
|
|
5384
5466
|
arg1,
|
|
@@ -5388,6 +5470,14 @@ export function __wbindgen_cast_6b441f2e42512d6e(arg0, arg1) {
|
|
|
5388
5470
|
return addHeapObject(ret);
|
|
5389
5471
|
}
|
|
5390
5472
|
|
|
5473
|
+
export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
|
|
5474
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5475
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
5476
|
+
// Cast intrinsic for `Vector(NamedExternref("CipherRiskResult")) -> Externref`.
|
|
5477
|
+
const ret = v0;
|
|
5478
|
+
return addHeapObject(ret);
|
|
5479
|
+
}
|
|
5480
|
+
|
|
5391
5481
|
export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
|
|
5392
5482
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5393
5483
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5396,54 +5486,54 @@ export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
|
|
|
5396
5486
|
return addHeapObject(ret);
|
|
5397
5487
|
}
|
|
5398
5488
|
|
|
5399
|
-
export function
|
|
5400
|
-
// Cast intrinsic for `
|
|
5401
|
-
const ret =
|
|
5489
|
+
export function __wbindgen_cast_8340b5b160d85933(arg0, arg1) {
|
|
5490
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5491
|
+
const ret = makeMutClosure(
|
|
5492
|
+
arg0,
|
|
5493
|
+
arg1,
|
|
5494
|
+
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5495
|
+
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5496
|
+
);
|
|
5402
5497
|
return addHeapObject(ret);
|
|
5403
5498
|
}
|
|
5404
5499
|
|
|
5405
|
-
export function
|
|
5406
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5500
|
+
export function __wbindgen_cast_9654b59eb60e619d(arg0, arg1) {
|
|
5501
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5407
5502
|
const ret = makeMutClosure(
|
|
5408
5503
|
arg0,
|
|
5409
5504
|
arg1,
|
|
5410
5505
|
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5411
|
-
|
|
5506
|
+
wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa,
|
|
5412
5507
|
);
|
|
5413
5508
|
return addHeapObject(ret);
|
|
5414
5509
|
}
|
|
5415
5510
|
|
|
5416
|
-
export function
|
|
5417
|
-
// Cast intrinsic for `
|
|
5418
|
-
const ret =
|
|
5511
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
5512
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
5513
|
+
const ret = arg0;
|
|
5419
5514
|
return addHeapObject(ret);
|
|
5420
5515
|
}
|
|
5421
5516
|
|
|
5422
|
-
export function
|
|
5423
|
-
// Cast intrinsic for `
|
|
5424
|
-
const ret = arg0;
|
|
5517
|
+
export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
5518
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
5519
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
5425
5520
|
return addHeapObject(ret);
|
|
5426
5521
|
}
|
|
5427
5522
|
|
|
5428
|
-
export function
|
|
5429
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5523
|
+
export function __wbindgen_cast_d49c305f67640cb1(arg0, arg1) {
|
|
5524
|
+
// 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`.
|
|
5430
5525
|
const ret = makeMutClosure(
|
|
5431
5526
|
arg0,
|
|
5432
5527
|
arg1,
|
|
5433
|
-
wasm.
|
|
5434
|
-
|
|
5528
|
+
wasm.wasm_bindgen__closure__destroy__h09d4e676b918dc23,
|
|
5529
|
+
wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf,
|
|
5435
5530
|
);
|
|
5436
5531
|
return addHeapObject(ret);
|
|
5437
5532
|
}
|
|
5438
5533
|
|
|
5439
|
-
export function
|
|
5440
|
-
// Cast intrinsic for `
|
|
5441
|
-
const ret =
|
|
5442
|
-
arg0,
|
|
5443
|
-
arg1,
|
|
5444
|
-
wasm.wasm_bindgen__closure__destroy__h1470697583ce3ba3,
|
|
5445
|
-
wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5,
|
|
5446
|
-
);
|
|
5534
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
5535
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
5536
|
+
const ret = arg0;
|
|
5447
5537
|
return addHeapObject(ret);
|
|
5448
5538
|
}
|
|
5449
5539
|
|
|
Binary file
|
|
@@ -177,7 +177,16 @@ export const purecrypto_decrypt_user_key_with_master_key: (
|
|
|
177
177
|
d: number,
|
|
178
178
|
e: number,
|
|
179
179
|
) => void;
|
|
180
|
-
export const purecrypto_rsa_extract_public_key: (
|
|
180
|
+
export const purecrypto_rsa_extract_public_key: (a: number, b: number, c: number) => void;
|
|
181
|
+
export const purecrypto_rsa_generate_keypair: (a: number) => void;
|
|
182
|
+
export const purecrypto_rsa_decrypt_data: (
|
|
183
|
+
a: number,
|
|
184
|
+
b: number,
|
|
185
|
+
c: number,
|
|
186
|
+
d: number,
|
|
187
|
+
e: number,
|
|
188
|
+
) => void;
|
|
189
|
+
export const purecrypto_rsa_encrypt_data: (
|
|
181
190
|
a: number,
|
|
182
191
|
b: number,
|
|
183
192
|
c: number,
|
|
@@ -438,19 +447,19 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
|
438
447
|
export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
439
448
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
440
449
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
441
|
-
export const
|
|
450
|
+
export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
|
|
442
451
|
a: number,
|
|
443
452
|
b: number,
|
|
444
453
|
c: number,
|
|
445
454
|
d: number,
|
|
446
455
|
) => void;
|
|
447
|
-
export const
|
|
456
|
+
export const wasm_bindgen__closure__destroy__h09d4e676b918dc23: (a: number, b: number) => void;
|
|
448
457
|
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
449
458
|
a: number,
|
|
450
459
|
b: number,
|
|
451
460
|
) => void;
|
|
452
461
|
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
453
|
-
export const
|
|
462
|
+
export const wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa: (
|
|
454
463
|
a: number,
|
|
455
464
|
b: number,
|
|
456
465
|
c: number,
|