@bitwarden/sdk-internal 0.2.0-main.214 → 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.
- package/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +5 -0
- package/bitwarden_wasm_internal_bg.js +21 -20
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +7 -7
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +5 -0
- package/node/bitwarden_wasm_internal.js +21 -20
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +7 -7
- package/package.json +1 -1
|
@@ -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.
|
|
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);
|
|
@@ -3319,7 +3320,19 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
3319
3320
|
return ret;
|
|
3320
3321
|
};
|
|
3321
3322
|
|
|
3322
|
-
module.exports.
|
|
3323
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
3324
|
+
return handleError(function (arg0, arg1) {
|
|
3325
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3326
|
+
return addHeapObject(ret);
|
|
3327
|
+
}, arguments);
|
|
3328
|
+
};
|
|
3329
|
+
|
|
3330
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
3331
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3332
|
+
return addHeapObject(ret);
|
|
3333
|
+
};
|
|
3334
|
+
|
|
3335
|
+
module.exports.__wbg_get_fad77e176f95eda1 = function () {
|
|
3323
3336
|
return handleError(function (arg0, arg1, arg2) {
|
|
3324
3337
|
let deferred0_0;
|
|
3325
3338
|
let deferred0_1;
|
|
@@ -3334,18 +3347,6 @@ module.exports.__wbg_get_16fcc3ef544fe205 = function () {
|
|
|
3334
3347
|
}, arguments);
|
|
3335
3348
|
};
|
|
3336
3349
|
|
|
3337
|
-
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
3338
|
-
return handleError(function (arg0, arg1) {
|
|
3339
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3340
|
-
return addHeapObject(ret);
|
|
3341
|
-
}, arguments);
|
|
3342
|
-
};
|
|
3343
|
-
|
|
3344
|
-
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
3345
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3346
|
-
return addHeapObject(ret);
|
|
3347
|
-
};
|
|
3348
|
-
|
|
3349
3350
|
module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function (arg0, arg1) {
|
|
3350
3351
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
3351
3352
|
return addHeapObject(ret);
|
|
@@ -3446,7 +3447,7 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
3446
3447
|
return ret;
|
|
3447
3448
|
};
|
|
3448
3449
|
|
|
3449
|
-
module.exports.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
};
|
|
Binary file
|
|
@@ -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,
|