@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.
|
|
@@ -868,22 +868,10 @@ export function isEncryptFileError(error) {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
function
|
|
872
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
function wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(arg0, arg1, arg2) {
|
|
876
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(
|
|
877
|
-
arg0,
|
|
878
|
-
arg1,
|
|
879
|
-
addHeapObject(arg2),
|
|
880
|
-
);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
function wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(arg0, arg1, arg2) {
|
|
871
|
+
function wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(arg0, arg1, arg2) {
|
|
884
872
|
try {
|
|
885
873
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
886
|
-
wasm.
|
|
874
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(
|
|
887
875
|
retptr,
|
|
888
876
|
arg0,
|
|
889
877
|
arg1,
|
|
@@ -899,6 +887,18 @@ function wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(arg0, arg
|
|
|
899
887
|
}
|
|
900
888
|
}
|
|
901
889
|
|
|
890
|
+
function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
|
|
891
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
|
|
892
|
+
arg0,
|
|
893
|
+
arg1,
|
|
894
|
+
addHeapObject(arg2),
|
|
895
|
+
);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
899
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
902
|
function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
|
|
903
903
|
wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
|
|
904
904
|
arg0,
|
|
@@ -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
|
*/
|
|
@@ -4091,24 +4104,95 @@ export class PureCrypto {
|
|
|
4091
4104
|
}
|
|
4092
4105
|
}
|
|
4093
4106
|
/**
|
|
4094
|
-
* Given
|
|
4095
|
-
* the corresponding public RSA key in DER format.
|
|
4096
|
-
* @param {
|
|
4097
|
-
* @param {Uint8Array} wrapping_key
|
|
4107
|
+
* Given a decrypted private RSA key PKCS8 DER this
|
|
4108
|
+
* returns the corresponding public RSA key in DER format.
|
|
4109
|
+
* @param {Uint8Array} private_key
|
|
4098
4110
|
* @returns {Uint8Array}
|
|
4099
4111
|
*/
|
|
4100
|
-
static rsa_extract_public_key(
|
|
4112
|
+
static rsa_extract_public_key(private_key) {
|
|
4101
4113
|
try {
|
|
4102
4114
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4103
|
-
const ptr0 =
|
|
4104
|
-
encrypted_private_key,
|
|
4105
|
-
wasm.__wbindgen_malloc,
|
|
4106
|
-
wasm.__wbindgen_realloc,
|
|
4107
|
-
);
|
|
4115
|
+
const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
|
|
4108
4116
|
const len0 = WASM_VECTOR_LEN;
|
|
4109
|
-
|
|
4117
|
+
wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0);
|
|
4118
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4119
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4120
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4121
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4122
|
+
if (r3) {
|
|
4123
|
+
throw takeObject(r2);
|
|
4124
|
+
}
|
|
4125
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4126
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4127
|
+
return v2;
|
|
4128
|
+
} finally {
|
|
4129
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4130
|
+
}
|
|
4131
|
+
}
|
|
4132
|
+
/**
|
|
4133
|
+
* Generates a new RSA key pair and returns the private key
|
|
4134
|
+
* @returns {Uint8Array}
|
|
4135
|
+
*/
|
|
4136
|
+
static rsa_generate_keypair() {
|
|
4137
|
+
try {
|
|
4138
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4139
|
+
wasm.purecrypto_rsa_generate_keypair(retptr);
|
|
4140
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4141
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4142
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4143
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4144
|
+
if (r3) {
|
|
4145
|
+
throw takeObject(r2);
|
|
4146
|
+
}
|
|
4147
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4148
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4149
|
+
return v1;
|
|
4150
|
+
} finally {
|
|
4151
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4152
|
+
}
|
|
4153
|
+
}
|
|
4154
|
+
/**
|
|
4155
|
+
* Decrypts data using RSAES-OAEP with SHA-1
|
|
4156
|
+
* @param {Uint8Array} encrypted_data
|
|
4157
|
+
* @param {Uint8Array} private_key
|
|
4158
|
+
* @returns {Uint8Array}
|
|
4159
|
+
*/
|
|
4160
|
+
static rsa_decrypt_data(encrypted_data, private_key) {
|
|
4161
|
+
try {
|
|
4162
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4163
|
+
const ptr0 = passArray8ToWasm0(encrypted_data, wasm.__wbindgen_malloc);
|
|
4164
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4165
|
+
const ptr1 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
|
|
4110
4166
|
const len1 = WASM_VECTOR_LEN;
|
|
4111
|
-
wasm.
|
|
4167
|
+
wasm.purecrypto_rsa_decrypt_data(retptr, ptr0, len0, ptr1, len1);
|
|
4168
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4169
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4170
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4171
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
4172
|
+
if (r3) {
|
|
4173
|
+
throw takeObject(r2);
|
|
4174
|
+
}
|
|
4175
|
+
var v3 = getArrayU8FromWasm0(r0, r1).slice();
|
|
4176
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
4177
|
+
return v3;
|
|
4178
|
+
} finally {
|
|
4179
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
/**
|
|
4183
|
+
* Encrypts data using RSAES-OAEP with SHA-1
|
|
4184
|
+
* @param {Uint8Array} plain_data
|
|
4185
|
+
* @param {Uint8Array} public_key
|
|
4186
|
+
* @returns {Uint8Array}
|
|
4187
|
+
*/
|
|
4188
|
+
static rsa_encrypt_data(plain_data, public_key) {
|
|
4189
|
+
try {
|
|
4190
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4191
|
+
const ptr0 = passArray8ToWasm0(plain_data, wasm.__wbindgen_malloc);
|
|
4192
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4193
|
+
const ptr1 = passArray8ToWasm0(public_key, wasm.__wbindgen_malloc);
|
|
4194
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4195
|
+
wasm.purecrypto_rsa_encrypt_data(retptr, ptr0, len0, ptr1, len1);
|
|
4112
4196
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4113
4197
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4114
4198
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4540,7 +4624,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
|
|
|
4540
4624
|
}, arguments);
|
|
4541
4625
|
}
|
|
4542
4626
|
|
|
4543
|
-
export function
|
|
4627
|
+
export function __wbg_cipher_a69755738b4a95e4(arg0) {
|
|
4544
4628
|
const ret = getObject(arg0).cipher;
|
|
4545
4629
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4546
4630
|
}
|
|
@@ -4633,7 +4717,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4633
4717
|
return addHeapObject(ret);
|
|
4634
4718
|
}
|
|
4635
4719
|
|
|
4636
|
-
export function
|
|
4720
|
+
export function __wbg_folder_6ddccfa2359908cd(arg0) {
|
|
4637
4721
|
const ret = getObject(arg0).folder;
|
|
4638
4722
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4639
4723
|
}
|
|
@@ -4649,6 +4733,12 @@ export function __wbg_getRandomValues_38097e921c2494c3() {
|
|
|
4649
4733
|
}, arguments);
|
|
4650
4734
|
}
|
|
4651
4735
|
|
|
4736
|
+
export function __wbg_getRandomValues_3c9c0d586e575a16() {
|
|
4737
|
+
return handleError(function (arg0, arg1) {
|
|
4738
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4739
|
+
}, arguments);
|
|
4740
|
+
}
|
|
4741
|
+
|
|
4652
4742
|
export function __wbg_getRandomValues_b8f5dbd5f3995a9e() {
|
|
4653
4743
|
return handleError(function (arg0, arg1) {
|
|
4654
4744
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
@@ -4660,7 +4750,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4660
4750
|
return ret;
|
|
4661
4751
|
}
|
|
4662
4752
|
|
|
4663
|
-
export function
|
|
4753
|
+
export function __wbg_get_63fc1a87cfa05664() {
|
|
4664
4754
|
return handleError(function (arg0, arg1, arg2) {
|
|
4665
4755
|
let deferred0_0;
|
|
4666
4756
|
let deferred0_1;
|
|
@@ -4675,7 +4765,12 @@ export function __wbg_get_4c60beeeb1154fc2() {
|
|
|
4675
4765
|
}, arguments);
|
|
4676
4766
|
}
|
|
4677
4767
|
|
|
4678
|
-
export function
|
|
4768
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
4769
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4770
|
+
return addHeapObject(ret);
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4773
|
+
export function __wbg_get_7f59e4189b579885() {
|
|
4679
4774
|
return handleError(function (arg0, arg1, arg2) {
|
|
4680
4775
|
let deferred0_0;
|
|
4681
4776
|
let deferred0_1;
|
|
@@ -4690,12 +4785,7 @@ export function __wbg_get_756969d3b9917d61() {
|
|
|
4690
4785
|
}, arguments);
|
|
4691
4786
|
}
|
|
4692
4787
|
|
|
4693
|
-
export function
|
|
4694
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4695
|
-
return addHeapObject(ret);
|
|
4696
|
-
}
|
|
4697
|
-
|
|
4698
|
-
export function __wbg_get_access_token_7db381e38e606e59(arg0) {
|
|
4788
|
+
export function __wbg_get_access_token_5d1676f62fd8cd77(arg0) {
|
|
4699
4789
|
const ret = getObject(arg0).get_access_token();
|
|
4700
4790
|
return addHeapObject(ret);
|
|
4701
4791
|
}
|
|
@@ -4891,14 +4981,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
4891
4981
|
return ret;
|
|
4892
4982
|
}
|
|
4893
4983
|
|
|
4894
|
-
export function
|
|
4984
|
+
export function __wbg_list_2aa62e3f6d399917() {
|
|
4895
4985
|
return handleError(function (arg0) {
|
|
4896
4986
|
const ret = getObject(arg0).list();
|
|
4897
4987
|
return addHeapObject(ret);
|
|
4898
4988
|
}, arguments);
|
|
4899
4989
|
}
|
|
4900
4990
|
|
|
4901
|
-
export function
|
|
4991
|
+
export function __wbg_list_3b311a5af885ff76() {
|
|
4902
4992
|
return handleError(function (arg0) {
|
|
4903
4993
|
const ret = getObject(arg0).list();
|
|
4904
4994
|
return addHeapObject(ret);
|
|
@@ -5142,7 +5232,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
5142
5232
|
}, arguments);
|
|
5143
5233
|
}
|
|
5144
5234
|
|
|
5145
|
-
export function
|
|
5235
|
+
export function __wbg_remove_47756c4838416808() {
|
|
5146
5236
|
return handleError(function (arg0, arg1, arg2) {
|
|
5147
5237
|
let deferred0_0;
|
|
5148
5238
|
let deferred0_1;
|
|
@@ -5157,7 +5247,7 @@ export function __wbg_remove_2008f1dde7b91f51() {
|
|
|
5157
5247
|
}, arguments);
|
|
5158
5248
|
}
|
|
5159
5249
|
|
|
5160
|
-
export function
|
|
5250
|
+
export function __wbg_remove_e8858f2fbc02dbd1() {
|
|
5161
5251
|
return handleError(function (arg0, arg1, arg2) {
|
|
5162
5252
|
let deferred0_0;
|
|
5163
5253
|
let deferred0_1;
|
|
@@ -5203,11 +5293,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5203
5293
|
return addHeapObject(ret);
|
|
5204
5294
|
}
|
|
5205
5295
|
|
|
5206
|
-
export function
|
|
5207
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5208
|
-
}
|
|
5209
|
-
|
|
5210
|
-
export function __wbg_set_512ce00f6a1a36e7() {
|
|
5296
|
+
export function __wbg_set_268d54f279c675e3() {
|
|
5211
5297
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5212
5298
|
let deferred0_0;
|
|
5213
5299
|
let deferred0_1;
|
|
@@ -5222,12 +5308,11 @@ export function __wbg_set_512ce00f6a1a36e7() {
|
|
|
5222
5308
|
}, arguments);
|
|
5223
5309
|
}
|
|
5224
5310
|
|
|
5225
|
-
export function
|
|
5226
|
-
|
|
5227
|
-
return addHeapObject(ret);
|
|
5311
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5312
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5228
5313
|
}
|
|
5229
5314
|
|
|
5230
|
-
export function
|
|
5315
|
+
export function __wbg_set_6e08863f9db5b0dc() {
|
|
5231
5316
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5232
5317
|
let deferred0_0;
|
|
5233
5318
|
let deferred0_1;
|
|
@@ -5242,6 +5327,11 @@ export function __wbg_set_b17bc1811a1e440e() {
|
|
|
5242
5327
|
}, arguments);
|
|
5243
5328
|
}
|
|
5244
5329
|
|
|
5330
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5331
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5332
|
+
return addHeapObject(ret);
|
|
5333
|
+
}
|
|
5334
|
+
|
|
5245
5335
|
export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
|
|
5246
5336
|
getObject(arg0).body = getObject(arg1);
|
|
5247
5337
|
}
|
|
@@ -5425,17 +5515,6 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
|
|
|
5425
5515
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5426
5516
|
}
|
|
5427
5517
|
|
|
5428
|
-
export function __wbindgen_cast_1dc3b0d4f0abedd3(arg0, arg1) {
|
|
5429
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5430
|
-
const ret = makeMutClosure(
|
|
5431
|
-
arg0,
|
|
5432
|
-
arg1,
|
|
5433
|
-
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5434
|
-
wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb,
|
|
5435
|
-
);
|
|
5436
|
-
return addHeapObject(ret);
|
|
5437
|
-
}
|
|
5438
|
-
|
|
5439
5518
|
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
5440
5519
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5441
5520
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -5447,8 +5526,8 @@ export function __wbindgen_cast_4042b341512ce63a(arg0, arg1) {
|
|
|
5447
5526
|
const ret = makeMutClosure(
|
|
5448
5527
|
arg0,
|
|
5449
5528
|
arg1,
|
|
5450
|
-
wasm.
|
|
5451
|
-
|
|
5529
|
+
wasm.wasm_bindgen__closure__destroy__hba496874d56e8206,
|
|
5530
|
+
wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff,
|
|
5452
5531
|
);
|
|
5453
5532
|
return addHeapObject(ret);
|
|
5454
5533
|
}
|
|
@@ -5459,6 +5538,17 @@ export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
|
5459
5538
|
return addHeapObject(ret);
|
|
5460
5539
|
}
|
|
5461
5540
|
|
|
5541
|
+
export function __wbindgen_cast_567ce6425eb96825(arg0, arg1) {
|
|
5542
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 551, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5543
|
+
const ret = makeMutClosure(
|
|
5544
|
+
arg0,
|
|
5545
|
+
arg1,
|
|
5546
|
+
wasm.wasm_bindgen__closure__destroy__hfcb631b72e5e985c,
|
|
5547
|
+
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5548
|
+
);
|
|
5549
|
+
return addHeapObject(ret);
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5462
5552
|
export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
|
|
5463
5553
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5464
5554
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5467,22 +5557,33 @@ export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
|
|
|
5467
5557
|
return addHeapObject(ret);
|
|
5468
5558
|
}
|
|
5469
5559
|
|
|
5470
|
-
export function
|
|
5471
|
-
|
|
5560
|
+
export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
|
|
5561
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5562
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
5563
|
+
// Cast intrinsic for `Vector(NamedExternref("Cipher")) -> Externref`.
|
|
5564
|
+
const ret = v0;
|
|
5565
|
+
return addHeapObject(ret);
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5568
|
+
export function __wbindgen_cast_8340b5b160d85933(arg0, arg1) {
|
|
5569
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5472
5570
|
const ret = makeMutClosure(
|
|
5473
5571
|
arg0,
|
|
5474
5572
|
arg1,
|
|
5475
|
-
wasm.
|
|
5573
|
+
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5476
5574
|
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5477
5575
|
);
|
|
5478
5576
|
return addHeapObject(ret);
|
|
5479
5577
|
}
|
|
5480
5578
|
|
|
5481
|
-
export function
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5579
|
+
export function __wbindgen_cast_9654b59eb60e619d(arg0, arg1) {
|
|
5580
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5581
|
+
const ret = makeMutClosure(
|
|
5582
|
+
arg0,
|
|
5583
|
+
arg1,
|
|
5584
|
+
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5585
|
+
wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff,
|
|
5586
|
+
);
|
|
5486
5587
|
return addHeapObject(ret);
|
|
5487
5588
|
}
|
|
5488
5589
|
|
|
@@ -5503,8 +5604,8 @@ export function __wbindgen_cast_d49c305f67640cb1(arg0, arg1) {
|
|
|
5503
5604
|
const ret = makeMutClosure(
|
|
5504
5605
|
arg0,
|
|
5505
5606
|
arg1,
|
|
5506
|
-
wasm.
|
|
5507
|
-
|
|
5607
|
+
wasm.wasm_bindgen__closure__destroy__hba496874d56e8206,
|
|
5608
|
+
wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe,
|
|
5508
5609
|
);
|
|
5509
5610
|
return addHeapObject(ret);
|
|
5510
5611
|
}
|
|
@@ -5515,17 +5616,6 @@ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
|
5515
5616
|
return addHeapObject(ret);
|
|
5516
5617
|
}
|
|
5517
5618
|
|
|
5518
|
-
export function __wbindgen_cast_d87bfd09ab1288e4(arg0, arg1) {
|
|
5519
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5520
|
-
const ret = makeMutClosure(
|
|
5521
|
-
arg0,
|
|
5522
|
-
arg1,
|
|
5523
|
-
wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
|
|
5524
|
-
wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
|
|
5525
|
-
);
|
|
5526
|
-
return addHeapObject(ret);
|
|
5527
|
-
}
|
|
5528
|
-
|
|
5529
5619
|
export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
|
|
5530
5620
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5531
5621
|
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__h35a8188fc7e541fe: (
|
|
446
455
|
a: number,
|
|
447
456
|
b: number,
|
|
457
|
+
c: number,
|
|
458
|
+
d: number,
|
|
448
459
|
) => void;
|
|
449
|
-
export const
|
|
450
|
-
export const
|
|
451
|
-
export const wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb: (
|
|
460
|
+
export const wasm_bindgen__closure__destroy__hba496874d56e8206: (a: number, b: number) => void;
|
|
461
|
+
export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
|
|
452
462
|
a: number,
|
|
453
463
|
b: number,
|
|
454
464
|
c: number,
|
|
455
465
|
) => void;
|
|
456
|
-
export const
|
|
466
|
+
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
457
467
|
a: number,
|
|
458
468
|
b: number,
|
|
459
|
-
c: number,
|
|
460
|
-
d: number,
|
|
461
469
|
) => void;
|
|
462
|
-
export const
|
|
470
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
471
|
+
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
463
472
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
464
473
|
a: number,
|
|
465
474
|
b: number,
|