@wireapp/core-crypto 3.0.2 → 3.1.0

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": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -1,12 +1,12 @@
1
- declare enum CredentialType {
1
+ declare enum WirePolicy {
2
2
  /**
3
- * Just a KeyPair
3
+ * Handshake messages are never encrypted
4
4
  */
5
- Basic = 1,
5
+ Plaintext = 1,
6
6
  /**
7
- * A certificate obtained through e2e identity enrollment process
7
+ * Handshake messages are always encrypted
8
8
  */
9
- X509 = 2
9
+ Ciphertext = 2
10
10
  }
11
11
  declare enum Ciphersuite {
12
12
  /**
@@ -38,15 +38,15 @@ declare enum Ciphersuite {
38
38
  */
39
39
  MLS_256_DHKEMP384_AES256GCM_SHA384_P384 = 7
40
40
  }
41
- declare enum WirePolicy {
41
+ declare enum CredentialType {
42
42
  /**
43
- * Handshake messages are never encrypted
43
+ * Just a KeyPair
44
44
  */
45
- Plaintext = 1,
45
+ Basic = 1,
46
46
  /**
47
- * Handshake messages are always encrypted
47
+ * A certificate obtained through e2e identity enrollment process
48
48
  */
49
- Ciphertext = 2
49
+ X509 = 2
50
50
  }
51
51
  /**
52
52
  * For creating a challenge.
@@ -155,7 +155,7 @@ var __wbg_adapter_54 = function(arg0, arg1, arg2) {
155
155
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff2684683db17a09(arg0, arg1, addHeapObject(arg2));
156
156
  };
157
157
  var __wbg_adapter_57 = function(arg0, arg1, arg2) {
158
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5a7de9fb06510c10(arg0, arg1, addHeapObject(arg2));
158
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52e586377d5b26c8(arg0, arg1, addHeapObject(arg2));
159
159
  };
160
160
  var __wbg_adapter_60 = function(arg0, arg1, arg2) {
161
161
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3476f7c9293a904a(arg0, arg1, addHeapObject(arg2));
@@ -242,44 +242,44 @@ var __wbg_get_imports = function() {
242
242
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
243
243
  takeObject(arg0);
244
244
  };
245
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
246
- const ret = FfiWireE2EIdentity.__wrap(arg0);
247
- return addHeapObject(ret);
248
- };
249
245
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
250
246
  const ret = getStringFromWasm0(arg0, arg1);
251
247
  return addHeapObject(ret);
252
248
  };
249
+ imports.wbg.__wbindgen_number_new = function(arg0) {
250
+ const ret = arg0;
251
+ return addHeapObject(ret);
252
+ };
253
253
  imports.wbg.__wbg_acmedirectory_new = function(arg0) {
254
254
  const ret = AcmeDirectory.__wrap(arg0);
255
255
  return addHeapObject(ret);
256
256
  };
257
- imports.wbg.__wbindgen_number_new = function(arg0) {
258
- const ret = arg0;
257
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
258
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
259
259
  return addHeapObject(ret);
260
260
  };
261
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
262
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
261
+ imports.wbg.__wbg_newacmeorder_new = function(arg0) {
262
+ const ret = NewAcmeOrder.__wrap(arg0);
263
263
  return addHeapObject(ret);
264
264
  };
265
- imports.wbg.__wbg_execute_73079ea1d8ef097c = function() {
266
- return handleError(function(arg0, arg1) {
267
- const ret = getObject(arg0).execute(CoreCryptoContext.__wrap(arg1));
268
- return addHeapObject(ret);
269
- }, arguments);
270
- };
271
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
272
- const ret = NewAcmeAuthz.__wrap(arg0);
265
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
266
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
273
267
  return addHeapObject(ret);
274
268
  };
275
269
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
276
270
  const ret = BigInt.asUintN(64, arg0);
277
271
  return addHeapObject(ret);
278
272
  };
279
- imports.wbg.__wbg_newacmeorder_new = function(arg0) {
280
- const ret = NewAcmeOrder.__wrap(arg0);
273
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
274
+ const ret = NewAcmeAuthz.__wrap(arg0);
281
275
  return addHeapObject(ret);
282
276
  };
277
+ imports.wbg.__wbg_execute_c087a9ab7c74a93b = function() {
278
+ return handleError(function(arg0, arg1) {
279
+ const ret = getObject(arg0).execute(CoreCryptoContext.__wrap(arg1));
280
+ return addHeapObject(ret);
281
+ }, arguments);
282
+ };
283
283
  imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
284
284
  const ret = BufferedDecryptedMessage.__wrap(arg0);
285
285
  return addHeapObject(ret);
@@ -288,14 +288,14 @@ var __wbg_get_imports = function() {
288
288
  const ret = CommitBundle.__wrap(arg0);
289
289
  return addHeapObject(ret);
290
290
  };
291
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
292
- const ret = ProposalBundle.__wrap(arg0);
293
- return addHeapObject(ret);
294
- };
295
291
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
296
292
  const ret = CoreCrypto.__wrap(arg0);
297
293
  return addHeapObject(ret);
298
294
  };
295
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
296
+ const ret = ProposalBundle.__wrap(arg0);
297
+ return addHeapObject(ret);
298
+ };
299
299
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
300
300
  const ret = getObject(arg0);
301
301
  return addHeapObject(ret);
@@ -1049,16 +1049,16 @@ var __wbg_get_imports = function() {
1049
1049
  const ret = v0;
1050
1050
  return addHeapObject(ret);
1051
1051
  };
1052
- imports.wbg.__wbindgen_closure_wrapper3731 = function(arg0, arg1, arg2) {
1053
- const ret = makeMutClosure(arg0, arg1, 899, __wbg_adapter_54);
1052
+ imports.wbg.__wbindgen_closure_wrapper3747 = function(arg0, arg1, arg2) {
1053
+ const ret = makeMutClosure(arg0, arg1, 901, __wbg_adapter_54);
1054
1054
  return addHeapObject(ret);
1055
1055
  };
1056
- imports.wbg.__wbindgen_closure_wrapper13455 = function(arg0, arg1, arg2) {
1057
- const ret = makeMutClosure(arg0, arg1, 2169, __wbg_adapter_57);
1056
+ imports.wbg.__wbindgen_closure_wrapper13485 = function(arg0, arg1, arg2) {
1057
+ const ret = makeMutClosure(arg0, arg1, 2175, __wbg_adapter_57);
1058
1058
  return addHeapObject(ret);
1059
1059
  };
1060
- imports.wbg.__wbindgen_closure_wrapper15450 = function(arg0, arg1, arg2) {
1061
- const ret = makeMutClosure(arg0, arg1, 2402, __wbg_adapter_60);
1060
+ imports.wbg.__wbindgen_closure_wrapper15495 = function(arg0, arg1, arg2) {
1061
+ const ret = makeMutClosure(arg0, arg1, 2410, __wbg_adapter_60);
1062
1062
  return addHeapObject(ret);
1063
1063
  };
1064
1064
  return imports;
@@ -1123,20 +1123,11 @@ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: ()
1123
1123
  wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b);
1124
1124
  });
1125
1125
  var cachedUint16ArrayMemory0 = null;
1126
- var DeviceStatus = Object.freeze({
1127
- Valid: 1,
1128
- "1": "Valid",
1129
- Expired: 2,
1130
- "2": "Expired",
1131
- Revoked: 3,
1132
- "3": "Revoked"
1133
- });
1134
- var CoreCryptoLogLevel = Object.freeze({ Off: 1, "1": "Off", Trace: 2, "2": "Trace", Debug: 3, "3": "Debug", Info: 4, "4": "Info", Warn: 5, "5": "Warn", Error: 6, "6": "Error" });
1135
- var CredentialType = Object.freeze({
1136
- Basic: 1,
1137
- "1": "Basic",
1138
- X509: 2,
1139
- "2": "X509"
1126
+ var WirePolicy = Object.freeze({
1127
+ Plaintext: 1,
1128
+ "1": "Plaintext",
1129
+ Ciphertext: 2,
1130
+ "2": "Ciphertext"
1140
1131
  });
1141
1132
  var Ciphersuite = Object.freeze({
1142
1133
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
@@ -1154,11 +1145,20 @@ var Ciphersuite = Object.freeze({
1154
1145
  MLS_256_DHKEMP384_AES256GCM_SHA384_P384: 7,
1155
1146
  "7": "MLS_256_DHKEMP384_AES256GCM_SHA384_P384"
1156
1147
  });
1157
- var WirePolicy = Object.freeze({
1158
- Plaintext: 1,
1159
- "1": "Plaintext",
1160
- Ciphertext: 2,
1161
- "2": "Ciphertext"
1148
+ var CoreCryptoLogLevel = Object.freeze({ Off: 1, "1": "Off", Trace: 2, "2": "Trace", Debug: 3, "3": "Debug", Info: 4, "4": "Info", Warn: 5, "5": "Warn", Error: 6, "6": "Error" });
1149
+ var DeviceStatus = Object.freeze({
1150
+ Valid: 1,
1151
+ "1": "Valid",
1152
+ Expired: 2,
1153
+ "2": "Expired",
1154
+ Revoked: 3,
1155
+ "3": "Revoked"
1156
+ });
1157
+ var CredentialType = Object.freeze({
1158
+ Basic: 1,
1159
+ "1": "Basic",
1160
+ X509: 2,
1161
+ "2": "X509"
1162
1162
  });
1163
1163
  var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1164
1164
  }, unregister: () => {