@bitwarden/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
  }
@@ -2424,13 +2430,22 @@ export class PureCrypto {
2424
2430
  master_key: Uint8Array,
2425
2431
  ): Uint8Array;
2426
2432
  /**
2427
- * Given an encrypted private RSA key and the symmetric key it is wrapped with, this returns
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
- encrypted_private_key: string,
2432
- wrapping_key: Uint8Array,
2433
- ): Uint8Array;
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.
@@ -858,10 +858,22 @@ exports.isEncryptFileError = function (error) {
858
858
  }
859
859
  };
860
860
 
861
- function wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(arg0, arg1, arg2) {
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__h3bed1aa0e3f56559(arg0, arg1, arg2) {
866
+ wasm.wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559(
867
+ arg0,
868
+ arg1,
869
+ addHeapObject(arg2),
870
+ );
871
+ }
872
+
873
+ function wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1(arg0, arg1, arg2) {
862
874
  try {
863
875
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
864
- wasm.wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(
876
+ wasm.wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1(
865
877
  retptr,
866
878
  arg0,
867
879
  arg1,
@@ -877,18 +889,6 @@ function wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(arg0, arg
877
889
  }
878
890
  }
879
891
 
880
- function wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(arg0, arg1, arg2) {
881
- wasm.wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(
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
  */
@@ -4040,24 +4053,95 @@ class PureCrypto {
4040
4053
  }
4041
4054
  }
4042
4055
  /**
4043
- * Given an encrypted private RSA key and the symmetric key it is wrapped with, this returns
4044
- * the corresponding public RSA key in DER format.
4045
- * @param {string} encrypted_private_key
4046
- * @param {Uint8Array} wrapping_key
4056
+ * Given a decrypted private RSA key PKCS8 DER this
4057
+ * returns the corresponding public RSA key in DER format.
4058
+ * @param {Uint8Array} private_key
4047
4059
  * @returns {Uint8Array}
4048
4060
  */
4049
- static rsa_extract_public_key(encrypted_private_key, wrapping_key) {
4061
+ static rsa_extract_public_key(private_key) {
4050
4062
  try {
4051
4063
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4052
- const ptr0 = passStringToWasm0(
4053
- encrypted_private_key,
4054
- wasm.__wbindgen_malloc,
4055
- wasm.__wbindgen_realloc,
4056
- );
4064
+ const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
4057
4065
  const len0 = WASM_VECTOR_LEN;
4058
- const ptr1 = passArray8ToWasm0(wrapping_key, wasm.__wbindgen_malloc);
4066
+ wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0);
4067
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4068
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4069
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4070
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
4071
+ if (r3) {
4072
+ throw takeObject(r2);
4073
+ }
4074
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
4075
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
4076
+ return v2;
4077
+ } finally {
4078
+ wasm.__wbindgen_add_to_stack_pointer(16);
4079
+ }
4080
+ }
4081
+ /**
4082
+ * Generates a new RSA key pair and returns the private key
4083
+ * @returns {Uint8Array}
4084
+ */
4085
+ static rsa_generate_keypair() {
4086
+ try {
4087
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4088
+ wasm.purecrypto_rsa_generate_keypair(retptr);
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 v1 = getArrayU8FromWasm0(r0, r1).slice();
4097
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
4098
+ return v1;
4099
+ } finally {
4100
+ wasm.__wbindgen_add_to_stack_pointer(16);
4101
+ }
4102
+ }
4103
+ /**
4104
+ * Decrypts data using RSAES-OAEP with SHA-1
4105
+ * @param {Uint8Array} encrypted_data
4106
+ * @param {Uint8Array} private_key
4107
+ * @returns {Uint8Array}
4108
+ */
4109
+ static rsa_decrypt_data(encrypted_data, private_key) {
4110
+ try {
4111
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4112
+ const ptr0 = passArray8ToWasm0(encrypted_data, wasm.__wbindgen_malloc);
4113
+ const len0 = WASM_VECTOR_LEN;
4114
+ const ptr1 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
4115
+ const len1 = WASM_VECTOR_LEN;
4116
+ wasm.purecrypto_rsa_decrypt_data(retptr, ptr0, len0, ptr1, len1);
4117
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4118
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4119
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4120
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
4121
+ if (r3) {
4122
+ throw takeObject(r2);
4123
+ }
4124
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
4125
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
4126
+ return v3;
4127
+ } finally {
4128
+ wasm.__wbindgen_add_to_stack_pointer(16);
4129
+ }
4130
+ }
4131
+ /**
4132
+ * Encrypts data using RSAES-OAEP with SHA-1
4133
+ * @param {Uint8Array} plain_data
4134
+ * @param {Uint8Array} public_key
4135
+ * @returns {Uint8Array}
4136
+ */
4137
+ static rsa_encrypt_data(plain_data, public_key) {
4138
+ try {
4139
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4140
+ const ptr0 = passArray8ToWasm0(plain_data, wasm.__wbindgen_malloc);
4141
+ const len0 = WASM_VECTOR_LEN;
4142
+ const ptr1 = passArray8ToWasm0(public_key, wasm.__wbindgen_malloc);
4059
4143
  const len1 = WASM_VECTOR_LEN;
4060
- wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0, ptr1, len1);
4144
+ wasm.purecrypto_rsa_encrypt_data(retptr, ptr0, len0, ptr1, len1);
4061
4145
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4062
4146
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4063
4147
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -4499,7 +4583,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4499
4583
  }, arguments);
