@bitwarden/commercial-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/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 +8 -8
- 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 +7 -7
- package/package.json +1 -1
|
@@ -2453,18 +2453,22 @@ export class PureCrypto {
|
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Given a decrypted private RSA key PKCS8 DER this
|
|
2455
2455
|
* returns the corresponding public RSA key in DER format.
|
|
2456
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2456
2457
|
*/
|
|
2457
2458
|
static rsa_extract_public_key(private_key: Uint8Array): Uint8Array;
|
|
2458
2459
|
/**
|
|
2459
2460
|
* Generates a new RSA key pair and returns the private key
|
|
2461
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2460
2462
|
*/
|
|
2461
2463
|
static rsa_generate_keypair(): Uint8Array;
|
|
2462
2464
|
/**
|
|
2463
2465
|
* Decrypts data using RSAES-OAEP with SHA-1
|
|
2466
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2464
2467
|
*/
|
|
2465
2468
|
static rsa_decrypt_data(encrypted_data: Uint8Array, private_key: Uint8Array): Uint8Array;
|
|
2466
2469
|
/**
|
|
2467
2470
|
* Encrypts data using RSAES-OAEP with SHA-1
|
|
2471
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
2468
2472
|
*/
|
|
2469
2473
|
static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
|
|
2470
2474
|
}
|
|
@@ -868,6 +868,18 @@ export function isEncryptFileError(error) {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
+
function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
|
|
872
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
|
|
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__h35a8188fc7e541fe(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__h35a8188fc7e541fe(arg0, arg
|
|
|
887
899
|
}
|
|
888
900
|
}
|
|
889
901
|
|
|
890
|
-
function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
|
|
891
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
|
|
892
|
-
arg0,
|
|
893
|
-
arg1,
|
|
894
|
-
addHeapObject(arg2),
|
|
895
|
-
);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
899
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
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,
|
|
@@ -4106,6 +4106,7 @@ export class PureCrypto {
|
|
|
4106
4106
|
/**
|
|
4107
4107
|
* Given a decrypted private RSA key PKCS8 DER this
|
|
4108
4108
|
* returns the corresponding public RSA key in DER format.
|
|
4109
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4109
4110
|
* @param {Uint8Array} private_key
|
|
4110
4111
|
* @returns {Uint8Array}
|
|
4111
4112
|
*/
|
|
@@ -4131,6 +4132,7 @@ export class PureCrypto {
|
|
|
4131
4132
|
}
|
|
4132
4133
|
/**
|
|
4133
4134
|
* Generates a new RSA key pair and returns the private key
|
|
4135
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4134
4136
|
* @returns {Uint8Array}
|
|
4135
4137
|
*/
|
|
4136
4138
|
static rsa_generate_keypair() {
|
|
@@ -4153,6 +4155,7 @@ export class PureCrypto {
|
|
|
4153
4155
|
}
|
|
4154
4156
|
/**
|
|
4155
4157
|
* Decrypts data using RSAES-OAEP with SHA-1
|
|
4158
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4156
4159
|
* @param {Uint8Array} encrypted_data
|
|
4157
4160
|
* @param {Uint8Array} private_key
|
|
4158
4161
|
* @returns {Uint8Array}
|
|
@@ -4181,6 +4184,7 @@ export class PureCrypto {
|
|
|
4181
4184
|
}
|
|
4182
4185
|
/**
|
|
4183
4186
|
* Encrypts data using RSAES-OAEP with SHA-1
|
|
4187
|
+
* HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
|
|
4184
4188
|
* @param {Uint8Array} plain_data
|
|
4185
4189
|
* @param {Uint8Array} public_key
|
|
4186
4190
|
* @returns {Uint8Array}
|
|
@@ -4624,7 +4628,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
|
|
|
4624
4628
|
}, arguments);
|
|
4625
4629
|
}
|
|
4626
4630
|
|
|
4627
|
-
export function
|
|
4631
|
+
export function __wbg_cipher_54d9031d60850622(arg0) {
|
|
4628
4632
|
const ret = getObject(arg0).cipher;
|
|
4629
4633
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4630
4634
|
}
|
|
@@ -4717,7 +4721,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4717
4721
|
return addHeapObject(ret);
|
|
4718
4722
|
}
|
|
4719
4723
|
|
|
4720
|
-
export function
|
|
4724
|
+
export function __wbg_folder_2d6703d18bcf6b5f(arg0) {
|
|
4721
4725
|
const ret = getObject(arg0).folder;
|
|
4722
4726
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4723
4727
|
}
|
|
@@ -4750,7 +4754,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4750
4754
|
return ret;
|
|
4751
4755
|
}
|
|
4752
4756
|
|
|
4753
|
-
export function
|
|
4757
|
+
export function __wbg_get_7a7b765d166b78eb() {
|
|
4754
4758
|
return handleError(function (arg0, arg1, arg2) {
|
|
4755
4759
|
let deferred0_0;
|
|
4756
4760
|
let deferred0_1;
|
|
@@ -4770,7 +4774,12 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
|
4770
4774
|
return addHeapObject(ret);
|
|
4771
4775
|
}
|
|
4772
4776
|
|
|
4773
|
-
export function
|
|
4777
|
+
export function __wbg_get_access_token_16ca6a078a16a9e6(arg0) {
|
|
4778
|
+
const ret = getObject(arg0).get_access_token();
|
|
4779
|
+
return addHeapObject(ret);
|
|
4780
|
+
}
|
|
4781
|
+
|
|
4782
|
+
export function __wbg_get_d7c03a2a1838f895() {
|
|
4774
4783
|
return handleError(function (arg0, arg1, arg2) {
|
|
4775
4784
|
let deferred0_0;
|
|
4776
4785
|
let deferred0_1;
|
|
@@ -4785,11 +4794,6 @@ export function __wbg_get_7f59e4189b579885() {
|
|
|
4785
4794
|
}, arguments);
|
|
4786
4795
|
}
|
|
4787
4796
|
|
|
4788
|
-
export function __wbg_get_access_token_5d1676f62fd8cd77(arg0) {
|
|
4789
|
-
const ret = getObject(arg0).get_access_token();
|
|
4790
|
-
return addHeapObject(ret);
|
|
4791
|
-
}
|
|
4792
|
-
|
|
4793
4797
|
export function __wbg_get_efcb449f58ec27c2() {
|
|
4794
4798
|
return handleError(function (arg0, arg1) {
|
|
4795
4799
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
@@ -4981,14 +4985,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
4981
4985
|
return ret;
|
|
4982
4986
|
}
|
|
4983
4987
|
|
|
4984
|
-
export function
|
|
4988
|
+
export function __wbg_list_29517841961e05e3() {
|
|
4985
4989
|
return handleError(function (arg0) {
|
|
4986
4990
|
const ret = getObject(arg0).list();
|
|
4987
4991
|
return addHeapObject(ret);
|
|
4988
4992
|
}, arguments);
|
|
4989
4993
|
}
|
|
4990
4994
|
|
|
4991
|
-
export function
|
|
4995
|
+
export function __wbg_list_935b546af2d9b6de() {
|
|
4992
4996
|
return handleError(function (arg0) {
|
|
4993
4997
|
const ret = getObject(arg0).list();
|
|
4994
4998
|
return addHeapObject(ret);
|
|
@@ -5232,7 +5236,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
5232
5236
|
}, arguments);
|
|
5233
5237
|
}
|
|
5234
5238
|
|
|
5235
|
-
export function
|
|
5239
|
+
export function __wbg_remove_610f7f30b398d771() {
|
|
5236
5240
|
return handleError(function (arg0, arg1, arg2) {
|
|
5237
5241
|
let deferred0_0;
|
|
5238
5242
|
let deferred0_1;
|
|
@@ -5247,7 +5251,7 @@ export function __wbg_remove_47756c4838416808() {
|
|
|
5247
5251
|
}, arguments);
|
|
5248
5252
|
}
|
|
5249
5253
|
|
|
5250
|
-
export function
|
|
5254
|
+
export function __wbg_remove_d592b4ab55fa372d() {
|
|
5251
5255
|
return handleError(function (arg0, arg1, arg2) {
|
|
5252
5256
|
let deferred0_0;
|
|
5253
5257
|
let deferred0_1;
|
|
@@ -5293,7 +5297,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5293
5297
|
return addHeapObject(ret);
|
|
5294
5298
|
}
|
|
5295
5299
|
|
|
5296
|
-
export function
|
|
5300
|
+
export function __wbg_set_16779e1c12161eee() {
|
|
5297
5301
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5298
5302
|
let deferred0_0;
|
|
5299
5303
|
let deferred0_1;
|
|
@@ -5312,7 +5316,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
5312
5316
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5313
5317
|
}
|
|
5314
5318
|
|
|
5315
|
-
export function
|
|
5319
|
+
export function __wbg_set_6d45f26bc45340a7() {
|
|
5316
5320
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5317
5321
|
let deferred0_0;
|
|
5318
5322
|
let deferred0_1;
|
|
Binary file
|
|
@@ -451,24 +451,24 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
|
451
451
|
export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
452
452
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
453
453
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
454
|
-
export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
|
|
455
|
-
a: number,
|
|
456
|
-
b: number,
|
|
457
|
-
c: number,
|
|
458
|
-
d: number,
|
|
459
|
-
) => void;
|
|
460
|
-
export const wasm_bindgen__closure__destroy__hba496874d56e8206: (a: number, b: number) => void;
|
|
461
454
|
export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
|
|
462
455
|
a: number,
|
|
463
456
|
b: number,
|
|
464
457
|
c: number,
|
|
465
458
|
) => void;
|
|
459
|
+
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
466
460
|
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
467
461
|
a: number,
|
|
468
462
|
b: number,
|
|
469
463
|
) => void;
|
|
470
464
|
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
471
|
-
export const
|
|
465
|
+
export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
|
|
466
|
+
a: number,
|
|
467
|
+
b: number,
|
|
468
|
+
c: number,
|
|
469
|
+
d: number,
|
|
470
|
+
) => void;
|
|
471
|
+
export const wasm_bindgen__closure__destroy__hba496874d56e8206: (a: number, b: number) => void;
|
|
472
472
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
473
473
|
a: number,
|
|
474
474
|
b: number,
|