@bitwarden/sdk-internal 0.2.0-main.404 → 0.2.0-main.405
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 +4 -0
- package/bitwarden_wasm_internal_bg.js +31 -27
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +4 -4
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +4 -0
- package/node/bitwarden_wasm_internal.js +31 -27
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +6 -6
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7f09fd2f4c29f4627263bcb2dacb9a3ea6599687
|
|
@@ -2432,18 +2432,22 @@ export class PureCrypto {
|
|
|
2432
2432
|
/**
|
|
2433
2433
|
* Given a decrypted private RSA key PKCS8 DER this
|
|
2434
2434
|
* returns the corresponding public RSA key in DER format.
|
|
2435
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2435
2436
|
*/
|
|
2436
2437
|
static rsa_extract_public_key(private_key: Uint8Array): Uint8Array;
|
|
2437
2438
|
/**
|
|
2438
2439
|
* Generates a new RSA key pair and returns the private key
|
|
2440
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2439
2441
|
*/
|
|
2440
2442
|
static rsa_generate_keypair(): Uint8Array;
|
|
2441
2443
|
/**
|
|
2442
2444
|
* Decrypts data using RSAES-OAEP with SHA-1
|
|
2445
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2443
2446
|
*/
|
|
2444
2447
|
static rsa_decrypt_data(encrypted_data: Uint8Array, private_key: Uint8Array): Uint8Array;
|
|
2445
2448
|
/**
|
|
2446
2449
|
* Encrypts data using RSAES-OAEP with SHA-1
|
|
2450
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2447
2451
|
*/
|
|
2448
2452
|
static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
|
|
2449
2453
|
}
|
|
@@ -868,6 +868,18 @@ export function isEncryptFileError(error) {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
+
function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
|
|
872
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
|
|
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
|
+
|
|
871
883
|
function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg1, arg2) {
|
|
872
884
|
try {
|
|
873
885
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -887,18 +899,6 @@ function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg
|
|
|
887
899
|
}
|
|
888
900
|
}
|
|
889
901
|
|
|
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__h5c75b123e343f7aa(arg0, arg1, arg2) {
|
|
895
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
|
|
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,
|
|
@@ -4027,6 +4027,7 @@ export class PureCrypto {
|
|
|
4027
4027
|
/**
|
|
4028
4028
|
* Given a decrypted private RSA key PKCS8 DER this
|
|
4029
4029
|
* returns the corresponding public RSA key in DER format.
|
|
4030
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4030
4031
|
* @param {Uint8Array} private_key
|
|
4031
4032
|
* @returns {Uint8Array}
|
|
4032
4033
|
*/
|
|
@@ -4052,6 +4053,7 @@ export class PureCrypto {
|
|
|
4052
4053
|
}
|
|
4053
4054
|
/**
|
|
4054
4055
|
* Generates a new RSA key pair and returns the private key
|
|
4056
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4055
4057
|
* @returns {Uint8Array}
|
|
4056
4058
|
*/
|
|
4057
4059
|
static rsa_generate_keypair() {
|
|
@@ -4074,6 +4076,7 @@ export class PureCrypto {
|
|
|
4074
4076
|
}
|
|
4075
4077
|
/**
|
|
4076
4078
|
* Decrypts data using RSAES-OAEP with SHA-1
|
|
4079
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4077
4080
|
* @param {Uint8Array} encrypted_data
|
|
4078
4081
|
* @param {Uint8Array} private_key
|
|
4079
4082
|
* @returns {Uint8Array}
|
|
@@ -4102,6 +4105,7 @@ export class PureCrypto {
|
|
|
4102
4105
|
}
|
|
4103
4106
|
/**
|
|
4104
4107
|
* Encrypts data using RSAES-OAEP with SHA-1
|
|
4108
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4105
4109
|
* @param {Uint8Array} plain_data
|
|
4106
4110
|
* @param {Uint8Array} public_key
|
|
4107
4111
|
* @returns {Uint8Array}
|
|
@@ -4545,7 +4549,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
|
|
|
4545
4549
|
}, arguments);
|
|
4546
4550
|
}
|
|
4547
4551
|
|
|
4548
|
-
export function
|
|
4552
|
+
export function __wbg_cipher_54d9031d60850622(arg0) {
|
|
4549
4553
|
const ret = getObject(arg0).cipher;
|
|
4550
4554
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4551
4555
|
}
|
|
@@ -4638,7 +4642,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4638
4642
|
return addHeapObject(ret);
|
|
4639
4643
|
}
|
|
4640
4644
|
|
|
4641
|
-
export function
|
|
4645
|
+
export function __wbg_folder_2d6703d18bcf6b5f(arg0) {
|
|
4642
4646
|
const ret = getObject(arg0).folder;
|
|
4643
4647
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4644
4648
|
}
|
|
@@ -4671,7 +4675,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4671
4675
|
return ret;
|
|
4672
4676
|
}
|
|
4673
4677
|
|
|
4674
|
-
export function
|
|
4678
|
+
export function __wbg_get_7a7b765d166b78eb() {
|
|
4675
4679
|
return handleError(function (arg0, arg1, arg2) {
|
|
4676
4680
|
let deferred0_0;
|
|
4677
4681
|
let deferred0_1;
|
|
@@ -4691,7 +4695,12 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
|
4691
4695
|
return addHeapObject(ret);
|
|
4692
4696
|
}
|
|
4693
4697
|
|
|
4694
|
-
export function
|
|
4698
|
+
export function __wbg_get_access_token_16ca6a078a16a9e6(arg0) {
|
|
4699
|
+
const ret = getObject(arg0).get_access_token();
|
|
4700
|
+
return addHeapObject(ret);
|
|
4701
|
+
}
|
|
4702
|
+
|
|
4703
|
+
export function __wbg_get_d7c03a2a1838f895() {
|
|
4695
4704
|
return handleError(function (arg0, arg1, arg2) {
|
|
4696
4705
|
let deferred0_0;
|
|
4697
4706
|
let deferred0_1;
|
|
@@ -4706,11 +4715,6 @@ export function __wbg_get_7f59e4189b579885() {
|
|
|
4706
4715
|
}, arguments);
|
|
4707
4716
|
}
|
|
4708
4717
|
|
|
4709
|
-
export function __wbg_get_access_token_5d1676f62fd8cd77(arg0) {
|
|
4710
|
-
const ret = getObject(arg0).get_access_token();
|
|
4711
|
-
return addHeapObject(ret);
|
|
4712
|
-
}
|
|
4713
|
-
|
|
4714
4718
|
export function __wbg_get_efcb449f58ec27c2() {
|
|
4715
4719
|
return handleError(function (arg0, arg1) {
|
|
4716
4720
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
@@ -4902,14 +4906,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
4902
4906
|
return ret;
|
|
4903
4907
|
}
|
|
4904
4908
|
|
|
4905
|
-
export function
|
|
4909
|
+
export function __wbg_list_29517841961e05e3() {
|
|
4906
4910
|
return handleError(function (arg0) {
|
|
4907
4911
|
const ret = getObject(arg0).list();
|
|
4908
4912
|
return addHeapObject(ret);
|
|
4909
4913
|
}, arguments);
|
|
4910
4914
|
}
|
|
4911
4915
|
|
|
4912
|
-
export function
|
|
4916
|
+
export function __wbg_list_935b546af2d9b6de() {
|
|
4913
4917
|
return handleError(function (arg0) {
|
|
4914
4918
|
const ret = getObject(arg0).list();
|
|
4915
4919
|
return addHeapObject(ret);
|
|
@@ -5153,7 +5157,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
5153
5157
|
}, arguments);
|
|
5154
5158
|
}
|
|
5155
5159
|
|
|
5156
|
-
export function
|
|
5160
|
+
export function __wbg_remove_610f7f30b398d771() {
|
|
5157
5161
|
return handleError(function (arg0, arg1, arg2) {
|
|
5158
5162
|
let deferred0_0;
|
|
5159
5163
|
let deferred0_1;
|
|
@@ -5168,7 +5172,7 @@ export function __wbg_remove_47756c4838416808() {
|
|
|
5168
5172
|
}, arguments);
|
|
5169
5173
|
}
|
|
5170
5174
|
|
|
5171
|
-
export function
|
|
5175
|
+
export function __wbg_remove_d592b4ab55fa372d() {
|
|
5172
5176
|
return handleError(function (arg0, arg1, arg2) {
|
|
5173
5177
|
let deferred0_0;
|
|
5174
5178
|
let deferred0_1;
|
|
@@ -5214,7 +5218,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5214
5218
|
return addHeapObject(ret);
|
|
5215
5219
|
}
|
|
5216
5220
|
|
|
5217
|
-
export function
|
|
5221
|
+
export function __wbg_set_16779e1c12161eee() {
|
|
5218
5222
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5219
5223
|
let deferred0_0;
|
|
5220
5224
|
let deferred0_1;
|
|
@@ -5233,7 +5237,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
5233
5237
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5234
5238
|
}
|
|
5235
5239
|
|
|
5236
|
-
export function
|
|
5240
|
+
export function __wbg_set_6d45f26bc45340a7() {
|
|
5237
5241
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5238
5242
|
let deferred0_0;
|
|
5239
5243
|
let deferred0_1;
|
|
Binary file
|
|
@@ -447,11 +447,10 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
|
447
447
|
export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
448
448
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
449
449
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
450
|
-
export const
|
|
450
|
+
export const wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa: (
|
|
451
451
|
a: number,
|
|
452
452
|
b: number,
|
|
453
453
|
c: number,
|
|
454
|
-
d: number,
|
|
455
454
|
) => void;
|
|
456
455
|
export const wasm_bindgen__closure__destroy__h09d4e676b918dc23: (a: number, b: number) => void;
|
|
457
456
|
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
@@ -459,12 +458,13 @@ export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
|
459
458
|
b: number,
|
|
460
459
|
) => void;
|
|
461
460
|
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
462
|
-
export const
|
|
461
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
462
|
+
export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
|
|
463
463
|
a: number,
|
|
464
464
|
b: number,
|
|
465
465
|
c: number,
|
|
466
|
+
d: number,
|
|
466
467
|
) => void;
|
|
467
|
-
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
468
468
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
469
469
|
a: number,
|
|
470
470
|
b: number,
|