@wireapp/core-crypto 1.0.0-rc.41 → 1.0.0-rc.42

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "1.0.0-rc.41",
3
+ "version": "1.0.0-rc.42",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -1,12 +1,4 @@
1
1
  // bindings/js/wasm/core-crypto-ffi.js
2
- var addHeapObject = function(obj) {
3
- if (heap_next === heap.length)
4
- heap.push(heap.length + 1);
5
- const idx = heap_next;
6
- heap_next = heap[idx];
7
- heap[idx] = obj;
8
- return idx;
9
- };
10
2
  var getObject = function(idx) {
11
3
  return heap[idx];
12
4
  };
@@ -21,6 +13,14 @@ var takeObject = function(idx) {
21
13
  dropObject(idx);
22
14
  return ret;
23
15
  };
16
+ var addHeapObject = function(obj) {
17
+ if (heap_next === heap.length)
18
+ heap.push(heap.length + 1);
19
+ const idx = heap_next;
20
+ heap_next = heap[idx];
21
+ heap[idx] = obj;
22
+ return idx;
23
+ };
24
24
  var getUint8Memory0 = function() {
25
25
  if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
26
26
  cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
@@ -265,55 +265,51 @@ async function __wbg_load(module, imports) {
265
265
  var __wbg_get_imports = function() {
266
266
  const imports = {};
267
267
  imports.wbg = {};
268
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
269
- const ret = NewAcmeAuthz.__wrap(arg0);
270
- return addHeapObject(ret);
271
- };
272
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
273
- const ret = ProposalBundle.__wrap(arg0);
274
- return addHeapObject(ret);
268
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
269
+ takeObject(arg0);
275
270
  };
276
271
  imports.wbg.__wbindgen_number_new = function(arg0) {
277
272
  const ret = arg0;
278
273
  return addHeapObject(ret);
279
274
  };
280
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
281
- const ret = CommitBundle.__wrap(arg0);
282
- return addHeapObject(ret);
283
- };
284
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
285
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
275
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
276
+ const ret = NewAcmeAuthz.__wrap(arg0);
286
277
  return addHeapObject(ret);
287
278
  };
288
279
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
289
280
  const ret = CoreCrypto.__wrap(arg0);
290
281
  return addHeapObject(ret);
291
282
  };
292
- imports.wbg.__wbg_newacmeorder_new = function(arg0) {
293
- const ret = NewAcmeOrder.__wrap(arg0);
283
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
284
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
294
285
  return addHeapObject(ret);
295
286
  };
296
287
  imports.wbg.__wbg_acmedirectory_new = function(arg0) {
297
288
  const ret = AcmeDirectory.__wrap(arg0);
298
289
  return addHeapObject(ret);
299
290
  };
291
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
292
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
293
+ return addHeapObject(ret);
294
+ };
300
295
  imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
301
296
  const ret = FfiWireE2EIdentity.__wrap(arg0);
302
297
  return addHeapObject(ret);
303
298
  };
304
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
305
- const ret = BufferedDecryptedMessage.__wrap(arg0);
299
+ imports.wbg.__wbg_newacmeorder_new = function(arg0) {
300
+ const ret = NewAcmeOrder.__wrap(arg0);
306
301
  return addHeapObject(ret);
307
302
  };
308
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
309
- takeObject(arg0);
303
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
304
+ const ret = CommitBundle.__wrap(arg0);
305
+ return addHeapObject(ret);
310
306
  };
311
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
312
- const ret = getObject(arg0);
307
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
308
+ const ret = ProposalBundle.__wrap(arg0);
313
309
  return addHeapObject(ret);
314
310
  };
315
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
316
- const ret = BigInt.asUintN(64, arg0);
311
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
312
+ const ret = getObject(arg0);
317
313
  return addHeapObject(ret);
318
314
  };
319
315
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
@@ -328,6 +324,10 @@ var __wbg_get_imports = function() {
328
324
  const ret = getObject(arg0) === null;
329
325
  return ret;
330
326
  };
327
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
328
+ const ret = BigInt.asUintN(64, arg0);
329
+ return addHeapObject(ret);
330
+ };
331
331
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
332
332
  const obj = getObject(arg1);
333
333
  const ret = typeof obj === "string" ? obj : undefined;
@@ -1049,18 +1049,6 @@ var DeviceStatus = Object.freeze({
1049
1049
  Revoked: 2,
1050
1050
  "2": "Revoked"
1051
1051
  });
1052
- var CredentialType = Object.freeze({
1053
- Basic: 1,
1054
- "1": "Basic",
1055
- X509: 2,
1056
- "2": "X509"
1057
- });
1058
- var WirePolicy = Object.freeze({
1059
- Plaintext: 1,
1060
- "1": "Plaintext",
1061
- Ciphertext: 2,
1062
- "2": "Ciphertext"
1063
- });
1064
1052
  var Ciphersuite = Object.freeze({
1065
1053
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
1066
1054
  "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
@@ -1079,6 +1067,18 @@ var Ciphersuite = Object.freeze({
1079
1067
  MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1080
1068
  "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1081
1069
  });
1070
+ var CredentialType = Object.freeze({
1071
+ Basic: 1,
1072
+ "1": "Basic",
1073
+ X509: 2,
1074
+ "2": "X509"
1075
+ });
1076
+ var WirePolicy = Object.freeze({
1077
+ Plaintext: 1,
1078
+ "1": "Plaintext",
1079
+ Ciphertext: 2,
1080
+ "2": "Ciphertext"
1081
+ });
1082
1082
  var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1083
1083
  }, unregister: () => {
1084
1084
  } } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0));