@wireapp/core-crypto 9.3.2 → 9.3.4
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/package.json +1 -1
- package/src/autogenerated/core-crypto-ffi_bg.wasm +0 -0
- package/src/autogenerated/core-crypto-ffi_bg.wasm.d.ts +198 -198
- package/src/corecrypto.d.ts +189 -189
- package/src/corecrypto.js +445 -445
package/src/corecrypto.js
CHANGED
|
@@ -345,16 +345,9 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
345
345
|
CLOSURE_DTORS.register(real, state, state);
|
|
346
346
|
return real;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
354
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
355
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
356
|
-
WASM_VECTOR_LEN = arg.length;
|
|
357
|
-
return ptr;
|
|
348
|
+
function ciphersuiteDefault() {
|
|
349
|
+
const ret = wasm.ciphersuiteDefault();
|
|
350
|
+
return ret;
|
|
358
351
|
}
|
|
359
352
|
function takeFromExternrefTable0(idx) {
|
|
360
353
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -368,9 +361,16 @@ function ciphersuiteFromU16(discriminant) {
|
|
|
368
361
|
}
|
|
369
362
|
return ret[0];
|
|
370
363
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
373
|
-
|
|
364
|
+
function _assertClass(instance, klass) {
|
|
365
|
+
if (!(instance instanceof klass)) {
|
|
366
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
370
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
371
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
372
|
+
WASM_VECTOR_LEN = arg.length;
|
|
373
|
+
return ptr;
|
|
374
374
|
}
|
|
375
375
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
376
376
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
@@ -381,6 +381,14 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
381
381
|
WASM_VECTOR_LEN = array.length;
|
|
382
382
|
return ptr;
|
|
383
383
|
}
|
|
384
|
+
function openDatabase(name, key) {
|
|
385
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
386
|
+
const len0 = WASM_VECTOR_LEN;
|
|
387
|
+
_assertClass(key, DatabaseKey);
|
|
388
|
+
var ptr1 = key.__destroy_into_raw();
|
|
389
|
+
const ret = wasm.openDatabase(ptr0, len0, ptr1);
|
|
390
|
+
return ret;
|
|
391
|
+
}
|
|
384
392
|
function migrateDatabaseKeyTypeToBytes(path, old_key, new_key) {
|
|
385
393
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
386
394
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -398,14 +406,6 @@ function updateDatabaseKey(name, old_key, new_key) {
|
|
|
398
406
|
const ret = wasm.updateDatabaseKey(ptr0, len0, old_key.__wbg_ptr, new_key.__wbg_ptr);
|
|
399
407
|
return ret;
|
|
400
408
|
}
|
|
401
|
-
function openDatabase(name, key) {
|
|
402
|
-
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
403
|
-
const len0 = WASM_VECTOR_LEN;
|
|
404
|
-
_assertClass(key, DatabaseKey);
|
|
405
|
-
var ptr1 = key.__destroy_into_raw();
|
|
406
|
-
const ret = wasm.openDatabase(ptr0, len0, ptr1);
|
|
407
|
-
return ret;
|
|
408
|
-
}
|
|
409
409
|
function version() {
|
|
410
410
|
let deferred1_0;
|
|
411
411
|
let deferred1_1;
|
|
@@ -422,17 +422,17 @@ function build_metadata() {
|
|
|
422
422
|
const ret = wasm.build_metadata();
|
|
423
423
|
return BuildMetadata.__wrap(ret);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
wasm.
|
|
425
|
+
function __wbg_adapter_8(arg0, arg1, arg2) {
|
|
426
|
+
wasm.closure2505_externref_shim(arg0, arg1, arg2);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
wasm.
|
|
428
|
+
function __wbg_adapter_19(arg0, arg1, arg2) {
|
|
429
|
+
wasm.closure2882_externref_shim(arg0, arg1, arg2);
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
wasm.
|
|
431
|
+
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
432
|
+
wasm.closure942_externref_shim(arg0, arg1, arg2);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
wasm.
|
|
434
|
+
function __wbg_adapter_479(arg0, arg1, arg2, arg3) {
|
|
435
|
+
wasm.closure2985_externref_shim(arg0, arg1, arg2, arg3);
|
|
436
436
|
}
|
|
437
437
|
var Ciphersuite = Object.freeze({
|
|
438
438
|
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
|
|
@@ -801,6 +801,12 @@ class ClientId {
|
|
|
801
801
|
const ptr = this.__destroy_into_raw();
|
|
802
802
|
wasm.__wbg_clientid_free(ptr, 0);
|
|
803
803
|
}
|
|
804
|
+
copyBytes() {
|
|
805
|
+
const ret = wasm.clientid_copyBytes(this.__wbg_ptr);
|
|
806
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
807
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
808
|
+
return v1;
|
|
809
|
+
}
|
|
804
810
|
constructor(bytes) {
|
|
805
811
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
806
812
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -809,12 +815,6 @@ class ClientId {
|
|
|
809
815
|
ClientIdFinalization.register(this, this.__wbg_ptr, this);
|
|
810
816
|
return this;
|
|
811
817
|
}
|
|
812
|
-
copyBytes() {
|
|
813
|
-
const ret = wasm.clientid_copyBytes(this.__wbg_ptr);
|
|
814
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
815
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
816
|
-
return v1;
|
|
817
|
-
}
|
|
818
818
|
}
|
|
819
819
|
if (Symbol.dispose)
|
|
820
820
|
ClientId.prototype[Symbol.dispose] = ClientId.prototype.free;
|
|
@@ -943,6 +943,12 @@ class ConversationId {
|
|
|
943
943
|
const ptr = this.__destroy_into_raw();
|
|
944
944
|
wasm.__wbg_conversationid_free(ptr, 0);
|
|
945
945
|
}
|
|
946
|
+
copyBytes() {
|
|
947
|
+
const ret = wasm.conversationid_copyBytes(this.__wbg_ptr);
|
|
948
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
949
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
950
|
+
return v1;
|
|
951
|
+
}
|
|
946
952
|
constructor(bytes) {
|
|
947
953
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
948
954
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -951,12 +957,6 @@ class ConversationId {
|
|
|
951
957
|
ConversationIdFinalization.register(this, this.__wbg_ptr, this);
|
|
952
958
|
return this;
|
|
953
959
|
}
|
|
954
|
-
copyBytes() {
|
|
955
|
-
const ret = wasm.conversationid_copyBytes(this.__wbg_ptr);
|
|
956
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
957
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
958
|
-
return v1;
|
|
959
|
-
}
|
|
960
960
|
}
|
|
961
961
|
if (Symbol.dispose)
|
|
962
962
|
ConversationId.prototype[Symbol.dispose] = ConversationId.prototype.free;
|
|
@@ -980,32 +980,66 @@ class CoreCrypto {
|
|
|
980
980
|
const ptr = this.__destroy_into_raw();
|
|
981
981
|
wasm.__wbg_corecrypto_free(ptr, 0);
|
|
982
982
|
}
|
|
983
|
-
|
|
984
|
-
const
|
|
983
|
+
static deferred_init(path, key, entropy_seed) {
|
|
984
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
985
|
+
const len0 = WASM_VECTOR_LEN;
|
|
986
|
+
_assertClass(key, DatabaseKey);
|
|
987
|
+
var ptr1 = key.__destroy_into_raw();
|
|
988
|
+
var ptr2 = isLikeNone(entropy_seed) ? 0 : passArray8ToWasm0(entropy_seed, wasm.__wbindgen_malloc);
|
|
989
|
+
var len2 = WASM_VECTOR_LEN;
|
|
990
|
+
const ret = wasm.corecrypto_deferred_init(ptr0, len0, ptr1, ptr2, len2);
|
|
985
991
|
return ret;
|
|
986
992
|
}
|
|
987
|
-
|
|
988
|
-
const
|
|
993
|
+
close() {
|
|
994
|
+
const ptr = this.__destroy_into_raw();
|
|
995
|
+
const ret = wasm.corecrypto_close(ptr);
|
|
989
996
|
return ret;
|
|
990
997
|
}
|
|
991
|
-
|
|
998
|
+
static async_new(path, key, client_id, ciphersuites, entropy_seed, nb_key_package) {
|
|
999
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1000
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1001
|
+
_assertClass(key, DatabaseKey);
|
|
1002
|
+
var ptr1 = key.__destroy_into_raw();
|
|
1003
|
+
let ptr2 = 0;
|
|
1004
|
+
if (!isLikeNone(client_id)) {
|
|
1005
|
+
_assertClass(client_id, ClientId);
|
|
1006
|
+
ptr2 = client_id.__destroy_into_raw();
|
|
1007
|
+
}
|
|
1008
|
+
var ptr3 = isLikeNone(ciphersuites) ? 0 : passArrayJsValueToWasm0(ciphersuites, wasm.__wbindgen_malloc);
|
|
1009
|
+
var len3 = WASM_VECTOR_LEN;
|
|
1010
|
+
var ptr4 = isLikeNone(entropy_seed) ? 0 : passArray8ToWasm0(entropy_seed, wasm.__wbindgen_malloc);
|
|
1011
|
+
var len4 = WASM_VECTOR_LEN;
|
|
1012
|
+
const ret = wasm.corecrypto_async_new(ptr0, len0, ptr1, ptr2, ptr3, len3, ptr4, len4, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
|
1013
|
+
return ret;
|
|
1014
|
+
}
|
|
1015
|
+
reseed_rng(seed) {
|
|
1016
|
+
const ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc);
|
|
1017
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1018
|
+
const ret = wasm.corecrypto_reseed_rng(this.__wbg_ptr, ptr0, len0);
|
|
1019
|
+
return ret;
|
|
1020
|
+
}
|
|
1021
|
+
random_bytes(len) {
|
|
1022
|
+
const ret = wasm.corecrypto_random_bytes(this.__wbg_ptr, len);
|
|
1023
|
+
return ret;
|
|
1024
|
+
}
|
|
1025
|
+
get_client_ids(conversation_id) {
|
|
992
1026
|
_assertClass(conversation_id, ConversationId);
|
|
993
|
-
const ret = wasm.
|
|
1027
|
+
const ret = wasm.corecrypto_get_client_ids(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
994
1028
|
return ret;
|
|
995
1029
|
}
|
|
996
|
-
|
|
1030
|
+
export_secret_key(conversation_id, key_length) {
|
|
997
1031
|
_assertClass(conversation_id, ConversationId);
|
|
998
|
-
const ret = wasm.
|
|
1032
|
+
const ret = wasm.corecrypto_export_secret_key(this.__wbg_ptr, conversation_id.__wbg_ptr, key_length);
|
|
999
1033
|
return ret;
|
|
1000
1034
|
}
|
|
1001
|
-
|
|
1035
|
+
conversation_epoch(conversation_id) {
|
|
1002
1036
|
_assertClass(conversation_id, ConversationId);
|
|
1003
|
-
const ret = wasm.
|
|
1037
|
+
const ret = wasm.corecrypto_conversation_epoch(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1004
1038
|
return ret;
|
|
1005
1039
|
}
|
|
1006
|
-
|
|
1040
|
+
conversation_exists(conversation_id) {
|
|
1007
1041
|
_assertClass(conversation_id, ConversationId);
|
|
1008
|
-
const ret = wasm.
|
|
1042
|
+
const ret = wasm.corecrypto_conversation_exists(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1009
1043
|
return ret;
|
|
1010
1044
|
}
|
|
1011
1045
|
get_external_sender(conversation_id) {
|
|
@@ -1013,9 +1047,9 @@ class CoreCrypto {
|
|
|
1013
1047
|
const ret = wasm.corecrypto_get_external_sender(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1014
1048
|
return ret;
|
|
1015
1049
|
}
|
|
1016
|
-
|
|
1050
|
+
conversation_ciphersuite(conversation_id) {
|
|
1017
1051
|
_assertClass(conversation_id, ConversationId);
|
|
1018
|
-
const ret = wasm.
|
|
1052
|
+
const ret = wasm.corecrypto_conversation_ciphersuite(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1019
1053
|
return ret;
|
|
1020
1054
|
}
|
|
1021
1055
|
is_history_sharing_enabled(conversation_id) {
|
|
@@ -1023,11 +1057,22 @@ class CoreCrypto {
|
|
|
1023
1057
|
const ret = wasm.corecrypto_is_history_sharing_enabled(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1024
1058
|
return ret;
|
|
1025
1059
|
}
|
|
1026
|
-
|
|
1027
|
-
_assertClass(
|
|
1028
|
-
|
|
1029
|
-
const
|
|
1030
|
-
|
|
1060
|
+
provide_transport(callbacks) {
|
|
1061
|
+
_assertClass(callbacks, MlsTransport);
|
|
1062
|
+
var ptr0 = callbacks.__destroy_into_raw();
|
|
1063
|
+
const ret = wasm.corecrypto_provide_transport(this.__wbg_ptr, ptr0);
|
|
1064
|
+
return ret;
|
|
1065
|
+
}
|
|
1066
|
+
register_epoch_observer(epoch_observer) {
|
|
1067
|
+
_assertClass(epoch_observer, EpochObserver);
|
|
1068
|
+
var ptr0 = epoch_observer.__destroy_into_raw();
|
|
1069
|
+
const ret = wasm.corecrypto_register_epoch_observer(this.__wbg_ptr, ptr0);
|
|
1070
|
+
return ret;
|
|
1071
|
+
}
|
|
1072
|
+
register_history_observer(history_observer) {
|
|
1073
|
+
_assertClass(history_observer, HistoryObserver);
|
|
1074
|
+
var ptr0 = history_observer.__destroy_into_raw();
|
|
1075
|
+
const ret = wasm.corecrypto_register_history_observer(this.__wbg_ptr, ptr0);
|
|
1031
1076
|
return ret;
|
|
1032
1077
|
}
|
|
1033
1078
|
get_user_identities(conversation_id, user_ids) {
|
|
@@ -1037,29 +1082,28 @@ class CoreCrypto {
|
|
|
1037
1082
|
const ret = wasm.corecrypto_get_user_identities(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1038
1083
|
return ret;
|
|
1039
1084
|
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1085
|
+
get_device_identities(conversation_id, device_ids) {
|
|
1086
|
+
_assertClass(conversation_id, ConversationId);
|
|
1087
|
+
const ptr0 = passArrayJsValueToWasm0(device_ids, wasm.__wbindgen_malloc);
|
|
1088
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1089
|
+
const ret = wasm.corecrypto_get_device_identities(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1042
1090
|
return ret;
|
|
1043
1091
|
}
|
|
1044
1092
|
e2ei_is_enabled(ciphersuite) {
|
|
1045
1093
|
const ret = wasm.corecrypto_e2ei_is_enabled(this.__wbg_ptr, ciphersuite);
|
|
1046
1094
|
return ret;
|
|
1047
1095
|
}
|
|
1096
|
+
e2ei_is_pki_env_setup() {
|
|
1097
|
+
const ret = wasm.corecrypto_e2ei_is_pki_env_setup(this.__wbg_ptr);
|
|
1098
|
+
return ret;
|
|
1099
|
+
}
|
|
1048
1100
|
e2ei_conversation_state(conversation_id) {
|
|
1049
1101
|
_assertClass(conversation_id, ConversationId);
|
|
1050
1102
|
const ret = wasm.corecrypto_e2ei_conversation_state(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1051
1103
|
return ret;
|
|
1052
1104
|
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
var ptr0 = epoch_observer.__destroy_into_raw();
|
|
1056
|
-
const ret = wasm.corecrypto_register_epoch_observer(this.__wbg_ptr, ptr0);
|
|
1057
|
-
return ret;
|
|
1058
|
-
}
|
|
1059
|
-
register_history_observer(history_observer) {
|
|
1060
|
-
_assertClass(history_observer, HistoryObserver);
|
|
1061
|
-
var ptr0 = history_observer.__destroy_into_raw();
|
|
1062
|
-
const ret = wasm.corecrypto_register_history_observer(this.__wbg_ptr, ptr0);
|
|
1105
|
+
client_public_key(ciphersuite, credential_type) {
|
|
1106
|
+
const ret = wasm.corecrypto_client_public_key(this.__wbg_ptr, ciphersuite, credential_type);
|
|
1063
1107
|
return ret;
|
|
1064
1108
|
}
|
|
1065
1109
|
static set_logger(logger) {
|
|
@@ -1070,10 +1114,12 @@ class CoreCrypto {
|
|
|
1070
1114
|
static set_max_log_level(level) {
|
|
1071
1115
|
wasm.corecrypto_set_max_log_level(level);
|
|
1072
1116
|
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1117
|
+
transaction(command) {
|
|
1118
|
+
const ret = wasm.corecrypto_transaction(this.__wbg_ptr, command);
|
|
1119
|
+
return ret;
|
|
1120
|
+
}
|
|
1121
|
+
proteus_fingerprint() {
|
|
1122
|
+
const ret = wasm.corecrypto_proteus_fingerprint(this.__wbg_ptr);
|
|
1077
1123
|
return ret;
|
|
1078
1124
|
}
|
|
1079
1125
|
proteus_session_exists(session_id) {
|
|
@@ -1082,10 +1128,6 @@ class CoreCrypto {
|
|
|
1082
1128
|
const ret = wasm.corecrypto_proteus_session_exists(this.__wbg_ptr, ptr0, len0);
|
|
1083
1129
|
return ret;
|
|
1084
1130
|
}
|
|
1085
|
-
proteus_fingerprint() {
|
|
1086
|
-
const ret = wasm.corecrypto_proteus_fingerprint(this.__wbg_ptr);
|
|
1087
|
-
return ret;
|
|
1088
|
-
}
|
|
1089
1131
|
proteus_fingerprint_local(session_id) {
|
|
1090
1132
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1091
1133
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -1126,48 +1168,6 @@ class CoreCrypto {
|
|
|
1126
1168
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1127
1169
|
}
|
|
1128
1170
|
}
|
|
1129
|
-
random_bytes(len) {
|
|
1130
|
-
const ret = wasm.corecrypto_random_bytes(this.__wbg_ptr, len);
|
|
1131
|
-
return ret;
|
|
1132
|
-
}
|
|
1133
|
-
reseed_rng(seed) {
|
|
1134
|
-
const ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc);
|
|
1135
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1136
|
-
const ret = wasm.corecrypto_reseed_rng(this.__wbg_ptr, ptr0, len0);
|
|
1137
|
-
return ret;
|
|
1138
|
-
}
|
|
1139
|
-
static async_new(path, key, client_id, ciphersuites, entropy_seed, nb_key_package) {
|
|
1140
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1141
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1142
|
-
_assertClass(key, DatabaseKey);
|
|
1143
|
-
var ptr1 = key.__destroy_into_raw();
|
|
1144
|
-
let ptr2 = 0;
|
|
1145
|
-
if (!isLikeNone(client_id)) {
|
|
1146
|
-
_assertClass(client_id, ClientId);
|
|
1147
|
-
ptr2 = client_id.__destroy_into_raw();
|
|
1148
|
-
}
|
|
1149
|
-
var ptr3 = isLikeNone(ciphersuites) ? 0 : passArrayJsValueToWasm0(ciphersuites, wasm.__wbindgen_malloc);
|
|
1150
|
-
var len3 = WASM_VECTOR_LEN;
|
|
1151
|
-
var ptr4 = isLikeNone(entropy_seed) ? 0 : passArray8ToWasm0(entropy_seed, wasm.__wbindgen_malloc);
|
|
1152
|
-
var len4 = WASM_VECTOR_LEN;
|
|
1153
|
-
const ret = wasm.corecrypto_async_new(ptr0, len0, ptr1, ptr2, ptr3, len3, ptr4, len4, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
|
1154
|
-
return ret;
|
|
1155
|
-
}
|
|
1156
|
-
static deferred_init(path, key, entropy_seed) {
|
|
1157
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1158
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1159
|
-
_assertClass(key, DatabaseKey);
|
|
1160
|
-
var ptr1 = key.__destroy_into_raw();
|
|
1161
|
-
var ptr2 = isLikeNone(entropy_seed) ? 0 : passArray8ToWasm0(entropy_seed, wasm.__wbindgen_malloc);
|
|
1162
|
-
var len2 = WASM_VECTOR_LEN;
|
|
1163
|
-
const ret = wasm.corecrypto_deferred_init(ptr0, len0, ptr1, ptr2, len2);
|
|
1164
|
-
return ret;
|
|
1165
|
-
}
|
|
1166
|
-
close() {
|
|
1167
|
-
const ptr = this.__destroy_into_raw();
|
|
1168
|
-
const ret = wasm.corecrypto_close(ptr);
|
|
1169
|
-
return ret;
|
|
1170
|
-
}
|
|
1171
1171
|
static history_client(history_secret) {
|
|
1172
1172
|
_assertClass(history_secret, HistorySecret);
|
|
1173
1173
|
var ptr0 = history_secret.__destroy_into_raw();
|
|
@@ -1197,137 +1197,113 @@ class CoreCryptoContext {
|
|
|
1197
1197
|
const ptr = this.__destroy_into_raw();
|
|
1198
1198
|
wasm.__wbg_corecryptocontext_free(ptr, 0);
|
|
1199
1199
|
}
|
|
1200
|
-
|
|
1201
|
-
const
|
|
1202
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1203
|
-
const ptr1 = passStringToWasm0(display_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1204
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1205
|
-
const ptr2 = passStringToWasm0(handle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1206
|
-
const len2 = WASM_VECTOR_LEN;
|
|
1207
|
-
var ptr3 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1208
|
-
var len3 = WASM_VECTOR_LEN;
|
|
1209
|
-
const ret = wasm.corecryptocontext_e2ei_new_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, expiry_sec, ciphersuite);
|
|
1200
|
+
random_bytes(len) {
|
|
1201
|
+
const ret = wasm.corecryptocontext_random_bytes(this.__wbg_ptr, len);
|
|
1210
1202
|
return ret;
|
|
1211
1203
|
}
|
|
1212
|
-
|
|
1213
|
-
const
|
|
1204
|
+
get_data() {
|
|
1205
|
+
const ret = wasm.corecryptocontext_get_data(this.__wbg_ptr);
|
|
1206
|
+
return ret;
|
|
1207
|
+
}
|
|
1208
|
+
set_data(data) {
|
|
1209
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
1214
1210
|
const len0 = WASM_VECTOR_LEN;
|
|
1215
|
-
const
|
|
1216
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1217
|
-
var ptr2 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1218
|
-
var len2 = WASM_VECTOR_LEN;
|
|
1219
|
-
const ret = wasm.corecryptocontext_e2ei_new_activation_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, expiry_sec, ciphersuite);
|
|
1211
|
+
const ret = wasm.corecryptocontext_set_data(this.__wbg_ptr, ptr0, len0);
|
|
1220
1212
|
return ret;
|
|
1221
1213
|
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
var ptr1 = isLikeNone(handle) ? 0 : passStringToWasm0(handle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1226
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1227
|
-
var ptr2 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1228
|
-
var len2 = WASM_VECTOR_LEN;
|
|
1229
|
-
const ret = wasm.corecryptocontext_e2ei_new_rotate_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, expiry_sec, ciphersuite);
|
|
1230
|
-
return ret;
|
|
1231
|
-
}
|
|
1232
|
-
e2ei_register_acme_ca(trust_anchor_pem) {
|
|
1233
|
-
const ptr0 = passStringToWasm0(trust_anchor_pem, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1234
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1235
|
-
const ret = wasm.corecryptocontext_e2ei_register_acme_ca(this.__wbg_ptr, ptr0, len0);
|
|
1214
|
+
get_client_ids(conversation_id) {
|
|
1215
|
+
_assertClass(conversation_id, ConversationId);
|
|
1216
|
+
const ret = wasm.corecryptocontext_get_client_ids(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1236
1217
|
return ret;
|
|
1237
1218
|
}
|
|
1238
|
-
|
|
1239
|
-
|
|
1219
|
+
decrypt_message(conversation_id, payload) {
|
|
1220
|
+
_assertClass(conversation_id, ConversationId);
|
|
1221
|
+
const ptr0 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1240
1222
|
const len0 = WASM_VECTOR_LEN;
|
|
1241
|
-
const ret = wasm.
|
|
1223
|
+
const ret = wasm.corecryptocontext_decrypt_message(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1242
1224
|
return ret;
|
|
1243
1225
|
}
|
|
1244
|
-
|
|
1245
|
-
|
|
1226
|
+
encrypt_message(conversation_id, message) {
|
|
1227
|
+
_assertClass(conversation_id, ConversationId);
|
|
1228
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
1246
1229
|
const len0 = WASM_VECTOR_LEN;
|
|
1247
|
-
const
|
|
1248
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1249
|
-
const ret = wasm.corecryptocontext_e2ei_register_crl(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1230
|
+
const ret = wasm.corecryptocontext_encrypt_message(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1250
1231
|
return ret;
|
|
1251
1232
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
var ptr0 = enrollment.__destroy_into_raw();
|
|
1255
|
-
const ptr1 = passStringToWasm0(certificate_chain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1256
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1257
|
-
const ret = wasm.corecryptocontext_e2ei_mls_init_only(this.__wbg_ptr, ptr0, ptr1, len1, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
|
1233
|
+
client_public_key(ciphersuite, credential_type) {
|
|
1234
|
+
const ret = wasm.corecryptocontext_client_public_key(this.__wbg_ptr, ciphersuite, credential_type);
|
|
1258
1235
|
return ret;
|
|
1259
1236
|
}
|
|
1260
|
-
|
|
1237
|
+
export_secret_key(conversation_id, key_length) {
|
|
1261
1238
|
_assertClass(conversation_id, ConversationId);
|
|
1262
|
-
const ret = wasm.
|
|
1239
|
+
const ret = wasm.corecryptocontext_export_secret_key(this.__wbg_ptr, conversation_id.__wbg_ptr, key_length);
|
|
1263
1240
|
return ret;
|
|
1264
1241
|
}
|
|
1265
|
-
|
|
1266
|
-
_assertClass(
|
|
1267
|
-
|
|
1268
|
-
const ptr1 = passStringToWasm0(certificate_chain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1269
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1270
|
-
const ret = wasm.corecryptocontext_save_x509_credential(this.__wbg_ptr, ptr0, ptr1, len1);
|
|
1242
|
+
wipe_conversation(conversation_id) {
|
|
1243
|
+
_assertClass(conversation_id, ConversationId);
|
|
1244
|
+
const ret = wasm.corecryptocontext_wipe_conversation(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1271
1245
|
return ret;
|
|
1272
1246
|
}
|
|
1273
|
-
|
|
1274
|
-
const ret = wasm.
|
|
1247
|
+
client_keypackages(ciphersuite, credential_type, amount_requested) {
|
|
1248
|
+
const ret = wasm.corecryptocontext_client_keypackages(this.__wbg_ptr, ciphersuite, credential_type, amount_requested);
|
|
1275
1249
|
return ret;
|
|
1276
1250
|
}
|
|
1277
|
-
|
|
1278
|
-
_assertClass(
|
|
1279
|
-
|
|
1280
|
-
const ret = wasm.corecryptocontext_e2ei_enrollment_stash(this.__wbg_ptr, ptr0);
|
|
1251
|
+
conversation_epoch(conversation_id) {
|
|
1252
|
+
_assertClass(conversation_id, ConversationId);
|
|
1253
|
+
const ret = wasm.corecryptocontext_conversation_epoch(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1281
1254
|
return ret;
|
|
1282
1255
|
}
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
const
|
|
1286
|
-
const ret = wasm.corecryptocontext_e2ei_enrollment_stash_pop(this.__wbg_ptr, ptr0, len0);
|
|
1256
|
+
conversation_exists(conversation_id) {
|
|
1257
|
+
_assertClass(conversation_id, ConversationId);
|
|
1258
|
+
const ret = wasm.corecryptocontext_conversation_exists(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1287
1259
|
return ret;
|
|
1288
1260
|
}
|
|
1289
|
-
|
|
1261
|
+
create_conversation(conversation_id, creator_credential_type, config) {
|
|
1290
1262
|
_assertClass(conversation_id, ConversationId);
|
|
1291
|
-
|
|
1263
|
+
_assertClass(config, ConversationConfiguration);
|
|
1264
|
+
var ptr0 = config.__destroy_into_raw();
|
|
1265
|
+
const ret = wasm.corecryptocontext_create_conversation(this.__wbg_ptr, conversation_id.__wbg_ptr, creator_credential_type, ptr0);
|
|
1292
1266
|
return ret;
|
|
1293
1267
|
}
|
|
1294
|
-
|
|
1295
|
-
|
|
1268
|
+
get_external_sender(conversation_id) {
|
|
1269
|
+
_assertClass(conversation_id, ConversationId);
|
|
1270
|
+
const ret = wasm.corecryptocontext_get_external_sender(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1296
1271
|
return ret;
|
|
1297
1272
|
}
|
|
1298
|
-
|
|
1273
|
+
enable_history_sharing(conversation_id) {
|
|
1299
1274
|
_assertClass(conversation_id, ConversationId);
|
|
1300
|
-
const
|
|
1301
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1302
|
-
const ret = wasm.corecryptocontext_get_device_identities(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1275
|
+
const ret = wasm.corecryptocontext_enable_history_sharing(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1303
1276
|
return ret;
|
|
1304
1277
|
}
|
|
1305
|
-
|
|
1278
|
+
update_keying_material(conversation_id) {
|
|
1306
1279
|
_assertClass(conversation_id, ConversationId);
|
|
1307
|
-
const
|
|
1308
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1309
|
-
const ret = wasm.corecryptocontext_get_user_identities(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1280
|
+
const ret = wasm.corecryptocontext_update_keying_material(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1310
1281
|
return ret;
|
|
1311
1282
|
}
|
|
1312
|
-
|
|
1313
|
-
|
|
1283
|
+
disable_history_sharing(conversation_id) {
|
|
1284
|
+
_assertClass(conversation_id, ConversationId);
|
|
1285
|
+
const ret = wasm.corecryptocontext_disable_history_sharing(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1314
1286
|
return ret;
|
|
1315
1287
|
}
|
|
1316
|
-
|
|
1317
|
-
_assertClass(
|
|
1318
|
-
var ptr0 =
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
const ret = wasm.
|
|
1288
|
+
join_by_external_commit(group_info, custom_configuration, credential_type) {
|
|
1289
|
+
_assertClass(group_info, GroupInfo);
|
|
1290
|
+
var ptr0 = group_info.__destroy_into_raw();
|
|
1291
|
+
_assertClass(custom_configuration, CustomConfiguration);
|
|
1292
|
+
var ptr1 = custom_configuration.__destroy_into_raw();
|
|
1293
|
+
const ret = wasm.corecryptocontext_join_by_external_commit(this.__wbg_ptr, ptr0, ptr1, credential_type);
|
|
1322
1294
|
return ret;
|
|
1323
1295
|
}
|
|
1324
|
-
|
|
1325
|
-
|
|
1296
|
+
process_welcome_message(welcome_message, custom_configuration) {
|
|
1297
|
+
_assertClass(welcome_message, Welcome);
|
|
1298
|
+
var ptr0 = welcome_message.__destroy_into_raw();
|
|
1299
|
+
_assertClass(custom_configuration, CustomConfiguration);
|
|
1300
|
+
var ptr1 = custom_configuration.__destroy_into_raw();
|
|
1301
|
+
const ret = wasm.corecryptocontext_process_welcome_message(this.__wbg_ptr, ptr0, ptr1);
|
|
1326
1302
|
return ret;
|
|
1327
1303
|
}
|
|
1328
|
-
|
|
1304
|
+
commit_pending_proposals(conversation_id) {
|
|
1329
1305
|
_assertClass(conversation_id, ConversationId);
|
|
1330
|
-
const ret = wasm.
|
|
1306
|
+
const ret = wasm.corecryptocontext_commit_pending_proposals(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1331
1307
|
return ret;
|
|
1332
1308
|
}
|
|
1333
1309
|
conversation_ciphersuite(conversation_id) {
|
|
@@ -1335,176 +1311,206 @@ class CoreCryptoContext {
|
|
|
1335
1311
|
const ret = wasm.corecryptocontext_conversation_ciphersuite(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1336
1312
|
return ret;
|
|
1337
1313
|
}
|
|
1338
|
-
|
|
1314
|
+
add_clients_to_conversation(conversation_id, key_packages) {
|
|
1339
1315
|
_assertClass(conversation_id, ConversationId);
|
|
1340
|
-
const
|
|
1316
|
+
const ptr0 = passArrayJsValueToWasm0(key_packages, wasm.__wbindgen_malloc);
|
|
1317
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1318
|
+
const ret = wasm.corecryptocontext_add_clients_to_conversation(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1341
1319
|
return ret;
|
|
1342
1320
|
}
|
|
1343
|
-
|
|
1344
|
-
_assertClass(
|
|
1345
|
-
|
|
1321
|
+
mark_conversation_as_child_of(child_id, parent_id) {
|
|
1322
|
+
_assertClass(child_id, ConversationId);
|
|
1323
|
+
_assertClass(parent_id, ConversationId);
|
|
1324
|
+
const ret = wasm.corecryptocontext_mark_conversation_as_child_of(this.__wbg_ptr, child_id.__wbg_ptr, parent_id.__wbg_ptr);
|
|
1346
1325
|
return ret;
|
|
1347
1326
|
}
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
const ret = wasm.corecryptocontext_export_secret_key(this.__wbg_ptr, conversation_id.__wbg_ptr, key_length);
|
|
1327
|
+
client_valid_keypackages_count(ciphersuite, credential_type) {
|
|
1328
|
+
const ret = wasm.corecryptocontext_client_valid_keypackages_count(this.__wbg_ptr, ciphersuite, credential_type);
|
|
1351
1329
|
return ret;
|
|
1352
1330
|
}
|
|
1353
|
-
|
|
1331
|
+
remove_clients_from_conversation(conversation_id, clients) {
|
|
1354
1332
|
_assertClass(conversation_id, ConversationId);
|
|
1355
|
-
const
|
|
1333
|
+
const ptr0 = passArrayJsValueToWasm0(clients, wasm.__wbindgen_malloc);
|
|
1334
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1335
|
+
const ret = wasm.corecryptocontext_remove_clients_from_conversation(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1356
1336
|
return ret;
|
|
1357
1337
|
}
|
|
1358
|
-
|
|
1359
|
-
|
|
1338
|
+
mls_init(client_id, ciphersuites, nb_key_package) {
|
|
1339
|
+
_assertClass(client_id, ClientId);
|
|
1340
|
+
var ptr0 = client_id.__destroy_into_raw();
|
|
1341
|
+
const ptr1 = passArrayJsValueToWasm0(ciphersuites, wasm.__wbindgen_malloc);
|
|
1342
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1343
|
+
const ret = wasm.corecryptocontext_mls_init(this.__wbg_ptr, ptr0, ptr1, len1, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
|
1360
1344
|
return ret;
|
|
1361
1345
|
}
|
|
1362
|
-
|
|
1363
|
-
|
|
1346
|
+
e2ei_rotate(conversation_id) {
|
|
1347
|
+
_assertClass(conversation_id, ConversationId);
|
|
1348
|
+
const ret = wasm.corecryptocontext_e2ei_rotate(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1364
1349
|
return ret;
|
|
1365
1350
|
}
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
_assertClass(config, ConversationConfiguration);
|
|
1369
|
-
var ptr0 = config.__destroy_into_raw();
|
|
1370
|
-
const ret = wasm.corecryptocontext_create_conversation(this.__wbg_ptr, conversation_id.__wbg_ptr, creator_credential_type, ptr0);
|
|
1351
|
+
e2ei_is_enabled(ciphersuite) {
|
|
1352
|
+
const ret = wasm.corecryptocontext_e2ei_is_enabled(this.__wbg_ptr, ciphersuite);
|
|
1371
1353
|
return ret;
|
|
1372
1354
|
}
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
const ret = wasm.
|
|
1355
|
+
e2ei_register_crl(crl_dp, crl_der) {
|
|
1356
|
+
const ptr0 = passStringToWasm0(crl_dp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1357
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1358
|
+
const ptr1 = passArray8ToWasm0(crl_der, wasm.__wbindgen_malloc);
|
|
1359
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1360
|
+
const ret = wasm.corecryptocontext_e2ei_register_crl(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1379
1361
|
return ret;
|
|
1380
1362
|
}
|
|
1381
|
-
|
|
1382
|
-
_assertClass(
|
|
1383
|
-
|
|
1363
|
+
e2ei_mls_init_only(enrollment, certificate_chain, nb_key_package) {
|
|
1364
|
+
_assertClass(enrollment, FfiWireE2EIdentity);
|
|
1365
|
+
var ptr0 = enrollment.__destroy_into_raw();
|
|
1366
|
+
const ptr1 = passStringToWasm0(certificate_chain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1367
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1368
|
+
const ret = wasm.corecryptocontext_e2ei_mls_init_only(this.__wbg_ptr, ptr0, ptr1, len1, isLikeNone(nb_key_package) ? 4294967297 : nb_key_package >>> 0);
|
|
1369
|
+
return ret;
|
|
1370
|
+
}
|
|
1371
|
+
e2ei_new_enrollment(client_id, display_name, handle, team, expiry_sec, ciphersuite) {
|
|
1372
|
+
const ptr0 = passStringToWasm0(client_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1384
1373
|
const len0 = WASM_VECTOR_LEN;
|
|
1385
|
-
const
|
|
1374
|
+
const ptr1 = passStringToWasm0(display_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1375
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1376
|
+
const ptr2 = passStringToWasm0(handle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1377
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1378
|
+
var ptr3 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1379
|
+
var len3 = WASM_VECTOR_LEN;
|
|
1380
|
+
const ret = wasm.corecryptocontext_e2ei_new_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, expiry_sec, ciphersuite);
|
|
1386
1381
|
return ret;
|
|
1387
1382
|
}
|
|
1388
|
-
|
|
1383
|
+
get_user_identities(conversation_id, user_ids) {
|
|
1389
1384
|
_assertClass(conversation_id, ConversationId);
|
|
1390
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1385
|
+
const ptr0 = passArrayJsValueToWasm0(user_ids, wasm.__wbindgen_malloc);
|
|
1391
1386
|
const len0 = WASM_VECTOR_LEN;
|
|
1392
|
-
const ret = wasm.
|
|
1387
|
+
const ret = wasm.corecryptocontext_get_user_identities(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1393
1388
|
return ret;
|
|
1394
1389
|
}
|
|
1395
|
-
|
|
1396
|
-
_assertClass(
|
|
1397
|
-
|
|
1398
|
-
const
|
|
1390
|
+
save_x509_credential(enrollment, certificate_chain) {
|
|
1391
|
+
_assertClass(enrollment, FfiWireE2EIdentity);
|
|
1392
|
+
var ptr0 = enrollment.__destroy_into_raw();
|
|
1393
|
+
const ptr1 = passStringToWasm0(certificate_chain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1394
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1395
|
+
const ret = wasm.corecryptocontext_save_x509_credential(this.__wbg_ptr, ptr0, ptr1, len1);
|
|
1399
1396
|
return ret;
|
|
1400
1397
|
}
|
|
1401
|
-
|
|
1402
|
-
_assertClass(
|
|
1403
|
-
|
|
1398
|
+
e2ei_enrollment_stash(enrollment) {
|
|
1399
|
+
_assertClass(enrollment, FfiWireE2EIdentity);
|
|
1400
|
+
var ptr0 = enrollment.__destroy_into_raw();
|
|
1401
|
+
const ret = wasm.corecryptocontext_e2ei_enrollment_stash(this.__wbg_ptr, ptr0);
|
|
1404
1402
|
return ret;
|
|
1405
1403
|
}
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
const ret = wasm.corecryptocontext_commit_pending_proposals(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1404
|
+
e2ei_is_pki_env_setup() {
|
|
1405
|
+
const ret = wasm.corecryptocontext_e2ei_is_pki_env_setup(this.__wbg_ptr);
|
|
1409
1406
|
return ret;
|
|
1410
1407
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
const
|
|
1408
|
+
e2ei_register_acme_ca(trust_anchor_pem) {
|
|
1409
|
+
const ptr0 = passStringToWasm0(trust_anchor_pem, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1410
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1411
|
+
const ret = wasm.corecryptocontext_e2ei_register_acme_ca(this.__wbg_ptr, ptr0, len0);
|
|
1414
1412
|
return ret;
|
|
1415
1413
|
}
|
|
1416
|
-
|
|
1414
|
+
get_device_identities(conversation_id, device_ids) {
|
|
1417
1415
|
_assertClass(conversation_id, ConversationId);
|
|
1418
|
-
const ptr0 =
|
|
1416
|
+
const ptr0 = passArrayJsValueToWasm0(device_ids, wasm.__wbindgen_malloc);
|
|
1419
1417
|
const len0 = WASM_VECTOR_LEN;
|
|
1420
|
-
const ret = wasm.
|
|
1418
|
+
const ret = wasm.corecryptocontext_get_device_identities(this.__wbg_ptr, conversation_id.__wbg_ptr, ptr0, len0);
|
|
1421
1419
|
return ret;
|
|
1422
1420
|
}
|
|
1423
|
-
|
|
1421
|
+
e2ei_conversation_state(conversation_id) {
|
|
1424
1422
|
_assertClass(conversation_id, ConversationId);
|
|
1425
|
-
const
|
|
1423
|
+
const ret = wasm.corecryptocontext_e2ei_conversation_state(this.__wbg_ptr, conversation_id.__wbg_ptr);
|
|
1424
|
+
return ret;
|
|
1425
|
+
}
|
|
1426
|
+
delete_stale_key_packages(ciphersuite) {
|
|
1427
|
+
const ret = wasm.corecryptocontext_delete_stale_key_packages(this.__wbg_ptr, ciphersuite);
|
|
1428
|
+
return ret;
|
|
1429
|
+
}
|
|
1430
|
+
e2ei_enrollment_stash_pop(handle) {
|
|
1431
|
+
const ptr0 = passArray8ToWasm0(handle, wasm.__wbindgen_malloc);
|
|
1426
1432
|
const len0 = WASM_VECTOR_LEN;
|
|
1427
|
-
const ret = wasm.
|
|
1433
|
+
const ret = wasm.corecryptocontext_e2ei_enrollment_stash_pop(this.__wbg_ptr, ptr0, len0);
|
|
1428
1434
|
return ret;
|
|
1429
1435
|
}
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
var
|
|
1433
|
-
|
|
1434
|
-
var
|
|
1435
|
-
|
|
1436
|
+
e2ei_new_rotate_enrollment(display_name, handle, team, expiry_sec, ciphersuite) {
|
|
1437
|
+
var ptr0 = isLikeNone(display_name) ? 0 : passStringToWasm0(display_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1438
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1439
|
+
var ptr1 = isLikeNone(handle) ? 0 : passStringToWasm0(handle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1440
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1441
|
+
var ptr2 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1442
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1443
|
+
const ret = wasm.corecryptocontext_e2ei_new_rotate_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, expiry_sec, ciphersuite);
|
|
1436
1444
|
return ret;
|
|
1437
1445
|
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
const
|
|
1446
|
+
e2ei_register_intermediate_ca(cert_pem) {
|
|
1447
|
+
const ptr0 = passStringToWasm0(cert_pem, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1448
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1449
|
+
const ret = wasm.corecryptocontext_e2ei_register_intermediate_ca(this.__wbg_ptr, ptr0, len0);
|
|
1441
1450
|
return ret;
|
|
1442
1451
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
const
|
|
1452
|
+
e2ei_new_activation_enrollment(display_name, handle, team, expiry_sec, ciphersuite) {
|
|
1453
|
+
const ptr0 = passStringToWasm0(display_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1454
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1455
|
+
const ptr1 = passStringToWasm0(handle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1456
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1457
|
+
var ptr2 = isLikeNone(team) ? 0 : passStringToWasm0(team, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1458
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1459
|
+
const ret = wasm.corecryptocontext_e2ei_new_activation_enrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, expiry_sec, ciphersuite);
|
|
1446
1460
|
return ret;
|
|
1447
1461
|
}
|
|
1448
1462
|
proteus_init() {
|
|
1449
1463
|
const ret = wasm.corecryptocontext_proteus_init(this.__wbg_ptr);
|
|
1450
1464
|
return ret;
|
|
1451
1465
|
}
|
|
1452
|
-
|
|
1466
|
+
proteus_decrypt(session_id, ciphertext) {
|
|
1453
1467
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1454
1468
|
const len0 = WASM_VECTOR_LEN;
|
|
1455
|
-
const ptr1 = passArray8ToWasm0(
|
|
1469
|
+
const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
|
1456
1470
|
const len1 = WASM_VECTOR_LEN;
|
|
1457
|
-
const ret = wasm.
|
|
1471
|
+
const ret = wasm.corecryptocontext_proteus_decrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1458
1472
|
return ret;
|
|
1459
1473
|
}
|
|
1460
|
-
|
|
1474
|
+
proteus_encrypt(session_id, plaintext) {
|
|
1461
1475
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1462
1476
|
const len0 = WASM_VECTOR_LEN;
|
|
1463
|
-
const ptr1 = passArray8ToWasm0(
|
|
1477
|
+
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
|
1464
1478
|
const len1 = WASM_VECTOR_LEN;
|
|
1465
|
-
const ret = wasm.
|
|
1479
|
+
const ret = wasm.corecryptocontext_proteus_encrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1466
1480
|
return ret;
|
|
1467
1481
|
}
|
|
1468
|
-
|
|
1469
|
-
const
|
|
1470
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1471
|
-
const ret = wasm.corecryptocontext_proteus_session_save(this.__wbg_ptr, ptr0, len0);
|
|
1482
|
+
proteus_new_prekey(prekey_id) {
|
|
1483
|
+
const ret = wasm.corecryptocontext_proteus_new_prekey(this.__wbg_ptr, prekey_id);
|
|
1472
1484
|
return ret;
|
|
1473
1485
|
}
|
|
1474
|
-
|
|
1475
|
-
const
|
|
1476
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1477
|
-
const ret = wasm.corecryptocontext_proteus_session_delete(this.__wbg_ptr, ptr0, len0);
|
|
1486
|
+
proteus_fingerprint() {
|
|
1487
|
+
const ret = wasm.corecryptocontext_proteus_fingerprint(this.__wbg_ptr);
|
|
1478
1488
|
return ret;
|
|
1479
1489
|
}
|
|
1480
|
-
|
|
1490
|
+
proteus_decrypt_safe(session_id, ciphertext) {
|
|
1481
1491
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1482
1492
|
const len0 = WASM_VECTOR_LEN;
|
|
1483
|
-
const
|
|
1493
|
+
const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
|
1494
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1495
|
+
const ret = wasm.corecryptocontext_proteus_decrypt_safe(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1484
1496
|
return ret;
|
|
1485
1497
|
}
|
|
1486
|
-
|
|
1498
|
+
proteus_session_save(session_id) {
|
|
1487
1499
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1488
1500
|
const len0 = WASM_VECTOR_LEN;
|
|
1489
|
-
const
|
|
1490
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1491
|
-
const ret = wasm.corecryptocontext_proteus_decrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1501
|
+
const ret = wasm.corecryptocontext_proteus_session_save(this.__wbg_ptr, ptr0, len0);
|
|
1492
1502
|
return ret;
|
|
1493
1503
|
}
|
|
1494
|
-
|
|
1504
|
+
proteus_session_delete(session_id) {
|
|
1495
1505
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1496
1506
|
const len0 = WASM_VECTOR_LEN;
|
|
1497
|
-
const
|
|
1498
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1499
|
-
const ret = wasm.corecryptocontext_proteus_decrypt_safe(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1507
|
+
const ret = wasm.corecryptocontext_proteus_session_delete(this.__wbg_ptr, ptr0, len0);
|
|
1500
1508
|
return ret;
|
|
1501
1509
|
}
|
|
1502
|
-
|
|
1510
|
+
proteus_session_exists(session_id) {
|
|
1503
1511
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1504
1512
|
const len0 = WASM_VECTOR_LEN;
|
|
1505
|
-
const
|
|
1506
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1507
|
-
const ret = wasm.corecryptocontext_proteus_encrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1513
|
+
const ret = wasm.corecryptocontext_proteus_session_exists(this.__wbg_ptr, ptr0, len0);
|
|
1508
1514
|
return ret;
|
|
1509
1515
|
}
|
|
1510
1516
|
proteus_encrypt_batched(sessions, plaintext) {
|
|
@@ -1515,20 +1521,12 @@ class CoreCryptoContext {
|
|
|
1515
1521
|
const ret = wasm.corecryptocontext_proteus_encrypt_batched(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1516
1522
|
return ret;
|
|
1517
1523
|
}
|
|
1518
|
-
|
|
1519
|
-
const ret = wasm.
|
|
1520
|
-
return ret;
|
|
1521
|
-
}
|
|
1522
|
-
proteus_new_prekey_auto() {
|
|
1523
|
-
const ret = wasm.corecryptocontext_proteus_new_prekey_auto(this.__wbg_ptr);
|
|
1524
|
-
return ret;
|
|
1525
|
-
}
|
|
1526
|
-
proteus_last_resort_prekey() {
|
|
1527
|
-
const ret = wasm.corecryptocontext_proteus_last_resort_prekey(this.__wbg_ptr);
|
|
1524
|
+
proteus_new_prekey_auto() {
|
|
1525
|
+
const ret = wasm.corecryptocontext_proteus_new_prekey_auto(this.__wbg_ptr);
|
|
1528
1526
|
return ret;
|
|
1529
1527
|
}
|
|
1530
|
-
|
|
1531
|
-
const ret = wasm.
|
|
1528
|
+
proteus_reload_sessions() {
|
|
1529
|
+
const ret = wasm.corecryptocontext_proteus_reload_sessions(this.__wbg_ptr);
|
|
1532
1530
|
return ret;
|
|
1533
1531
|
}
|
|
1534
1532
|
proteus_fingerprint_local(session_id) {
|
|
@@ -1543,8 +1541,24 @@ class CoreCryptoContext {
|
|
|
1543
1541
|
const ret = wasm.corecryptocontext_proteus_fingerprint_remote(this.__wbg_ptr, ptr0, len0);
|
|
1544
1542
|
return ret;
|
|
1545
1543
|
}
|
|
1546
|
-
|
|
1547
|
-
const ret = wasm.
|
|
1544
|
+
proteus_last_resort_prekey() {
|
|
1545
|
+
const ret = wasm.corecryptocontext_proteus_last_resort_prekey(this.__wbg_ptr);
|
|
1546
|
+
return ret;
|
|
1547
|
+
}
|
|
1548
|
+
proteus_session_from_prekey(session_id, prekey) {
|
|
1549
|
+
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1550
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1551
|
+
const ptr1 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
|
1552
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1553
|
+
const ret = wasm.corecryptocontext_proteus_session_from_prekey(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1554
|
+
return ret;
|
|
1555
|
+
}
|
|
1556
|
+
proteus_session_from_message(session_id, envelope) {
|
|
1557
|
+
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1558
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1559
|
+
const ptr1 = passArray8ToWasm0(envelope, wasm.__wbindgen_malloc);
|
|
1560
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1561
|
+
const ret = wasm.corecryptocontext_proteus_session_from_message(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1548
1562
|
return ret;
|
|
1549
1563
|
}
|
|
1550
1564
|
static proteus_last_resort_prekey_id() {
|
|
@@ -1575,20 +1589,6 @@ class CoreCryptoContext {
|
|
|
1575
1589
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1576
1590
|
}
|
|
1577
1591
|
}
|
|
1578
|
-
set_data(data) {
|
|
1579
|
-
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
1580
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1581
|
-
const ret = wasm.corecryptocontext_set_data(this.__wbg_ptr, ptr0, len0);
|
|
1582
|
-
return ret;
|
|
1583
|
-
}
|
|
1584
|
-
get_data() {
|
|
1585
|
-
const ret = wasm.corecryptocontext_get_data(this.__wbg_ptr);
|
|
1586
|
-
return ret;
|
|
1587
|
-
}
|
|
1588
|
-
random_bytes(len) {
|
|
1589
|
-
const ret = wasm.corecryptocontext_random_bytes(this.__wbg_ptr, len);
|
|
1590
|
-
return ret;
|
|
1591
|
-
}
|
|
1592
1592
|
}
|
|
1593
1593
|
if (Symbol.dispose)
|
|
1594
1594
|
CoreCryptoContext.prototype[Symbol.dispose] = CoreCryptoContext.prototype.free;
|
|
@@ -1637,6 +1637,12 @@ class CrlRegistration {
|
|
|
1637
1637
|
const ptr = this.__destroy_into_raw();
|
|
1638
1638
|
wasm.__wbg_crlregistration_free(ptr, 0);
|
|
1639
1639
|
}
|
|
1640
|
+
constructor(dirty, expiration) {
|
|
1641
|
+
const ret = wasm.crlregistration_new(dirty, !isLikeNone(expiration), isLikeNone(expiration) ? BigInt(0) : expiration);
|
|
1642
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1643
|
+
CrlRegistrationFinalization.register(this, this.__wbg_ptr, this);
|
|
1644
|
+
return this;
|
|
1645
|
+
}
|
|
1640
1646
|
get dirty() {
|
|
1641
1647
|
const ret = wasm.__wbg_get_crlregistration_dirty(this.__wbg_ptr);
|
|
1642
1648
|
return ret !== 0;
|
|
@@ -1651,12 +1657,6 @@ class CrlRegistration {
|
|
|
1651
1657
|
set expiration(arg0) {
|
|
1652
1658
|
wasm.__wbg_set_crlregistration_expiration(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
1653
1659
|
}
|
|
1654
|
-
constructor(dirty, expiration) {
|
|
1655
|
-
const ret = wasm.crlregistration_new(dirty, !isLikeNone(expiration), isLikeNone(expiration) ? BigInt(0) : expiration);
|
|
1656
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1657
|
-
CrlRegistrationFinalization.register(this, this.__wbg_ptr, this);
|
|
1658
|
-
return this;
|
|
1659
|
-
}
|
|
1660
1660
|
}
|
|
1661
1661
|
if (Symbol.dispose)
|
|
1662
1662
|
CrlRegistration.prototype[Symbol.dispose] = CrlRegistration.prototype.free;
|
|
@@ -1680,6 +1680,12 @@ class CustomConfiguration {
|
|
|
1680
1680
|
const ptr = this.__destroy_into_raw();
|
|
1681
1681
|
wasm.__wbg_customconfiguration_free(ptr, 0);
|
|
1682
1682
|
}
|
|
1683
|
+
constructor(key_rotation_span, wire_policy) {
|
|
1684
|
+
const ret = wasm.customconfiguration_new(isLikeNone(key_rotation_span) ? 4294967297 : key_rotation_span >>> 0, isLikeNone(wire_policy) ? 0 : wire_policy);
|
|
1685
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1686
|
+
CustomConfigurationFinalization.register(this, this.__wbg_ptr, this);
|
|
1687
|
+
return this;
|
|
1688
|
+
}
|
|
1683
1689
|
get keyRotationSpan() {
|
|
1684
1690
|
const ret = wasm.__wbg_get_customconfiguration_keyRotationSpan(this.__wbg_ptr);
|
|
1685
1691
|
return ret === 4294967297 ? undefined : ret;
|
|
@@ -1694,12 +1700,6 @@ class CustomConfiguration {
|
|
|
1694
1700
|
set wirePolicy(arg0) {
|
|
1695
1701
|
wasm.__wbg_set_customconfiguration_wirePolicy(this.__wbg_ptr, isLikeNone(arg0) ? 0 : arg0);
|
|
1696
1702
|
}
|
|
1697
|
-
constructor(key_rotation_span, wire_policy) {
|
|
1698
|
-
const ret = wasm.customconfiguration_new(isLikeNone(key_rotation_span) ? 4294967297 : key_rotation_span >>> 0, isLikeNone(wire_policy) ? 0 : wire_policy);
|
|
1699
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1700
|
-
CustomConfigurationFinalization.register(this, this.__wbg_ptr, this);
|
|
1701
|
-
return this;
|
|
1702
|
-
}
|
|
1703
1703
|
}
|
|
1704
1704
|
if (Symbol.dispose)
|
|
1705
1705
|
CustomConfiguration.prototype[Symbol.dispose] = CustomConfiguration.prototype.free;
|
|
@@ -1874,6 +1874,12 @@ class ExternalSenderKey {
|
|
|
1874
1874
|
const ptr = this.__destroy_into_raw();
|
|
1875
1875
|
wasm.__wbg_externalsenderkey_free(ptr, 0);
|
|
1876
1876
|
}
|
|
1877
|
+
copyBytes() {
|
|
1878
|
+
const ret = wasm.externalsenderkey_copyBytes(this.__wbg_ptr);
|
|
1879
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1880
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1881
|
+
return v1;
|
|
1882
|
+
}
|
|
1877
1883
|
constructor(bytes) {
|
|
1878
1884
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1879
1885
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -1882,12 +1888,6 @@ class ExternalSenderKey {
|
|
|
1882
1888
|
ExternalSenderKeyFinalization.register(this, this.__wbg_ptr, this);
|
|
1883
1889
|
return this;
|
|
1884
1890
|
}
|
|
1885
|
-
copyBytes() {
|
|
1886
|
-
const ret = wasm.externalsenderkey_copyBytes(this.__wbg_ptr);
|
|
1887
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1888
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1889
|
-
return v1;
|
|
1890
|
-
}
|
|
1891
1891
|
}
|
|
1892
1892
|
if (Symbol.dispose)
|
|
1893
1893
|
ExternalSenderKey.prototype[Symbol.dispose] = ExternalSenderKey.prototype.free;
|
|
@@ -1911,34 +1911,22 @@ class FfiWireE2EIdentity {
|
|
|
1911
1911
|
const ptr = this.__destroy_into_raw();
|
|
1912
1912
|
wasm.__wbg_ffiwiree2eidentity_free(ptr, 0);
|
|
1913
1913
|
}
|
|
1914
|
-
|
|
1915
|
-
const ptr0 = passArray8ToWasm0(directory, wasm.__wbindgen_malloc);
|
|
1916
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1917
|
-
const ret = wasm.ffiwiree2eidentity_directory_response(this.__wbg_ptr, ptr0, len0);
|
|
1918
|
-
return ret;
|
|
1919
|
-
}
|
|
1920
|
-
new_account_request(previous_nonce) {
|
|
1914
|
+
finalize_request(previous_nonce) {
|
|
1921
1915
|
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1922
1916
|
const len0 = WASM_VECTOR_LEN;
|
|
1923
|
-
const ret = wasm.
|
|
1924
|
-
return ret;
|
|
1925
|
-
}
|
|
1926
|
-
new_account_response(account) {
|
|
1927
|
-
const ptr0 = passArray8ToWasm0(account, wasm.__wbindgen_malloc);
|
|
1928
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1929
|
-
const ret = wasm.ffiwiree2eidentity_new_account_response(this.__wbg_ptr, ptr0, len0);
|
|
1917
|
+
const ret = wasm.ffiwiree2eidentity_finalize_request(this.__wbg_ptr, ptr0, len0);
|
|
1930
1918
|
return ret;
|
|
1931
1919
|
}
|
|
1932
|
-
|
|
1933
|
-
const ptr0 = passStringToWasm0(
|
|
1920
|
+
create_dpop_token(expiry_secs, backend_nonce) {
|
|
1921
|
+
const ptr0 = passStringToWasm0(backend_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1934
1922
|
const len0 = WASM_VECTOR_LEN;
|
|
1935
|
-
const ret = wasm.
|
|
1923
|
+
const ret = wasm.ffiwiree2eidentity_create_dpop_token(this.__wbg_ptr, expiry_secs, ptr0, len0);
|
|
1936
1924
|
return ret;
|
|
1937
1925
|
}
|
|
1938
|
-
|
|
1939
|
-
const ptr0 = passArray8ToWasm0(
|
|
1926
|
+
finalize_response(finalize) {
|
|
1927
|
+
const ptr0 = passArray8ToWasm0(finalize, wasm.__wbindgen_malloc);
|
|
1940
1928
|
const len0 = WASM_VECTOR_LEN;
|
|
1941
|
-
const ret = wasm.
|
|
1929
|
+
const ret = wasm.ffiwiree2eidentity_finalize_response(this.__wbg_ptr, ptr0, len0);
|
|
1942
1930
|
return ret;
|
|
1943
1931
|
}
|
|
1944
1932
|
new_authz_request(url, previous_nonce) {
|
|
@@ -1949,30 +1937,34 @@ class FfiWireE2EIdentity {
|
|
|
1949
1937
|
const ret = wasm.ffiwiree2eidentity_new_authz_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1950
1938
|
return ret;
|
|
1951
1939
|
}
|
|
1952
|
-
|
|
1953
|
-
const ptr0 =
|
|
1940
|
+
new_order_request(previous_nonce) {
|
|
1941
|
+
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1954
1942
|
const len0 = WASM_VECTOR_LEN;
|
|
1955
|
-
const ret = wasm.
|
|
1943
|
+
const ret = wasm.ffiwiree2eidentity_new_order_request(this.__wbg_ptr, ptr0, len0);
|
|
1956
1944
|
return ret;
|
|
1957
1945
|
}
|
|
1958
|
-
|
|
1959
|
-
const ptr0 =
|
|
1946
|
+
directory_response(directory) {
|
|
1947
|
+
const ptr0 = passArray8ToWasm0(directory, wasm.__wbindgen_malloc);
|
|
1960
1948
|
const len0 = WASM_VECTOR_LEN;
|
|
1961
|
-
const ret = wasm.
|
|
1949
|
+
const ret = wasm.ffiwiree2eidentity_directory_response(this.__wbg_ptr, ptr0, len0);
|
|
1962
1950
|
return ret;
|
|
1963
1951
|
}
|
|
1964
|
-
|
|
1965
|
-
const ptr0 =
|
|
1952
|
+
new_authz_response(authz) {
|
|
1953
|
+
const ptr0 = passArray8ToWasm0(authz, wasm.__wbindgen_malloc);
|
|
1966
1954
|
const len0 = WASM_VECTOR_LEN;
|
|
1967
|
-
const
|
|
1968
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1969
|
-
const ret = wasm.ffiwiree2eidentity_new_dpop_challenge_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1955
|
+
const ret = wasm.ffiwiree2eidentity_new_authz_response(this.__wbg_ptr, ptr0, len0);
|
|
1970
1956
|
return ret;
|
|
1971
1957
|
}
|
|
1972
|
-
|
|
1973
|
-
const ptr0 = passArray8ToWasm0(
|
|
1958
|
+
new_order_response(order) {
|
|
1959
|
+
const ptr0 = passArray8ToWasm0(order, wasm.__wbindgen_malloc);
|
|
1974
1960
|
const len0 = WASM_VECTOR_LEN;
|
|
1975
|
-
const ret = wasm.
|
|
1961
|
+
const ret = wasm.ffiwiree2eidentity_new_order_response(this.__wbg_ptr, ptr0, len0);
|
|
1962
|
+
return ret;
|
|
1963
|
+
}
|
|
1964
|
+
certificate_request(previous_nonce) {
|
|
1965
|
+
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1966
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1967
|
+
const ret = wasm.ffiwiree2eidentity_certificate_request(this.__wbg_ptr, ptr0, len0);
|
|
1976
1968
|
return ret;
|
|
1977
1969
|
}
|
|
1978
1970
|
check_order_request(order_url, previous_nonce) {
|
|
@@ -1983,28 +1975,30 @@ class FfiWireE2EIdentity {
|
|
|
1983
1975
|
const ret = wasm.ffiwiree2eidentity_check_order_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1984
1976
|
return ret;
|
|
1985
1977
|
}
|
|
1986
|
-
|
|
1987
|
-
const ptr0 =
|
|
1978
|
+
new_account_request(previous_nonce) {
|
|
1979
|
+
const ptr0 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1988
1980
|
const len0 = WASM_VECTOR_LEN;
|
|
1989
|
-
const ret = wasm.
|
|
1981
|
+
const ret = wasm.ffiwiree2eidentity_new_account_request(this.__wbg_ptr, ptr0, len0);
|
|
1990
1982
|
return ret;
|
|
1991
1983
|
}
|
|
1992
|
-
|
|
1993
|
-
const ptr0 =
|
|
1984
|
+
check_order_response(order) {
|
|
1985
|
+
const ptr0 = passArray8ToWasm0(order, wasm.__wbindgen_malloc);
|
|
1994
1986
|
const len0 = WASM_VECTOR_LEN;
|
|
1995
|
-
const ret = wasm.
|
|
1987
|
+
const ret = wasm.ffiwiree2eidentity_check_order_response(this.__wbg_ptr, ptr0, len0);
|
|
1996
1988
|
return ret;
|
|
1997
1989
|
}
|
|
1998
|
-
|
|
1999
|
-
const ptr0 = passArray8ToWasm0(
|
|
1990
|
+
new_account_response(account) {
|
|
1991
|
+
const ptr0 = passArray8ToWasm0(account, wasm.__wbindgen_malloc);
|
|
2000
1992
|
const len0 = WASM_VECTOR_LEN;
|
|
2001
|
-
const ret = wasm.
|
|
1993
|
+
const ret = wasm.ffiwiree2eidentity_new_account_response(this.__wbg_ptr, ptr0, len0);
|
|
2002
1994
|
return ret;
|
|
2003
1995
|
}
|
|
2004
|
-
|
|
2005
|
-
const ptr0 = passStringToWasm0(
|
|
1996
|
+
new_dpop_challenge_request(access_token, previous_nonce) {
|
|
1997
|
+
const ptr0 = passStringToWasm0(access_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2006
1998
|
const len0 = WASM_VECTOR_LEN;
|
|
2007
|
-
const
|
|
1999
|
+
const ptr1 = passStringToWasm0(previous_nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2000
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2001
|
+
const ret = wasm.ffiwiree2eidentity_new_dpop_challenge_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2008
2002
|
return ret;
|
|
2009
2003
|
}
|
|
2010
2004
|
new_oidc_challenge_request(id_token, previous_nonce) {
|
|
@@ -2015,6 +2009,12 @@ class FfiWireE2EIdentity {
|
|
|
2015
2009
|
const ret = wasm.ffiwiree2eidentity_new_oidc_challenge_request(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2016
2010
|
return ret;
|
|
2017
2011
|
}
|
|
2012
|
+
new_dpop_challenge_response(challenge) {
|
|
2013
|
+
const ptr0 = passArray8ToWasm0(challenge, wasm.__wbindgen_malloc);
|
|
2014
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2015
|
+
const ret = wasm.ffiwiree2eidentity_new_dpop_challenge_response(this.__wbg_ptr, ptr0, len0);
|
|
2016
|
+
return ret;
|
|
2017
|
+
}
|
|
2018
2018
|
new_oidc_challenge_response(challenge) {
|
|
2019
2019
|
const ptr0 = passArray8ToWasm0(challenge, wasm.__wbindgen_malloc);
|
|
2020
2020
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2044,6 +2044,12 @@ class GroupInfo {
|
|
|
2044
2044
|
const ptr = this.__destroy_into_raw();
|
|
2045
2045
|
wasm.__wbg_groupinfo_free(ptr, 0);
|
|
2046
2046
|
}
|
|
2047
|
+
copyBytes() {
|
|
2048
|
+
const ret = wasm.groupinfo_copyBytes(this.__wbg_ptr);
|
|
2049
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2050
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2051
|
+
return v1;
|
|
2052
|
+
}
|
|
2047
2053
|
constructor(bytes) {
|
|
2048
2054
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2049
2055
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2052,12 +2058,6 @@ class GroupInfo {
|
|
|
2052
2058
|
GroupInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
2053
2059
|
return this;
|
|
2054
2060
|
}
|
|
2055
|
-
copyBytes() {
|
|
2056
|
-
const ret = wasm.groupinfo_copyBytes(this.__wbg_ptr);
|
|
2057
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2058
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2059
|
-
return v1;
|
|
2060
|
-
}
|
|
2061
2061
|
}
|
|
2062
2062
|
if (Symbol.dispose)
|
|
2063
2063
|
GroupInfo.prototype[Symbol.dispose] = GroupInfo.prototype.free;
|
|
@@ -2152,16 +2152,6 @@ class HistorySecret {
|
|
|
2152
2152
|
const ptr = this.__destroy_into_raw();
|
|
2153
2153
|
wasm.__wbg_historysecret_free(ptr, 0);
|
|
2154
2154
|
}
|
|
2155
|
-
get clientId() {
|
|
2156
|
-
const ret = wasm.__wbg_get_historysecret_clientId(this.__wbg_ptr);
|
|
2157
|
-
return ClientId.__wrap(ret);
|
|
2158
|
-
}
|
|
2159
|
-
get data() {
|
|
2160
|
-
const ret = wasm.__wbg_get_historysecret_data(this.__wbg_ptr);
|
|
2161
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2162
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2163
|
-
return v1;
|
|
2164
|
-
}
|
|
2165
2155
|
constructor(client_id, data) {
|
|
2166
2156
|
_assertClass(client_id, ClientId);
|
|
2167
2157
|
var ptr0 = client_id.__destroy_into_raw();
|
|
@@ -2175,6 +2165,16 @@ class HistorySecret {
|
|
|
2175
2165
|
HistorySecretFinalization.register(this, this.__wbg_ptr, this);
|
|
2176
2166
|
return this;
|
|
2177
2167
|
}
|
|
2168
|
+
get clientId() {
|
|
2169
|
+
const ret = wasm.__wbg_get_groupinfobundle_payload(this.__wbg_ptr);
|
|
2170
|
+
return ClientId.__wrap(ret);
|
|
2171
|
+
}
|
|
2172
|
+
get data() {
|
|
2173
|
+
const ret = wasm.__wbg_get_historysecret_data(this.__wbg_ptr);
|
|
2174
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2175
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2176
|
+
return v1;
|
|
2177
|
+
}
|
|
2178
2178
|
}
|
|
2179
2179
|
if (Symbol.dispose)
|
|
2180
2180
|
HistorySecret.prototype[Symbol.dispose] = HistorySecret.prototype.free;
|
|
@@ -2204,6 +2204,12 @@ class KeyPackage {
|
|
|
2204
2204
|
const ptr = this.__destroy_into_raw();
|
|
2205
2205
|
wasm.__wbg_keypackage_free(ptr, 0);
|
|
2206
2206
|
}
|
|
2207
|
+
copyBytes() {
|
|
2208
|
+
const ret = wasm.keypackage_copyBytes(this.__wbg_ptr);
|
|
2209
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2210
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2211
|
+
return v1;
|
|
2212
|
+
}
|
|
2207
2213
|
constructor(bytes) {
|
|
2208
2214
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2209
2215
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2212,12 +2218,6 @@ class KeyPackage {
|
|
|
2212
2218
|
KeyPackageFinalization.register(this, this.__wbg_ptr, this);
|
|
2213
2219
|
return this;
|
|
2214
2220
|
}
|
|
2215
|
-
copyBytes() {
|
|
2216
|
-
const ret = wasm.keypackage_copyBytes(this.__wbg_ptr);
|
|
2217
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2218
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2219
|
-
return v1;
|
|
2220
|
-
}
|
|
2221
2221
|
}
|
|
2222
2222
|
if (Symbol.dispose)
|
|
2223
2223
|
KeyPackage.prototype[Symbol.dispose] = KeyPackage.prototype.free;
|
|
@@ -2259,12 +2259,6 @@ class MlsTransportData {
|
|
|
2259
2259
|
const ptr = this.__destroy_into_raw();
|
|
2260
2260
|
wasm.__wbg_mlstransportdata_free(ptr, 0);
|
|
2261
2261
|
}
|
|
2262
|
-
get data() {
|
|
2263
|
-
const ret = wasm.__wbg_get_mlstransportdata_data(this.__wbg_ptr);
|
|
2264
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2265
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2266
|
-
return v1;
|
|
2267
|
-
}
|
|
2268
2262
|
constructor(buf) {
|
|
2269
2263
|
const ptr0 = passArray8ToWasm0(buf, wasm.__wbindgen_malloc);
|
|
2270
2264
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2273,6 +2267,12 @@ class MlsTransportData {
|
|
|
2273
2267
|
MlsTransportDataFinalization.register(this, this.__wbg_ptr, this);
|
|
2274
2268
|
return this;
|
|
2275
2269
|
}
|
|
2270
|
+
get data() {
|
|
2271
|
+
const ret = wasm.__wbg_get_mlstransportdata_data(this.__wbg_ptr);
|
|
2272
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2273
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2274
|
+
return v1;
|
|
2275
|
+
}
|
|
2276
2276
|
}
|
|
2277
2277
|
if (Symbol.dispose)
|
|
2278
2278
|
MlsTransportData.prototype[Symbol.dispose] = MlsTransportData.prototype.free;
|
|
@@ -2466,6 +2466,12 @@ class SecretKey {
|
|
|
2466
2466
|
const ptr = this.__destroy_into_raw();
|
|
2467
2467
|
wasm.__wbg_secretkey_free(ptr, 0);
|
|
2468
2468
|
}
|
|
2469
|
+
copyBytes() {
|
|
2470
|
+
const ret = wasm.secretkey_copyBytes(this.__wbg_ptr);
|
|
2471
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2472
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2473
|
+
return v1;
|
|
2474
|
+
}
|
|
2469
2475
|
constructor(bytes) {
|
|
2470
2476
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2471
2477
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2474,12 +2480,6 @@ class SecretKey {
|
|
|
2474
2480
|
SecretKeyFinalization.register(this, this.__wbg_ptr, this);
|
|
2475
2481
|
return this;
|
|
2476
2482
|
}
|
|
2477
|
-
copyBytes() {
|
|
2478
|
-
const ret = wasm.secretkey_copyBytes(this.__wbg_ptr);
|
|
2479
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2480
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2481
|
-
return v1;
|
|
2482
|
-
}
|
|
2483
2483
|
}
|
|
2484
2484
|
if (Symbol.dispose)
|
|
2485
2485
|
SecretKey.prototype[Symbol.dispose] = SecretKey.prototype.free;
|
|
@@ -2503,6 +2503,12 @@ class Welcome {
|
|
|
2503
2503
|
const ptr = this.__destroy_into_raw();
|
|
2504
2504
|
wasm.__wbg_welcome_free(ptr, 0);
|
|
2505
2505
|
}
|
|
2506
|
+
copyBytes() {
|
|
2507
|
+
const ret = wasm.welcome_copyBytes(this.__wbg_ptr);
|
|
2508
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2509
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2510
|
+
return v1;
|
|
2511
|
+
}
|
|
2506
2512
|
constructor(bytes) {
|
|
2507
2513
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2508
2514
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -2511,12 +2517,6 @@ class Welcome {
|
|
|
2511
2517
|
WelcomeFinalization.register(this, this.__wbg_ptr, this);
|
|
2512
2518
|
return this;
|
|
2513
2519
|
}
|
|
2514
|
-
copyBytes() {
|
|
2515
|
-
const ret = wasm.welcome_copyBytes(this.__wbg_ptr);
|
|
2516
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2517
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2518
|
-
return v1;
|
|
2519
|
-
}
|
|
2520
2520
|
}
|
|
2521
2521
|
if (Symbol.dispose)
|
|
2522
2522
|
Welcome.prototype[Symbol.dispose] = Welcome.prototype.free;
|
|
@@ -2541,7 +2541,7 @@ class WelcomeBundle {
|
|
|
2541
2541
|
wasm.__wbg_welcomebundle_free(ptr, 0);
|
|
2542
2542
|
}
|
|
2543
2543
|
get id() {
|
|
2544
|
-
const ret = wasm.
|
|
2544
|
+
const ret = wasm.__wbg_get_groupinfobundle_payload(this.__wbg_ptr);
|
|
2545
2545
|
return ConversationId.__wrap(ret);
|
|
2546
2546
|
}
|
|
2547
2547
|
get crlNewDistributionPoints() {
|
|
@@ -2898,7 +2898,7 @@ function __wbg_get_imports() {
|
|
|
2898
2898
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2899
2899
|
}
|
|
2900
2900
|
};
|
|
2901
|
-
imports.wbg.
|
|
2901
|
+
imports.wbg.__wbg_execute_c1e831ee9e01a6ab = function() {
|
|
2902
2902
|
return handleError(function(arg0, arg1) {
|
|
2903
2903
|
const ret = arg0.execute(CoreCryptoContext.__wrap(arg1));
|
|
2904
2904
|
return ret;
|
|
@@ -3151,7 +3151,7 @@ function __wbg_get_imports() {
|
|
|
3151
3151
|
const a = state0.a;
|
|
3152
3152
|
state0.a = 0;
|
|
3153
3153
|
try {
|
|
3154
|
-
return
|
|
3154
|
+
return __wbg_adapter_479(a, state0.b, arg02, arg12);
|
|
3155
3155
|
} finally {
|
|
3156
3156
|
state0.a = a;
|
|
3157
3157
|
}
|
|
@@ -3546,6 +3546,10 @@ function __wbg_get_imports() {
|
|
|
3546
3546
|
const ret = v0;
|
|
3547
3547
|
return ret;
|
|
3548
3548
|
};
|
|
3549
|
+
imports.wbg.__wbindgen_cast_3fda284bdcf7704e = function(arg0, arg1) {
|
|
3550
|
+
const ret = makeMutClosure(arg0, arg1, 941, __wbg_adapter_22);
|
|
3551
|
+
return ret;
|
|
3552
|
+
};
|
|
3549
3553
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
3550
3554
|
const ret = BigInt.asUintN(64, arg0);
|
|
3551
3555
|
return ret;
|
|
@@ -3556,8 +3560,8 @@ function __wbg_get_imports() {
|
|
|
3556
3560
|
const ret = v0;
|
|
3557
3561
|
return ret;
|
|
3558
3562
|
};
|
|
3559
|
-
imports.wbg.
|
|
3560
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3563
|
+
imports.wbg.__wbindgen_cast_497f9f19c9eb4ede = function(arg0, arg1) {
|
|
3564
|
+
const ret = makeMutClosure(arg0, arg1, 2504, __wbg_adapter_8);
|
|
3561
3565
|
return ret;
|
|
3562
3566
|
};
|
|
3563
3567
|
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
@@ -3566,20 +3570,16 @@ function __wbg_get_imports() {
|
|
|
3566
3570
|
const ret = v0;
|
|
3567
3571
|
return ret;
|
|
3568
3572
|
};
|
|
3569
|
-
imports.wbg.__wbindgen_cast_9366269b35ccbb69 = function(arg0, arg1) {
|
|
3570
|
-
const ret = makeMutClosure(arg0, arg1, 2905, __wbg_adapter_16);
|
|
3571
|
-
return ret;
|
|
3572
|
-
};
|
|
3573
|
-
imports.wbg.__wbindgen_cast_a834b411bd2663eb = function(arg0, arg1) {
|
|
3574
|
-
const ret = makeMutClosure(arg0, arg1, 2596, __wbg_adapter_23);
|
|
3575
|
-
return ret;
|
|
3576
|
-
};
|
|
3577
3573
|
imports.wbg.__wbindgen_cast_b77aa29fa8fe8560 = function(arg0, arg1) {
|
|
3578
3574
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3579
3575
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3580
3576
|
const ret = v0;
|
|
3581
3577
|
return ret;
|
|
3582
3578
|
};
|
|
3579
|
+
imports.wbg.__wbindgen_cast_bfd87b187f67b730 = function(arg0, arg1) {
|
|
3580
|
+
const ret = makeMutClosure(arg0, arg1, 2881, __wbg_adapter_19);
|
|
3581
|
+
return ret;
|
|
3582
|
+
};
|
|
3583
3583
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3584
3584
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3585
3585
|
return ret;
|