4500
4584
  };
4501
4585
 
4502
- exports.__wbg_cipher_358be94305967293 = function (arg0) {
4586
+ exports.__wbg_cipher_1cdb0d79866a6837 = function (arg0) {
4503
4587
  const ret = getObject(arg0).cipher;
4504
4588
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4505
4589
  };
@@ -4592,7 +4676,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
4592
4676
  return addHeapObject(ret);
4593
4677
  };
4594
4678
 
4595
- exports.__wbg_folder_e747a38a52f09c9b = function (arg0) {
4679
+ exports.__wbg_folder_bf0beccb0458352a = function (arg0) {
4596
4680
  const ret = getObject(arg0).folder;
4597
4681
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4598
4682
  };
@@ -4619,7 +4703,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4619
4703
  return ret;
4620
4704
  };
4621
4705
 
4622
- exports.__wbg_get_10cebdc47b1c368b = function () {
4706
+ exports.__wbg_get_1b7efe6c2c00e86d = function () {
4623
4707
  return handleError(function (arg0, arg1, arg2) {
4624
4708
  let deferred0_0;
4625
4709
  let deferred0_1;
@@ -4634,7 +4718,12 @@ exports.__wbg_get_10cebdc47b1c368b = function () {
4634
4718
  }, arguments);
4635
4719
  };
4636
4720
 
4637
- exports.__wbg_get_486f71d3e5c28990 = function () {
4721
+ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4722
+ const ret = getObject(arg0)[arg1 >>> 0];
4723
+ return addHeapObject(ret);
4724
+ };
4725
+
4726
+ exports.__wbg_get_ab3c82eecdf4bc91 = function () {
4638
4727
  return handleError(function (arg0, arg1, arg2) {
4639
4728
  let deferred0_0;
4640
4729
  let deferred0_1;
@@ -4649,12 +4738,7 @@ exports.__wbg_get_486f71d3e5c28990 = function () {
4649
4738
  }, arguments);
4650
4739
  };
4651
4740
 
4652
- exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4653
- const ret = getObject(arg0)[arg1 >>> 0];
4654
- return addHeapObject(ret);
4655
- };
4656
-
4657
- exports.__wbg_get_access_token_40bd5ef30e4d38c3 = function (arg0) {
4741
+ exports.__wbg_get_access_token_418fcb38cdc8413d = function (arg0) {
4658
4742
  const ret = getObject(arg0).get_access_token();
4659
4743
  return addHeapObject(ret);
4660
4744
  };
@@ -4850,14 +4934,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
4850
4934
  return ret;
4851
4935
  };
4852
4936
 
4853
- exports.__wbg_list_17acf29205a70f15 = function () {
4937
+ exports.__wbg_list_056c98609a1fb3ef = function () {
4854
4938
  return handleError(function (arg0) {
4855
4939
  const ret = getObject(arg0).list();
4856
4940
  return addHeapObject(ret);
4857
4941
  }, arguments);
4858
4942
  };
4859
4943
 
4860
- exports.__wbg_list_bacb7b59e6125838 = function () {
4944
+ exports.__wbg_list_78accfdd0a91ad5f = function () {
4861
4945
  return handleError(function (arg0) {
4862
4946
  const ret = getObject(arg0).list();
4863
4947
  return addHeapObject(ret);
@@ -5101,7 +5185,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5101
5185
  }, arguments);
5102
5186
  };
5103
5187
 
5104
- exports.__wbg_remove_1e82e22a182f6e4c = function () {
5188
+ exports.__wbg_remove_2d6d9bd3eaac392b = function () {
5105
5189
  return handleError(function (arg0, arg1, arg2) {
5106
5190
  let deferred0_0;
5107
5191
  let deferred0_1;
@@ -5116,7 +5200,7 @@ exports.__wbg_remove_1e82e22a182f6e4c = function () {
5116
5200
  }, arguments);
5117
5201
  };
5118
5202
 
5119
- exports.__wbg_remove_fbc19e58b39676e4 = function () {
5203
+ exports.__wbg_remove_7648970db543e157 = function () {
5120
5204
  return handleError(function (arg0, arg1, arg2) {
5121
5205
  let deferred0_0;
5122
5206
  let deferred0_1;
@@ -5162,7 +5246,11 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5162
5246
  return addHeapObject(ret);
5163
5247
  };
5164
5248
 
5165
- exports.__wbg_set_2803286624ebb516 = function () {
5249
+ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5250
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5251
+ };
5252
+
5253
+ exports.__wbg_set_5235cc0f26ed539b = function () {
5166
5254
  return handleError(function (arg0, arg1, arg2, arg3) {
5167
5255
  let deferred0_0;
5168
5256
  let deferred0_1;
@@ -5177,7 +5265,7 @@ exports.__wbg_set_2803286624ebb516 = function () {
5177
5265
  }, arguments);
5178
5266
  };
5179
5267
 
5180
- exports.__wbg_set_30c6d49ef3e5915f = function () {
5268
+ exports.__wbg_set_7f395f02ecd2904e = function () {
5181
5269
  return handleError(function (arg0, arg1, arg2, arg3) {
5182
5270
  let deferred0_0;
5183
5271
  let deferred0_1;
@@ -5192,10 +5280,6 @@ exports.__wbg_set_30c6d49ef3e5915f = function () {
5192
5280
  }, arguments);
5193
5281
  };
5194
5282
 
5195
- exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5196
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5197
- };
5198
-
5199
5283
  exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5200
5284
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5201
5285
  return addHeapObject(ret);
@@ -5384,13 +5468,13 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
5384
5468
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5385
5469
  };
5386
5470
 
5387
- exports.__wbindgen_cast_1e9dc1058b799ead = function (arg0, arg1) {
5388
- // 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`.
5471
+ exports.__wbindgen_cast_1dc3b0d4f0abedd3 = function (arg0, arg1) {
5472
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5389
5473
  const ret = makeMutClosure(
5390
5474
  arg0,
5391
5475
  arg1,
5392
- wasm.wasm_bindgen__closure__destroy__h1470697583ce3ba3,
5393
- wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
5476
+ wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5477
+ wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559,
5394
5478
  );
5395
5479
  return addHeapObject(ret);
5396
5480
  };
@@ -5401,6 +5485,17 @@ exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5401
5485
  return addHeapObject(ret);
5402
5486
  };
5403
5487
 
5488
+ exports.__wbindgen_cast_4042b341512ce63a = function (arg0, arg1) {
5489
+ // 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`.
5490
+ const ret = makeMutClosure(
5491
+ arg0,
5492
+ arg1,
5493
+ wasm.wasm_bindgen__closure__destroy__h03de969722544a39,
5494
+ wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559,
5495
+ );
5496
+ return addHeapObject(ret);
5497
+ };
5498
+
5404
5499
  exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
5405
5500
  // Cast intrinsic for `U64 -> Externref`.
5406
5501
  const ret = BigInt.asUintN(64, arg0);
@@ -5440,23 +5535,23 @@ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5440
5535
  return addHeapObject(ret);
5441
5536
  };
5442
5537
 
5443
- exports.__wbindgen_cast_c5e8bf91c85dc4ef = function (arg0, arg1) {
5444
- // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5538
+ exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5539
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5540
+ const ret = getArrayU8FromWasm0(arg0, arg1);
5541
+ return addHeapObject(ret);
5542
+ };
5543
+
5544
+ exports.__wbindgen_cast_d49c305f67640cb1 = function (arg0, arg1) {
5545
+ // 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`.
5445
5546
  const ret = makeMutClosure(
5446
5547
  arg0,
5447
5548
  arg1,
5448
- wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5449
- wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
5549
+ wasm.wasm_bindgen__closure__destroy__h03de969722544a39,
5550
+ wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1,
5450
5551
  );
5451
5552
  return addHeapObject(ret);
5452
5553
  };
5453
5554
 
5454
- exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5455
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5456
- const ret = getArrayU8FromWasm0(arg0, arg1);
5457
- return addHeapObject(ret);
5458
- };
5459
-
5460
5555
  exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
5461
5556
  // Cast intrinsic for `F64 -> Externref`.
5462
5557
  const ret = arg0;
@@ -5474,17 +5569,6 @@ exports.__wbindgen_cast_d87bfd09ab1288e4 = function (arg0, arg1) {
5474
5569
  return addHeapObject(ret);
5475
5570
  };
5476
5571
 
5477
- exports.__wbindgen_cast_daac1d8e48fc3ba0 = function (arg0, arg1) {
5478
- // 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`.
5479
- const ret = makeMutClosure(
5480
- arg0,
5481
- arg1,
5482
- wasm.wasm_bindgen__closure__destroy__h1470697583ce3ba3,
5483
- wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5,
5484
- );
5485
- return addHeapObject(ret);
5486
- };
5487
-
5488
5572
  exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
5489
5573
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5490
5574
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -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,24 +447,24 @@ 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 wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5: (
450
+ export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
442
451
  a: number,
443
452
  b: number,
444
- c: number,
445
- d: number,
446
453
  ) => void;
447
- export const wasm_bindgen__closure__destroy__h1470697583ce3ba3: (a: number, b: number) => void;
448
- export const wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5: (
454
+ export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
455
+ export const wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559: (
449
456
  a: number,
450
457
  b: number,
451
458
  c: number,
452
459
  ) => void;
453
- export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
460
+ export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
461
+ export const wasm_bindgen__closure__destroy__h03de969722544a39: (a: number, b: number) => void;
462
+ export const wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1: (
454
463
  a: number,
455
464
  b: number,
465
+ c: number,
466
+ d: number,
456
467
  ) => void;
457
- export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
458
- export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
459
468
  export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
460
469
  a: number,
461
470
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.401",
3
+ "version": "0.2.0-main.403",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",