@wireapp/core-crypto 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
Binary file
|
@@ -1,35 +1,35 @@
|
|
1
1
|
/**
|
2
2
|
* see [core_crypto::prelude::CiphersuiteName]
|
3
3
|
*/
|
4
|
-
export enum Ciphersuite {
|
4
|
+
export declare enum Ciphersuite {
|
5
5
|
/**
|
6
6
|
* DH KEM x25519 | AES-GCM 128 | SHA2-256 | Ed25519
|
7
7
|
*/
|
8
|
-
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519,
|
8
|
+
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519 = 1,
|
9
9
|
/**
|
10
10
|
* DH KEM P256 | AES-GCM 128 | SHA2-256 | EcDSA P256
|
11
11
|
*/
|
12
|
-
MLS_128_DHKEMP256_AES128GCM_SHA256_P256,
|
12
|
+
MLS_128_DHKEMP256_AES128GCM_SHA256_P256 = 2,
|
13
13
|
/**
|
14
14
|
* DH KEM x25519 | Chacha20Poly1305 | SHA2-256 | Ed25519
|
15
15
|
*/
|
16
|
-
MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519,
|
16
|
+
MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519 = 3,
|
17
17
|
/**
|
18
18
|
* DH KEM x448 | AES-GCM 256 | SHA2-512 | Ed448
|
19
19
|
*/
|
20
|
-
MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448,
|
20
|
+
MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448 = 4,
|
21
21
|
/**
|
22
22
|
* DH KEM P521 | AES-GCM 256 | SHA2-512 | EcDSA P521
|
23
23
|
*/
|
24
|
-
MLS_256_DHKEMP521_AES256GCM_SHA512_P521,
|
24
|
+
MLS_256_DHKEMP521_AES256GCM_SHA512_P521 = 5,
|
25
25
|
/**
|
26
26
|
* DH KEM x448 | Chacha20Poly1305 | SHA2-512 | Ed448
|
27
27
|
*/
|
28
|
-
MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448,
|
28
|
+
MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448 = 6,
|
29
29
|
/**
|
30
30
|
* DH KEM P384 | AES-GCM 256 | SHA2-384 | EcDSA P384
|
31
31
|
*/
|
32
|
-
MLS_256_DHKEMP384_AES256GCM_SHA384_P384
|
32
|
+
MLS_256_DHKEMP384_AES256GCM_SHA384_P384 = 7
|
33
33
|
}
|
34
34
|
/**
|
35
35
|
* Configuration object for new conversations
|
@@ -36,15 +36,6 @@ function getObject(idx) { return heap[idx]; }
|
|
36
36
|
|
37
37
|
let heap_next = heap.length;
|
38
38
|
|
39
|
-
function addHeapObject(obj) {
|
40
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
41
|
-
const idx = heap_next;
|
42
|
-
heap_next = heap[idx];
|
43
|
-
|
44
|
-
heap[idx] = obj;
|
45
|
-
return idx;
|
46
|
-
}
|
47
|
-
|
48
39
|
function dropObject(idx) {
|
49
40
|
if (idx < 36) return;
|
50
41
|
heap[idx] = heap_next;
|
@@ -57,6 +48,15 @@ function takeObject(idx) {
|
|
57
48
|
return ret;
|
58
49
|
}
|
59
50
|
|
51
|
+
function addHeapObject(obj) {
|
52
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
53
|
+
const idx = heap_next;
|
54
|
+
heap_next = heap[idx];
|
55
|
+
|
56
|
+
heap[idx] = obj;
|
57
|
+
return idx;
|
58
|
+
}
|
59
|
+
|
60
60
|
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
61
61
|
|
62
62
|
cachedTextDecoder.decode();
|
@@ -74,28 +74,6 @@ function getStringFromWasm0(ptr, len) {
|
|
74
74
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
75
75
|
}
|
76
76
|
|
77
|
-
function isLikeNone(x) {
|
78
|
-
return x === undefined || x === null;
|
79
|
-
}
|
80
|
-
|
81
|
-
let cachedFloat64Memory0 = new Float64Array();
|
82
|
-
|
83
|
-
function getFloat64Memory0() {
|
84
|
-
if (cachedFloat64Memory0.byteLength === 0) {
|
85
|
-
cachedFloat64Memory0 = new Float64Array(wasm$1.memory.buffer);
|
86
|
-
}
|
87
|
-
return cachedFloat64Memory0;
|
88
|
-
}
|
89
|
-
|
90
|
-
let cachedInt32Memory0 = new Int32Array();
|
91
|
-
|
92
|
-
function getInt32Memory0() {
|
93
|
-
if (cachedInt32Memory0.byteLength === 0) {
|
94
|
-
cachedInt32Memory0 = new Int32Array(wasm$1.memory.buffer);
|
95
|
-
}
|
96
|
-
return cachedInt32Memory0;
|
97
|
-
}
|
98
|
-
|
99
77
|
let WASM_VECTOR_LEN = 0;
|
100
78
|
|
101
79
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
@@ -151,6 +129,28 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
151
129
|
return ptr;
|
152
130
|
}
|
153
131
|
|
132
|
+
function isLikeNone(x) {
|
133
|
+
return x === undefined || x === null;
|
134
|
+
}
|
135
|
+
|
136
|
+
let cachedInt32Memory0 = new Int32Array();
|
137
|
+
|
138
|
+
function getInt32Memory0() {
|
139
|
+
if (cachedInt32Memory0.byteLength === 0) {
|
140
|
+
cachedInt32Memory0 = new Int32Array(wasm$1.memory.buffer);
|
141
|
+
}
|
142
|
+
return cachedInt32Memory0;
|
143
|
+
}
|
144
|
+
|
145
|
+
let cachedFloat64Memory0 = new Float64Array();
|
146
|
+
|
147
|
+
function getFloat64Memory0() {
|
148
|
+
if (cachedFloat64Memory0.byteLength === 0) {
|
149
|
+
cachedFloat64Memory0 = new Float64Array(wasm$1.memory.buffer);
|
150
|
+
}
|
151
|
+
return cachedFloat64Memory0;
|
152
|
+
}
|
153
|
+
|
154
154
|
function debugString(val) {
|
155
155
|
// primitive types
|
156
156
|
const type = typeof val;
|
@@ -243,7 +243,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
243
243
|
function __wbg_adapter_40(arg0, arg1, arg2) {
|
244
244
|
try {
|
245
245
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
246
|
-
wasm$1.
|
246
|
+
wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a17b153655eda08(retptr, arg0, arg1, addHeapObject(arg2));
|
247
247
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
248
248
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
249
249
|
if (r1) {
|
@@ -255,7 +255,7 @@ function __wbg_adapter_40(arg0, arg1, arg2) {
|
|
255
255
|
}
|
256
256
|
|
257
257
|
function __wbg_adapter_43(arg0, arg1, arg2) {
|
258
|
-
wasm$1.
|
258
|
+
wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd0c9431a12465019(arg0, arg1, addHeapObject(arg2));
|
259
259
|
}
|
260
260
|
|
261
261
|
/**
|
@@ -319,13 +319,13 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
319
319
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
320
320
|
}
|
321
321
|
function __wbg_adapter_175(arg0, arg1, arg2, arg3) {
|
322
|
-
wasm$1.
|
322
|
+
wasm$1.wasm_bindgen__convert__closures__invoke2_mut__h4f9148fafb82166d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
323
323
|
}
|
324
324
|
|
325
325
|
/**
|
326
326
|
* see [core_crypto::prelude::CiphersuiteName]
|
327
327
|
*/
|
328
|
-
const Ciphersuite = Object.freeze({
|
328
|
+
const Ciphersuite$1 = Object.freeze({
|
329
329
|
/**
|
330
330
|
* DH KEM x25519 | AES-GCM 128 | SHA2-256 | Ed25519
|
331
331
|
*/
|
@@ -1224,13 +1224,13 @@ async function load(module, imports) {
|
|
1224
1224
|
function getImports() {
|
1225
1225
|
const imports = {};
|
1226
1226
|
imports.wbg = {};
|
1227
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
1228
|
+
takeObject(arg0);
|
1229
|
+
};
|
1227
1230
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
1228
1231
|
const ret = getObject(arg0);
|
1229
1232
|
return addHeapObject(ret);
|
1230
1233
|
};
|
1231
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
1232
|
-
takeObject(arg0);
|
1233
|
-
};
|
1234
1234
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
1235
1235
|
const val = getObject(arg0);
|
1236
1236
|
const ret = typeof(val) === 'object' && val !== null;
|
@@ -1255,6 +1255,10 @@ function getImports() {
|
|
1255
1255
|
const ret = new Uint8Array(getObject(arg0));
|
1256
1256
|
return addHeapObject(ret);
|
1257
1257
|
};
|
1258
|
+
imports.wbg.__wbg_new_0b9bfdd97583284e = function() {
|
1259
|
+
const ret = new Object();
|
1260
|
+
return addHeapObject(ret);
|
1261
|
+
};
|
1258
1262
|
imports.wbg.__wbg_new_1d9a920c6bfc44a8 = function() {
|
1259
1263
|
const ret = new Array();
|
1260
1264
|
return addHeapObject(ret);
|
@@ -1263,10 +1267,6 @@ function getImports() {
|
|
1263
1267
|
const ret = getObject(arg0).push(getObject(arg1));
|
1264
1268
|
return ret;
|
1265
1269
|
};
|
1266
|
-
imports.wbg.__wbg_new_0b9bfdd97583284e = function() {
|
1267
|
-
const ret = new Object();
|
1268
|
-
return addHeapObject(ret);
|
1269
|
-
};
|
1270
1270
|
imports.wbg.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
|
1271
1271
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
1272
1272
|
};
|
@@ -1274,14 +1274,14 @@ function getImports() {
|
|
1274
1274
|
const ret = arg0;
|
1275
1275
|
return addHeapObject(ret);
|
1276
1276
|
};
|
1277
|
-
imports.wbg.__wbg_corecrypto_new = function(arg0) {
|
1278
|
-
const ret = CoreCrypto$1.__wrap(arg0);
|
1279
|
-
return addHeapObject(ret);
|
1280
|
-
};
|
1281
1277
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
1282
1278
|
const ret = BigInt.asUintN(64, arg0);
|
1283
1279
|
return addHeapObject(ret);
|
1284
1280
|
};
|
1281
|
+
imports.wbg.__wbg_corecrypto_new = function(arg0) {
|
1282
|
+
const ret = CoreCrypto$1.__wrap(arg0);
|
1283
|
+
return addHeapObject(ret);
|
1284
|
+
};
|
1285
1285
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
1286
1286
|
const v = getObject(arg0);
|
1287
1287
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
@@ -1313,6 +1313,14 @@ function getImports() {
|
|
1313
1313
|
const ret = getObject(arg0)[takeObject(arg1)];
|
1314
1314
|
return addHeapObject(ret);
|
1315
1315
|
};
|
1316
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
1317
|
+
const obj = getObject(arg1);
|
1318
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
1319
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
1320
|
+
var len0 = WASM_VECTOR_LEN;
|
1321
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
1322
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
1323
|
+
};
|
1316
1324
|
imports.wbg.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
1317
1325
|
const ret = Array.isArray(getObject(arg0));
|
1318
1326
|
return ret;
|
@@ -1367,14 +1375,6 @@ function getImports() {
|
|
1367
1375
|
const ret = getObject(arg0)[arg1 >>> 0];
|
1368
1376
|
return addHeapObject(ret);
|
1369
1377
|
};
|
1370
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
1371
|
-
const obj = getObject(arg1);
|
1372
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
1373
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
1374
|
-
var len0 = WASM_VECTOR_LEN;
|
1375
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
1376
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
1377
|
-
};
|
1378
1378
|
imports.wbg.__wbindgen_is_null = function(arg0) {
|
1379
1379
|
const ret = getObject(arg0) === null;
|
1380
1380
|
return ret;
|
@@ -1407,16 +1407,6 @@ function getImports() {
|
|
1407
1407
|
const ret = false;
|
1408
1408
|
return ret;
|
1409
1409
|
};
|
1410
|
-
imports.wbg.__wbg_get_6285bf458a1ee758 = function() { return handleError(function (arg0, arg1) {
|
1411
|
-
const ret = getObject(arg0).get(getObject(arg1));
|
1412
|
-
return addHeapObject(ret);
|
1413
|
-
}, arguments) };
|
1414
|
-
imports.wbg.__wbg_setonsuccess_5f71593bc51653a3 = function(arg0, arg1) {
|
1415
|
-
getObject(arg0).onsuccess = getObject(arg1);
|
1416
|
-
};
|
1417
|
-
imports.wbg.__wbg_setonerror_d5771cc5bf9ea74c = function(arg0, arg1) {
|
1418
|
-
getObject(arg0).onerror = getObject(arg1);
|
1419
|
-
};
|
1420
1410
|
imports.wbg.__wbg_commit_73ecc83e291e455b = function() { return handleError(function (arg0) {
|
1421
1411
|
getObject(arg0).commit();
|
1422
1412
|
}, arguments) };
|
@@ -1426,20 +1416,22 @@ function getImports() {
|
|
1426
1416
|
imports.wbg.__wbg_setonerror_00051c0213f27b2c = function(arg0, arg1) {
|
1427
1417
|
getObject(arg0).onerror = getObject(arg1);
|
1428
1418
|
};
|
1429
|
-
imports.wbg.
|
1430
|
-
const ret = getObject(arg0).delete(getObject(arg1));
|
1431
|
-
return addHeapObject(ret);
|
1432
|
-
}, arguments) };
|
1433
|
-
imports.wbg.__wbg_get_3c3e41997e95952c = function() { return handleError(function (arg0, arg1) {
|
1419
|
+
imports.wbg.__wbg_get_6285bf458a1ee758 = function() { return handleError(function (arg0, arg1) {
|
1434
1420
|
const ret = getObject(arg0).get(getObject(arg1));
|
1435
1421
|
return addHeapObject(ret);
|
1436
1422
|
}, arguments) };
|
1437
|
-
imports.wbg.
|
1438
|
-
|
1423
|
+
imports.wbg.__wbg_setonsuccess_5f71593bc51653a3 = function(arg0, arg1) {
|
1424
|
+
getObject(arg0).onsuccess = getObject(arg1);
|
1425
|
+
};
|
1426
|
+
imports.wbg.__wbg_setonerror_d5771cc5bf9ea74c = function(arg0, arg1) {
|
1427
|
+
getObject(arg0).onerror = getObject(arg1);
|
1428
|
+
};
|
1429
|
+
imports.wbg.__wbg_openCursor_e036069f0e326708 = function() { return handleError(function (arg0, arg1) {
|
1430
|
+
const ret = getObject(arg0).openCursor(getObject(arg1));
|
1439
1431
|
return addHeapObject(ret);
|
1440
1432
|
}, arguments) };
|
1441
|
-
imports.wbg.
|
1442
|
-
const ret = getObject(arg0).openCursor(
|
1433
|
+
imports.wbg.__wbg_openCursor_f055654a98eeab7f = function() { return handleError(function (arg0) {
|
1434
|
+
const ret = getObject(arg0).openCursor();
|
1443
1435
|
return addHeapObject(ret);
|
1444
1436
|
}, arguments) };
|
1445
1437
|
imports.wbg.__wbg_put_84e7fc93eee27b28 = function() { return handleError(function (arg0, arg1, arg2) {
|
@@ -1450,6 +1442,10 @@ function getImports() {
|
|
1450
1442
|
const ret = getObject(arg0).put(getObject(arg1));
|
1451
1443
|
return addHeapObject(ret);
|
1452
1444
|
}, arguments) };
|
1445
|
+
imports.wbg.__wbg_delete_8abedd1043b4105d = function() { return handleError(function (arg0, arg1) {
|
1446
|
+
const ret = getObject(arg0).delete(getObject(arg1));
|
1447
|
+
return addHeapObject(ret);
|
1448
|
+
}, arguments) };
|
1453
1449
|
imports.wbg.__wbg_count_b0e88953a0ea909c = function() { return handleError(function (arg0) {
|
1454
1450
|
const ret = getObject(arg0).count();
|
1455
1451
|
return addHeapObject(ret);
|
@@ -1458,14 +1454,25 @@ function getImports() {
|
|
1458
1454
|
const ret = getObject(arg0).count(getObject(arg1));
|
1459
1455
|
return addHeapObject(ret);
|
1460
1456
|
}, arguments) };
|
1461
|
-
imports.wbg.
|
1462
|
-
const ret = getObject(arg0).
|
1457
|
+
imports.wbg.__wbg_get_3c3e41997e95952c = function() { return handleError(function (arg0, arg1) {
|
1458
|
+
const ret = getObject(arg0).get(getObject(arg1));
|
1463
1459
|
return addHeapObject(ret);
|
1464
1460
|
}, arguments) };
|
1465
|
-
imports.wbg.
|
1461
|
+
imports.wbg.__wbg_openCursor_2262d905dc81d11b = function() { return handleError(function (arg0) {
|
1466
1462
|
const ret = getObject(arg0).openCursor();
|
1467
1463
|
return addHeapObject(ret);
|
1468
1464
|
}, arguments) };
|
1465
|
+
imports.wbg.__wbg_openCursor_e1660ef8b1f4662f = function() { return handleError(function (arg0, arg1) {
|
1466
|
+
const ret = getObject(arg0).openCursor(getObject(arg1));
|
1467
|
+
return addHeapObject(ret);
|
1468
|
+
}, arguments) };
|
1469
|
+
imports.wbg.__wbg_close_5a04b9ce11dade22 = function(arg0) {
|
1470
|
+
getObject(arg0).close();
|
1471
|
+
};
|
1472
|
+
imports.wbg.__wbg_deleteDatabase_f6454de6a88aebde = function() { return handleError(function (arg0, arg1, arg2) {
|
1473
|
+
const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
|
1474
|
+
return addHeapObject(ret);
|
1475
|
+
}, arguments) };
|
1469
1476
|
imports.wbg.__wbg_open_a31c3fe1fdc244eb = function() { return handleError(function (arg0, arg1, arg2) {
|
1470
1477
|
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
|
1471
1478
|
return addHeapObject(ret);
|
@@ -1477,13 +1484,6 @@ function getImports() {
|
|
1477
1484
|
imports.wbg.__wbg_setonupgradeneeded_17d0b9530f1e0cac = function(arg0, arg1) {
|
1478
1485
|
getObject(arg0).onupgradeneeded = getObject(arg1);
|
1479
1486
|
};
|
1480
|
-
imports.wbg.__wbg_deleteDatabase_f6454de6a88aebde = function() { return handleError(function (arg0, arg1, arg2) {
|
1481
|
-
const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
|
1482
|
-
return addHeapObject(ret);
|
1483
|
-
}, arguments) };
|
1484
|
-
imports.wbg.__wbg_close_5a04b9ce11dade22 = function(arg0) {
|
1485
|
-
getObject(arg0).close();
|
1486
|
-
};
|
1487
1487
|
imports.wbg.__wbg_randomFillSync_065afffde01daa66 = function() { return handleError(function (arg0, arg1, arg2) {
|
1488
1488
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
1489
1489
|
}, arguments) };
|
@@ -1735,11 +1735,11 @@ function getImports() {
|
|
1735
1735
|
const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
|
1736
1736
|
return addHeapObject(ret);
|
1737
1737
|
}, arguments) };
|
1738
|
-
imports.wbg.
|
1738
|
+
imports.wbg.__wbindgen_closure_wrapper2456 = function(arg0, arg1, arg2) {
|
1739
1739
|
const ret = makeMutClosure(arg0, arg1, 106, __wbg_adapter_40);
|
1740
1740
|
return addHeapObject(ret);
|
1741
1741
|
};
|
1742
|
-
imports.wbg.
|
1742
|
+
imports.wbg.__wbindgen_closure_wrapper4423 = function(arg0, arg1, arg2) {
|
1743
1743
|
const ret = makeMutClosure(arg0, arg1, 114, __wbg_adapter_43);
|
1744
1744
|
return addHeapObject(ret);
|
1745
1745
|
};
|
@@ -1789,7 +1789,7 @@ async function init(input) {
|
|
1789
1789
|
var exports = /*#__PURE__*/Object.freeze({
|
1790
1790
|
__proto__: null,
|
1791
1791
|
version: version,
|
1792
|
-
Ciphersuite: Ciphersuite,
|
1792
|
+
Ciphersuite: Ciphersuite$1,
|
1793
1793
|
CommitBundle: CommitBundle,
|
1794
1794
|
ConversationConfiguration: ConversationConfiguration,
|
1795
1795
|
CoreCrypto: CoreCrypto$1,
|
@@ -1806,7 +1806,7 @@ var exports = /*#__PURE__*/Object.freeze({
|
|
1806
1806
|
var wasm = async (opt = {}) => {
|
1807
1807
|
let {importHook, serverPath} = opt;
|
1808
1808
|
|
1809
|
-
let path = "assets/core_crypto_ffi-
|
1809
|
+
let path = "assets/core_crypto_ffi-a1279c23.wasm";
|
1810
1810
|
|
1811
1811
|
if (serverPath != null) {
|
1812
1812
|
path = serverPath + /[^\/\\]*$/.exec(path)[0];
|
@@ -1823,6 +1823,40 @@ var wasm = async (opt = {}) => {
|
|
1823
1823
|
// Wire
|
1824
1824
|
// Copyright (C) 2022 Wire Swiss GmbH
|
1825
1825
|
var _a, _CoreCrypto_module, _CoreCrypto_cc;
|
1826
|
+
/**
|
1827
|
+
* see [core_crypto::prelude::CiphersuiteName]
|
1828
|
+
*/
|
1829
|
+
var Ciphersuite;
|
1830
|
+
(function (Ciphersuite) {
|
1831
|
+
/**
|
1832
|
+
* DH KEM x25519 | AES-GCM 128 | SHA2-256 | Ed25519
|
1833
|
+
*/
|
1834
|
+
Ciphersuite[Ciphersuite["MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519"] = 1] = "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519";
|
1835
|
+
/**
|
1836
|
+
* DH KEM P256 | AES-GCM 128 | SHA2-256 | EcDSA P256
|
1837
|
+
*/
|
1838
|
+
Ciphersuite[Ciphersuite["MLS_128_DHKEMP256_AES128GCM_SHA256_P256"] = 2] = "MLS_128_DHKEMP256_AES128GCM_SHA256_P256";
|
1839
|
+
/**
|
1840
|
+
* DH KEM x25519 | Chacha20Poly1305 | SHA2-256 | Ed25519
|
1841
|
+
*/
|
1842
|
+
Ciphersuite[Ciphersuite["MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519"] = 3] = "MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519";
|
1843
|
+
/**
|
1844
|
+
* DH KEM x448 | AES-GCM 256 | SHA2-512 | Ed448
|
1845
|
+
*/
|
1846
|
+
Ciphersuite[Ciphersuite["MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448"] = 4] = "MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448";
|
1847
|
+
/**
|
1848
|
+
* DH KEM P521 | AES-GCM 256 | SHA2-512 | EcDSA P521
|
1849
|
+
*/
|
1850
|
+
Ciphersuite[Ciphersuite["MLS_256_DHKEMP521_AES256GCM_SHA512_P521"] = 5] = "MLS_256_DHKEMP521_AES256GCM_SHA512_P521";
|
1851
|
+
/**
|
1852
|
+
* DH KEM x448 | Chacha20Poly1305 | SHA2-512 | Ed448
|
1853
|
+
*/
|
1854
|
+
Ciphersuite[Ciphersuite["MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448"] = 6] = "MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448";
|
1855
|
+
/**
|
1856
|
+
* DH KEM P384 | AES-GCM 256 | SHA2-384 | EcDSA P384
|
1857
|
+
*/
|
1858
|
+
Ciphersuite[Ciphersuite["MLS_256_DHKEMP384_AES256GCM_SHA384_P384"] = 7] = "MLS_256_DHKEMP384_AES256GCM_SHA384_P384";
|
1859
|
+
})(Ciphersuite || (Ciphersuite = {}));
|
1826
1860
|
/**
|
1827
1861
|
* MLS Proposal type
|
1828
1862
|
*/
|
@@ -2370,4 +2404,4 @@ _a = CoreCrypto, _CoreCrypto_cc = new WeakMap();
|
|
2370
2404
|
/** @hidden */
|
2371
2405
|
_CoreCrypto_module = { value: void 0 };
|
2372
2406
|
|
2373
|
-
export { CoreCrypto, ExternalProposalType, ProposalType };
|
2407
|
+
export { Ciphersuite, CoreCrypto, ExternalProposalType, ProposalType };
|
Binary file
|