@wireapp/core-crypto 1.0.0-rc.31 → 1.0.0-rc.32

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.31",
3
+ "version": "1.0.0-rc.32",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -510,6 +510,10 @@ export interface DecryptedMessage {
510
510
  * because the DS did not fan them out in order.
511
511
  */
512
512
  bufferedMessages?: BufferedDecryptedMessage[];
513
+ /**
514
+ * New CRL distribution points that appeared by the introduction of a new credential
515
+ */
516
+ crlNewDistributionPoints?: string[];
513
517
  }
514
518
  /**
515
519
  * Almost same as {@link DecryptedMessage} but avoids recursion
@@ -543,6 +547,10 @@ export interface BufferedDecryptedMessage {
543
547
  * see {@link DecryptedMessage.identity}
544
548
  */
545
549
  identity?: WireIdentity;
550
+ /**
551
+ * see {@link DecryptedMessage.crlNewDistributionPoints}
552
+ */
553
+ crlNewDistributionPoints?: string[];
546
554
  }
547
555
  /**
548
556
  * Returned by all methods creating proposals. Contains a proposal message and an identifier to roll back the proposal
@@ -1,4 +1,12 @@
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
+ };
2
10
  var getObject = function(idx) {
3
11
  return heap[idx];
4
12
  };
@@ -13,14 +21,6 @@ var takeObject = function(idx) {
13
21
  dropObject(idx);
14
22
  return ret;
15
23
  };
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);
@@ -232,7 +232,7 @@ var handleError = function(f, args) {
232
232
  wasm.__wbindgen_exn_store(addHeapObject(e));
233
233
  }
234
234
  };
235
- var __wbg_adapter_411 = function(arg0, arg1, arg2, arg3) {
235
+ var __wbg_adapter_413 = function(arg0, arg1, arg2, arg3) {
236
236
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h639173e274a4a014(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
237
237
  };
238
238
  async function __wbg_load(module, imports) {
@@ -262,47 +262,47 @@ async function __wbg_load(module, imports) {
262
262
  var __wbg_get_imports = function() {
263
263
  const imports = {};
264
264
  imports.wbg = {};
265
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
266
- const ret = FfiWireE2EIdentity.__wrap(arg0);
265
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
266
+ const ret = AcmeDirectory.__wrap(arg0);
267
267
  return addHeapObject(ret);
268
268
  };
269
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
270
- takeObject(arg0);
271
- };
272
- imports.wbg.__wbindgen_number_new = function(arg0) {
273
- const ret = arg0;
269
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
270
+ const ret = CommitBundle.__wrap(arg0);
274
271
  return addHeapObject(ret);
275
272
  };
276
273
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
277
274
  const ret = CoreCrypto.__wrap(arg0);
278
275
  return addHeapObject(ret);
279
276
  };
280
- imports.wbg.__wbg_newacmeorder_new = function(arg0) {
281
- const ret = NewAcmeOrder.__wrap(arg0);
277
+ imports.wbg.__wbindgen_number_new = function(arg0) {
278
+ const ret = arg0;
282
279
  return addHeapObject(ret);
283
280
  };
284
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
285
- const ret = ProposalBundle.__wrap(arg0);
281
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
282
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
286
283
  return addHeapObject(ret);
287
284
  };
288
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
289
- const ret = BufferedDecryptedMessage.__wrap(arg0);
290
- return addHeapObject(ret);
285
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
286
+ takeObject(arg0);
291
287
  };
292
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
293
- const ret = AcmeDirectory.__wrap(arg0);
288
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
289
+ const ret = ProposalBundle.__wrap(arg0);
294
290
  return addHeapObject(ret);
295
291
  };
296
292
  imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
297
293
  const ret = NewAcmeAuthz.__wrap(arg0);
298
294
  return addHeapObject(ret);
299
295
  };
296
+ imports.wbg.__wbg_newacmeorder_new = function(arg0) {
297
+ const ret = NewAcmeOrder.__wrap(arg0);
298
+ return addHeapObject(ret);
299
+ };
300
300
  imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
301
301
  const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
302
302
  return addHeapObject(ret);
303
303
  };
304
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
305
- const ret = CommitBundle.__wrap(arg0);
304
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
305
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
306
306
  return addHeapObject(ret);
307
307
  };
308
308
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
@@ -886,7 +886,7 @@ var __wbg_get_imports = function() {
886
886
  const a = state0.a;
887
887
  state0.a = 0;
888
888
  try {
889
- return __wbg_adapter_411(a, state0.b, arg02, arg12);
889
+ return __wbg_adapter_413(a, state0.b, arg02, arg12);
890
890
  } finally {
891
891
  state0.a = a;
892
892
  }
@@ -966,12 +966,12 @@ var __wbg_get_imports = function() {
966
966
  const ret = wasm.memory;
967
967
  return addHeapObject(ret);
968
968
  };
969
- imports.wbg.__wbindgen_closure_wrapper2506 = function(arg0, arg1, arg2) {
969
+ imports.wbg.__wbindgen_closure_wrapper2515 = function(arg0, arg1, arg2) {
970
970
  const ret = makeMutClosure(arg0, arg1, 651, __wbg_adapter_54);
971
971
  return addHeapObject(ret);
972
972
  };
973
- imports.wbg.__wbindgen_closure_wrapper11500 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 1597, __wbg_adapter_57);
973
+ imports.wbg.__wbindgen_closure_wrapper11461 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 1589, __wbg_adapter_57);
975
975
  return addHeapObject(ret);
976
976
  };
977
977
  return imports;
@@ -1268,6 +1268,10 @@ class BufferedDecryptedMessage {
1268
1268
  const ret = wasm.buffereddecryptedmessage_identity(this.__wbg_ptr);
1269
1269
  return ret === 0 ? undefined : WireIdentity.__wrap(ret);
1270
1270
  }
1271
+ get crl_new_distribution_points() {
1272
+ const ret = wasm.buffereddecryptedmessage_crl_new_distribution_points(this.__wbg_ptr);
1273
+ return takeObject(ret);
1274
+ }
1271
1275
  }
1272
1276
 
1273
1277
  class CommitBundle {
@@ -2564,9 +2568,11 @@ class CoreCrypto2 {
2564
2568
  isActive: m.is_active,
2565
2569
  senderClientId: m.sender_client_id,
2566
2570
  commitDelay: m.commit_delay,
2567
- hasEpochChanged: m.has_epoch_changed
2571
+ hasEpochChanged: m.has_epoch_changed,
2572
+ crlNewDistributionPoints: m.crl_new_distribution_points
2568
2573
  };
2569
- })
2574
+ }),
2575
+ crlNewDistributionPoints: ffiDecryptedMessage.crl_new_distribution_points
2570
2576
  };
2571
2577
  return ret;
2572
2578
  } catch (e) {