@bitwarden/sdk-internal 0.2.0-main.213 → 0.2.0-main.215

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.
@@ -323,6 +323,7 @@ export interface EncryptionSettingsError extends Error {
323
323
  | "InvalidBase64"
324
324
  | "VaultLocked"
325
325
  | "InvalidPrivateKey"
326
+ | "InvalidSigningKey"
326
327
  | "MissingPrivateKey"
327
328
  | "UserIdAlreadySetError";
328
329
  }
@@ -437,6 +438,7 @@ export interface CryptoError extends Error {
437
438
  | "WrongKeyType"
438
439
  | "WrongCoseKeyId"
439
440
  | "InvalidNonceLength"
441
+ | "InvalidPadding"
440
442
  | "SignatureError"
441
443
  | "EncodingError";
442
444
  }
@@ -1450,6 +1452,9 @@ export class PureCrypto {
1450
1452
  static symmetric_decrypt_array_buffer(enc_bytes: Uint8Array, key: Uint8Array): Uint8Array;
1451
1453
  static symmetric_decrypt_filedata(enc_bytes: Uint8Array, key: Uint8Array): Uint8Array;
1452
1454
  static symmetric_encrypt_string(plain: string, key: Uint8Array): string;
1455
+ /**
1456
+ * DEPRECATED: Only used by send keys
1457
+ */
1453
1458
  static symmetric_encrypt_bytes(plain: Uint8Array, key: Uint8Array): string;
1454
1459
  static symmetric_encrypt_filedata(plain: Uint8Array, key: Uint8Array): Uint8Array;
1455
1460
  static decrypt_user_key_with_master_password(
@@ -2481,6 +2481,7 @@ class PureCrypto {
2481
2481
  }
2482
2482
  }
2483
2483
  /**
2484
+ * DEPRECATED: Only used by send keys
2484
2485
  * @param {Uint8Array} plain
2485
2486
  * @param {Uint8Array} key
2486
2487
  * @returns {string}
@@ -2756,7 +2757,7 @@ class PureCrypto {
2756
2757
  const len0 = WASM_VECTOR_LEN;
2757
2758
  const ptr1 = passArray8ToWasm0(wrapping_key, wasm.__wbindgen_malloc);
2758
2759
  const len1 = WASM_VECTOR_LEN;
2759
- wasm.purecrypto_wrap_decapsulation_key(retptr, ptr0, len0, ptr1, len1);
2760
+ wasm.purecrypto_wrap_encapsulation_key(retptr, ptr0, len0, ptr1, len1);
2760
2761
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2761
2762
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2762
2763
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -3331,7 +3332,7 @@ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
3331
3332
  return addHeapObject(ret);
3332
3333
  };
3333
3334
 
3334
- module.exports.__wbg_get_d80c1589d30c292a = function () {
3335
+ module.exports.__wbg_get_fad77e176f95eda1 = function () {
3335
3336
  return handleError(function (arg0, arg1, arg2) {
3336
3337
  let deferred0_0;
3337
3338
  let deferred0_1;
@@ -3446,7 +3447,7 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
3446
3447
  return ret;
3447
3448
  };
3448
3449
 
3449
- module.exports.__wbg_list_d11c20983c361f70 = function () {
3450
+ module.exports.__wbg_list_8b13bc6d05003111 = function () {
3450
3451
  return handleError(function (arg0) {
3451
3452
  const ret = getObject(arg0).list();
3452
3453
  return addHeapObject(ret);
@@ -3623,7 +3624,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
3623
3624
  }, arguments);
3624
3625
  };
3625
3626
 
3626
- module.exports.__wbg_remove_212f779b207179b5 = function () {
3627
+ module.exports.__wbg_remove_2ed4e37784aed0c6 = function () {
3627
3628
  return handleError(function (arg0, arg1, arg2) {
3628
3629
  let deferred0_0;
3629
3630
  let deferred0_1;
@@ -3674,7 +3675,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
3674
3675
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3675
3676
  };
3676
3677
 
3677
- module.exports.__wbg_set_7f4f0ad9ebd5a35e = function () {
3678
+ module.exports.__wbg_set_74d0405f1648d9e9 = function () {
3678
3679
  return handleError(function (arg0, arg1, arg2, arg3) {
3679
3680
  let deferred0_0;
3680
3681
  let deferred0_1;
@@ -3868,17 +3869,17 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
3868
3869
  return ret;
3869
3870
  };
3870
3871
 
3871
- module.exports.__wbindgen_closure_wrapper2827 = function (arg0, arg1, arg2) {
3872
+ module.exports.__wbindgen_closure_wrapper2839 = function (arg0, arg1, arg2) {
3872
3873
  const ret = makeMutClosure(arg0, arg1, 904, __wbg_adapter_50);
3873
3874
  return addHeapObject(ret);
3874
3875
  };
3875
3876
 
3876
- module.exports.__wbindgen_closure_wrapper3667 = function (arg0, arg1, arg2) {
3877
+ module.exports.__wbindgen_closure_wrapper3679 = function (arg0, arg1, arg2) {
3877
3878
  const ret = makeMutClosure(arg0, arg1, 988, __wbg_adapter_53);
3878
3879
  return addHeapObject(ret);
3879
3880
  };
3880
3881
 
3881
- module.exports.__wbindgen_closure_wrapper4085 = function (arg0, arg1, arg2) {
3882
+ module.exports.__wbindgen_closure_wrapper4097 = function (arg0, arg1, arg2) {
3882
3883
  const ret = makeMutClosure(arg0, arg1, 1111, __wbg_adapter_56);
3883
3884
  return addHeapObject(ret);
3884
3885
  };
@@ -251,6 +251,13 @@ export const purecrypto_unwrap_symmetric_key: (
251
251
  d: number,
252
252
  e: number,
253
253
  ) => void;
254
+ export const purecrypto_wrap_encapsulation_key: (
255
+ a: number,
256
+ b: number,
257
+ c: number,
258
+ d: number,
259
+ e: number,
260
+ ) => void;
254
261
  export const purecrypto_wrap_decapsulation_key: (
255
262
  a: number,
256
263
  b: number,
@@ -297,13 +304,6 @@ export const purecrypto_verify_and_unwrap_signed_public_key: (
297
304
  export const generate_ssh_key: (a: number, b: number) => void;
298
305
  export const import_ssh_key: (a: number, b: number, c: number, d: number, e: number) => void;
299
306
  export const isTestError: (a: number) => number;
300
- export const purecrypto_wrap_encapsulation_key: (
301
- a: number,
302
- b: number,
303
- c: number,
304
- d: number,
305
- e: number,
306
- ) => void;
307
307
  export const purecrypto_unwrap_encapsulation_key: (
308
308
  a: number,
309
309
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.213",
3
+ "version": "0.2.0-main.215",
4
4
  "license": "GPL-3.0",
5
5
  "files": [
6
6
  "bitwarden_wasm_internal_bg.js",