@wireapp/core-crypto 1.0.0-rc.51 → 1.0.0-rc.53

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "1.0.0-rc.51",
3
+ "version": "1.0.0-rc.53",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -265,16 +265,20 @@ async function __wbg_load(module, imports) {
265
265
  var __wbg_get_imports = function() {
266
266
  const imports = {};
267
267
  imports.wbg = {};
268
- imports.wbg.__wbindgen_number_new = function(arg0) {
269
- const ret = arg0;
268
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
269
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
270
+ return addHeapObject(ret);
271
+ };
272
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
273
+ const ret = ProposalBundle.__wrap(arg0);
270
274
  return addHeapObject(ret);
271
275
  };
272
276
  imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
273
277
  const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
274
278
  return addHeapObject(ret);
275
279
  };
276
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
277
- const ret = ProposalBundle.__wrap(arg0);
280
+ imports.wbg.__wbindgen_number_new = function(arg0) {
281
+ const ret = arg0;
278
282
  return addHeapObject(ret);
279
283
  };
280
284
  imports.wbg.__wbg_commitbundle_new = function(arg0) {
@@ -284,38 +288,30 @@ var __wbg_get_imports = function() {
284
288
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
285
289
  takeObject(arg0);
286
290
  };
287
- imports.wbg.__wbg_corecrypto_new = function(arg0) {
288
- const ret = CoreCrypto.__wrap(arg0);
291
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
292
+ const ret = NewAcmeAuthz.__wrap(arg0);
289
293
  return addHeapObject(ret);
290
294
  };
291
295
  imports.wbg.__wbg_newacmeorder_new = function(arg0) {
292
296
  const ret = NewAcmeOrder.__wrap(arg0);
293
297
  return addHeapObject(ret);
294
298
  };
295
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
296
- const ret = BufferedDecryptedMessage.__wrap(arg0);
297
- return addHeapObject(ret);
298
- };
299
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
300
- const ret = NewAcmeAuthz.__wrap(arg0);
299
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
300
+ const ret = AcmeDirectory.__wrap(arg0);
301
301
  return addHeapObject(ret);
302
302
  };
303
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
304
- const ret = FfiWireE2EIdentity.__wrap(arg0);
303
+ imports.wbg.__wbg_corecrypto_new = function(arg0) {
304
+ const ret = CoreCrypto.__wrap(arg0);
305
305
  return addHeapObject(ret);
306
306
  };
307
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
308
- const ret = AcmeDirectory.__wrap(arg0);
307
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
308
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
309
309
  return addHeapObject(ret);
310
310
  };
311
311
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
312
312
  const ret = getObject(arg0);
313
313
  return addHeapObject(ret);
314
314
  };
315
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
316
- const ret = BigInt.asUintN(64, arg0);
317
- return addHeapObject(ret);
318
- };
319
315
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
320
316
  const ret = getStringFromWasm0(arg0, arg1);
321
317
  return addHeapObject(ret);
@@ -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;
@@ -983,8 +983,8 @@ var __wbg_get_imports = function() {
983
983
  const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_54);
984
984
  return addHeapObject(ret);
985
985
  };
986
- imports.wbg.__wbindgen_closure_wrapper13332 = function(arg0, arg1, arg2) {
987
- const ret = makeMutClosure(arg0, arg1, 2203, __wbg_adapter_57);
986
+ imports.wbg.__wbindgen_closure_wrapper13336 = function(arg0, arg1, arg2) {
987
+ const ret = makeMutClosure(arg0, arg1, 2201, __wbg_adapter_57);
988
988
  return addHeapObject(ret);
989
989
  };
990
990
  return imports;
@@ -1051,6 +1051,24 @@ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: ()
1051
1051
  });
1052
1052
  var cachedUint32Memory0 = null;
1053
1053
  var cachedUint16Memory0 = null;
1054
+ var Ciphersuite = Object.freeze({
1055
+ MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
1056
+ "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
1057
+ MLS_128_DHKEMP256_AES128GCM_SHA256_P256: 2,
1058
+ "2": "MLS_128_DHKEMP256_AES128GCM_SHA256_P256",
1059
+ MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519: 3,
1060
+ "3": "MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519",
1061
+ MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448: 4,
1062
+ "4": "MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448",
1063
+ MLS_256_DHKEMP521_AES256GCM_SHA512_P521: 5,
1064
+ "5": "MLS_256_DHKEMP521_AES256GCM_SHA512_P521",
1065
+ MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448: 6,
1066
+ "6": "MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448",
1067
+ MLS_256_DHKEMP384_AES256GCM_SHA384_P384: 7,
1068
+ "7": "MLS_256_DHKEMP384_AES256GCM_SHA384_P384",
1069
+ MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1070
+ "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1071
+ });
1054
1072
  var WirePolicy = Object.freeze({
1055
1073
  Plaintext: 1,
1056
1074
  "1": "Plaintext",
@@ -1071,24 +1089,6 @@ var CredentialType = Object.freeze({
1071
1089
  X509: 2,
1072
1090
  "2": "X509"
1073
1091
  });
1074
- var Ciphersuite = Object.freeze({
1075
- MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
1076
- "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
1077
- MLS_128_DHKEMP256_AES128GCM_SHA256_P256: 2,
1078
- "2": "MLS_128_DHKEMP256_AES128GCM_SHA256_P256",
1079
- MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519: 3,
1080
- "3": "MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519",
1081
- MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448: 4,
1082
- "4": "MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448",
1083
- MLS_256_DHKEMP521_AES256GCM_SHA512_P521: 5,
1084
- "5": "MLS_256_DHKEMP521_AES256GCM_SHA512_P521",
1085
- MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448: 6,
1086
- "6": "MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448",
1087
- MLS_256_DHKEMP384_AES256GCM_SHA384_P384: 7,
1088
- "7": "MLS_256_DHKEMP384_AES256GCM_SHA384_P384",
1089
- MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1090
- "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1091
- });
1092
1092
  var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1093
1093
  }, unregister: () => {
1094
1094
  } } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0));