@wireapp/core-crypto 1.0.0-rc.27 → 1.0.0-rc.28

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.27",
3
+ "version": "1.0.0-rc.28",
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);
@@ -262,43 +262,43 @@ 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_acmedirectory_new = function(arg0) {
266
- const ret = AcmeDirectory.__wrap(arg0);
265
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
266
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
267
267
  return addHeapObject(ret);
268
268
  };
269
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
270
- const ret = CommitBundle.__wrap(arg0);
271
- return addHeapObject(ret);
269
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
270
+ takeObject(arg0);
272
271
  };
273
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
274
- const ret = NewAcmeAuthz.__wrap(arg0);
272
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
273
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
275
274
  return addHeapObject(ret);
276
275
  };
277
276
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
278
277
  const ret = CoreCrypto.__wrap(arg0);
279
278
  return addHeapObject(ret);
280
279
  };
281
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
282
- const ret = ProposalBundle.__wrap(arg0);
280
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
281
+ const ret = CommitBundle.__wrap(arg0);
283
282
  return addHeapObject(ret);
284
283
  };
285
- imports.wbg.__wbindgen_number_new = function(arg0) {
286
- const ret = arg0;
284
+ imports.wbg.__wbg_newacmeorder_new = function(arg0) {
285
+ const ret = NewAcmeOrder.__wrap(arg0);
287
286
  return addHeapObject(ret);
288
287
  };
289
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
290
- const ret = BufferedDecryptedMessage.__wrap(arg0);
288
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
289
+ const ret = NewAcmeAuthz.__wrap(arg0);
291
290
  return addHeapObject(ret);
292
291
  };
293
- imports.wbg.__wbg_newacmeorder_new = function(arg0) {
294
- const ret = NewAcmeOrder.__wrap(arg0);
292
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
293
+ const ret = AcmeDirectory.__wrap(arg0);
295
294
  return addHeapObject(ret);
296
295
  };
297
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
298
- takeObject(arg0);
296
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
297
+ const ret = ProposalBundle.__wrap(arg0);
298
+ return addHeapObject(ret);
299
299
  };
300
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
301
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
300
+ imports.wbg.__wbindgen_number_new = function(arg0) {
301
+ const ret = arg0;
302
302
  return addHeapObject(ret);
303
303
  };
304
304
  imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
@@ -970,8 +970,8 @@ var __wbg_get_imports = function() {
970
970
  const ret = makeMutClosure(arg0, arg1, 649, __wbg_adapter_54);
971
971
  return addHeapObject(ret);
972
972
  };
973
- imports.wbg.__wbindgen_closure_wrapper11421 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 1576, __wbg_adapter_57);
973
+ imports.wbg.__wbindgen_closure_wrapper11476 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 1584, __wbg_adapter_57);
975
975
  return addHeapObject(ret);
976
976
  };
977
977
  return imports;
@@ -1033,12 +1033,6 @@ var cachedFloat64Memory0 = null;
1033
1033
  var cachedBigInt64Memory0 = null;
1034
1034
  var cachedUint32Memory0 = null;
1035
1035
  var cachedUint16Memory0 = null;
1036
- var CredentialType = Object.freeze({
1037
- Basic: 1,
1038
- "1": "Basic",
1039
- X509: 2,
1040
- "2": "X509"
1041
- });
1042
1036
  var Ciphersuite = Object.freeze({
1043
1037
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
1044
1038
  "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
@@ -1057,6 +1051,12 @@ var Ciphersuite = Object.freeze({
1057
1051
  MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1058
1052
  "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1059
1053
  });
1054
+ var WirePolicy = Object.freeze({
1055
+ Plaintext: 1,
1056
+ "1": "Plaintext",
1057
+ Ciphertext: 2,
1058
+ "2": "Ciphertext"
1059
+ });
1060
1060
  var DeviceStatus = Object.freeze({
1061
1061
  Valid: 0,
1062
1062
  "0": "Valid",
@@ -1065,11 +1065,11 @@ var DeviceStatus = Object.freeze({
1065
1065
  Revoked: 2,
1066
1066
  "2": "Revoked"
1067
1067
  });
1068
- var WirePolicy = Object.freeze({
1069
- Plaintext: 1,
1070
- "1": "Plaintext",
1071
- Ciphertext: 2,
1072
- "2": "Ciphertext"
1068
+ var CredentialType = Object.freeze({
1069
+ Basic: 1,
1070
+ "1": "Basic",
1071
+ X509: 2,
1072
+ "2": "X509"
1073
1073
  });
1074
1074
 
1075
1075
  class AcmeChallenge {