@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.
@@ -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 an encrypted private RSA key and the symmetric key it is wrapped with, this returns
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
- encrypted_private_key: string,
2453
- wrapping_key: Uint8Array,
2454
- ): Uint8Array;
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 wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(arg0, arg1, arg2) {
872
- wasm.wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb(
873
- arg0,
874
- arg1,
875
- addHeapObject(arg2),
876
- );
877
- }
878
-
879
- function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
880
- wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
881
- }
882
-
883
- function wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(arg0, arg1, arg2) {
871
+ function wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8(arg0, arg1, arg2) {
884
872
  try {
885
873
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
886
- wasm.wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06(
874
+ wasm.wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8(
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__h092300064b8afb1e(arg0, arg1) {
891
+ wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
892
+ }
893
+
894
+ function wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(arg0, arg1, arg2) {
895
+ wasm.wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(
896
+ arg0,
897
+ arg1,
898
+ addHeapObject(arg2),
899
+ );
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 an encrypted private RSA key and the symmetric key it is wrapped with, this returns
4095
- * the corresponding public RSA key in DER format.
4096
- * @param {string} encrypted_private_key
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(encrypted_private_key, wrapping_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 = passStringToWasm0(
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
- const ptr1 = passArray8ToWasm0(wrapping_key, wasm.__wbindgen_malloc);
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);
4166
+ const len1 = WASM_VECTOR_LEN;
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);
4110
4194
  const len1 = WASM_VECTOR_LEN;
4111
- wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0, ptr1, len1);
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 __wbg_cipher_358be94305967293(arg0) {
4627
+ export function __wbg_cipher_1cdb0d79866a6837(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 __wbg_folder_e747a38a52f09c9b(arg0) {
4720
+ export function __wbg_folder_bf0beccb0458352a(arg0) {
4637
4721
  const ret = getObject(arg0).folder;
4638
4722
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4639
4723
  }
@@ -4660,7 +4744,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4660
4744
  return ret;
4661
4745
  }
4662
4746
 
4663
- export function __wbg_get_10cebdc47b1c368b() {
4747
+ export function __wbg_get_1b7efe6c2c00e86d() {
4664
4748
  return handleError(function (arg0, arg1, arg2) {
4665
4749
  let deferred0_0;
4666
4750
  let deferred0_1;
@@ -4675,7 +4759,12 @@ export function __wbg_get_10cebdc47b1c368b() {
4675
4759
  }, arguments);
4676
4760
  }
4677
4761
 
4678
- export function __wbg_get_486f71d3e5c28990() {
4762
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4763
+ const ret = getObject(arg0)[arg1 >>> 0];
4764
+ return addHeapObject(ret);
4765
+ }
4766
+
4767
+ export function __wbg_get_ab3c82eecdf4bc91() {
4679
4768
  return handleError(function (arg0, arg1, arg2) {
4680
4769
  let deferred0_0;
4681
4770
  let deferred0_1;
@@ -4690,12 +4779,7 @@ export function __wbg_get_486f71d3e5c28990() {
4690
4779
  }, arguments);
4691
4780
  }
4692
4781
 
4693
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
4694
- const ret = getObject(arg0)[arg1 >>> 0];
4695
- return addHeapObject(ret);
4696
- }
4697
-
4698
- export function __wbg_get_access_token_40bd5ef30e4d38c3(arg0) {
4782
+ export function __wbg_get_access_token_418fcb38cdc8413d(arg0) {
4699
4783
  const ret = getObject(arg0).get_access_token();
4700
4784
  return addHeapObject(ret);
4701
4785
  }
@@ -4891,14 +4975,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
4891
4975
  return ret;
4892
4976
  }
4893
4977
 
4894
- export function __wbg_list_17acf29205a70f15() {
4978
+ export function __wbg_list_056c98609a1fb3ef() {
4895
4979
  return handleError(function (arg0) {
4896
4980
  const ret = getObject(arg0).list();
4897
4981
  return addHeapObject(ret);
4898
4982
  }, arguments);
4899
4983
  }
4900
4984
 
4901
- export function __wbg_list_bacb7b59e6125838() {
4985
+ export function __wbg_list_78accfdd0a91ad5f() {
4902
4986
  return handleError(function (arg0) {
4903
4987
  const ret = getObject(arg0).list();
4904
4988
  return addHeapObject(ret);
@@ -5142,7 +5226,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
5142
5226
  }, arguments);
5143
5227
  }
5144
5228
 
5145
- export function __wbg_remove_1e82e22a182f6e4c() {
5229
+ export function __wbg_remove_2d6d9bd3eaac392b() {
5146
5230
  return handleError(function (arg0, arg1, arg2) {
5147
5231
  let deferred0_0;
5148
5232
  let deferred0_1;
@@ -5157,7 +5241,7 @@ export function __wbg_remove_1e82e22a182f6e4c() {
5157
5241
  }, arguments);
5158
5242
  }
5159
5243
 
5160
- export function __wbg_remove_fbc19e58b39676e4() {
5244
+ export function __wbg_remove_7648970db543e157() {
5161
5245
  return handleError(function (arg0, arg1, arg2) {
5162
5246
  let deferred0_0;
5163
5247
  let deferred0_1;
@@ -5203,7 +5287,11 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
5203
5287
  return addHeapObject(ret);
5204
5288
  }
5205
5289
 
5206
- export function __wbg_set_2803286624ebb516() {
5290
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5291
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5292
+ }
5293
+
5294
+ export function __wbg_set_5235cc0f26ed539b() {
5207
5295
  return handleError(function (arg0, arg1, arg2, arg3) {
5208
5296
  let deferred0_0;
5209
5297
  let deferred0_1;
@@ -5218,7 +5306,7 @@ export function __wbg_set_2803286624ebb516() {
5218
5306
  }, arguments);
5219
5307
  }
5220
5308
 
5221
- export function __wbg_set_30c6d49ef3e5915f() {
5309
+ export function __wbg_set_7f395f02ecd2904e() {
5222
5310
  return handleError(function (arg0, arg1, arg2, arg3) {
5223
5311
  let deferred0_0;
5224
5312
  let deferred0_1;
@@ -5233,10 +5321,6 @@ export function __wbg_set_30c6d49ef3e5915f() {
5233
5321
  }, arguments);
5234
5322
  }
5235
5323
 
5236
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5237
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5238
- }
5239
-
5240
5324
  export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5241
5325
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5242
5326
  return addHeapObject(ret);
@@ -5425,13 +5509,13 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
5425
5509
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5426
5510
  }
5427
5511
 
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`.
5512
+ export function __wbindgen_cast_1e9dc1058b799ead(arg0, arg1) {
5513
+ // 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`.
5430
5514
  const ret = makeMutClosure(
5431
5515
  arg0,
5432
5516
  arg1,
5433
- wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5434
- wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb,
5517
+ wasm.wasm_bindgen__closure__destroy__h6cdc1ac3a8dcb5bd,
5518
+ wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
5435
5519
  );
5436
5520
  return addHeapObject(ret);
5437
5521
  }
@@ -5442,17 +5526,6 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5442
5526
  return addHeapObject(ret);
5443
5527
  }
5444
5528
 
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`.
5447
- const ret = makeMutClosure(
5448
- arg0,
5449
- arg1,
5450
- wasm.wasm_bindgen__closure__destroy__hd2baf0154e030ab9,
5451
- wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb,
5452
- );
5453
- return addHeapObject(ret);
5454
- }
5455
-
5456
5529
  export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
5457
5530
  // Cast intrinsic for `U64 -> Externref`.
5458
5531
  const ret = BigInt.asUintN(64, arg0);
@@ -5492,23 +5565,23 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
5492
5565
  return addHeapObject(ret);
5493
5566
  }
5494
5567
 
5495
- export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5496
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5497
- const ret = getArrayU8FromWasm0(arg0, arg1);
5498
- return addHeapObject(ret);
5499
- }
5500
-
5501
- export function __wbindgen_cast_d49c305f67640cb1(arg0, arg1) {
5502
- // 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`.
5568
+ export function __wbindgen_cast_c5e8bf91c85dc4ef(arg0, arg1) {
5569
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5503
5570
  const ret = makeMutClosure(
5504
5571
  arg0,
5505
5572
  arg1,
5506
- wasm.wasm_bindgen__closure__destroy__hd2baf0154e030ab9,
5507
- wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06,
5573
+ wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5574
+ wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
5508
5575
  );
5509
5576
  return addHeapObject(ret);
5510
5577
  }
5511
5578
 
5579
+ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5580
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5581
+ const ret = getArrayU8FromWasm0(arg0, arg1);
5582
+ return addHeapObject(ret);
5583
+ }
5584
+
5512
5585
  export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
5513
5586
  // Cast intrinsic for `F64 -> Externref`.
5514
5587
  const ret = arg0;
@@ -5526,6 +5599,17 @@ export function __wbindgen_cast_d87bfd09ab1288e4(arg0, arg1) {
5526
5599
  return addHeapObject(ret);
5527
5600
  }
5528
5601
 
5602
+ export function __wbindgen_cast_daac1d8e48fc3ba0(arg0, arg1) {
5603
+ // 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`.
5604
+ const ret = makeMutClosure(
5605
+ arg0,
5606
+ arg1,
5607
+ wasm.wasm_bindgen__closure__destroy__h6cdc1ac3a8dcb5bd,
5608
+ wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8,
5609
+ );
5610
+ return addHeapObject(ret);
5611
+ }
5612
+
5529
5613
  export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
5530
5614
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5531
5615
  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 wasm_bindgen__convert__closures_____invoke__hb0cefc4a47b27ccb: (
454
+ export const wasm_bindgen__convert__closures_____invoke__hbc1220c6b5cbd1c8: (
446
455
  a: number,
447
456
  b: number,
448
457
  c: number,
458
+ d: number,
449
459
  ) => void;
450
- export const wasm_bindgen__closure__destroy__hd2baf0154e030ab9: (a: number, b: number) => void;
460
+ export const wasm_bindgen__closure__destroy__h6cdc1ac3a8dcb5bd: (a: number, b: number) => void;
451
461
  export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
452
462
  a: number,
453
463
  b: number,
454
464
  ) => void;
455
465
  export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
456
- export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
457
- export const wasm_bindgen__convert__closures_____invoke__h59c036539ecefa06: (
466
+ export const wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5: (
458
467
  a: number,
459
468
  b: number,
460
469
  c: number,
461
- d: number,
462
470
  ) => void;
471
+ export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
463
472
  export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
464
473
  a: number,
465
474
  b: number,