@wireapp/core-crypto 1.1.1 → 1.1.2

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.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -1,13 +1,3 @@
1
- declare enum CredentialType {
2
- /**
3
- * Just a KeyPair
4
- */
5
- Basic = 1,
6
- /**
7
- * A certificate obtained through e2e identity enrollment process
8
- */
9
- X509 = 2
10
- }
11
1
  declare enum WirePolicy {
12
2
  /**
13
3
  * Handshake messages are never encrypted
@@ -48,6 +38,16 @@ declare enum Ciphersuite {
48
38
  */
49
39
  MLS_256_DHKEMP384_AES256GCM_SHA384_P384 = 7
50
40
  }
41
+ declare enum CredentialType {
42
+ /**
43
+ * Just a KeyPair
44
+ */
45
+ Basic = 1,
46
+ /**
47
+ * A certificate obtained through e2e identity enrollment process
48
+ */
49
+ X509 = 2
50
+ }
51
51
  /**
52
52
  * For creating a challenge.
53
53
  * @see https://www.rfc-editor.org/rfc/rfc8555.html#section-7.5.1
@@ -187,7 +187,7 @@ function __wbg_adapter_54(arg0, arg1, arg2) {
187
187
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h04c8e12eab94d8e7(arg0, arg1, addHeapObject(arg2));
188
188
  }
189
189
  function __wbg_adapter_57(arg0, arg1, arg2) {
190
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5496ae3b7ef2feff(arg0, arg1, addHeapObject(arg2));
190
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h07cca67d94fc484f(arg0, arg1, addHeapObject(arg2));
191
191
  }
192
192
  function __wbg_adapter_60(arg0, arg1, arg2) {
193
193
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec7f3798e268a664(arg0, arg1, addHeapObject(arg2));
@@ -245,19 +245,20 @@ function handleError(f, args) {
245
245
  function __wbg_adapter_497(arg0, arg1, arg2, arg3) {
246
246
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h5053bb07030a5de3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
247
247
  }
248
- 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" });
249
- var CredentialType = Object.freeze({
250
- Basic: 1,
251
- "1": "Basic",
252
- X509: 2,
253
- "2": "X509"
254
- });
255
248
  var WirePolicy = Object.freeze({
256
249
  Plaintext: 1,
257
250
  "1": "Plaintext",
258
251
  Ciphertext: 2,
259
252
  "2": "Ciphertext"
260
253
  });
254
+ var DeviceStatus = Object.freeze({
255
+ Valid: 1,
256
+ "1": "Valid",
257
+ Expired: 2,
258
+ "2": "Expired",
259
+ Revoked: 3,
260
+ "3": "Revoked"
261
+ });
261
262
  var Ciphersuite = Object.freeze({
262
263
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
263
264
  "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
@@ -274,13 +275,12 @@ var Ciphersuite = Object.freeze({
274
275
  MLS_256_DHKEMP384_AES256GCM_SHA384_P384: 7,
275
276
  "7": "MLS_256_DHKEMP384_AES256GCM_SHA384_P384"
276
277
  });
277
- var DeviceStatus = Object.freeze({
278
- Valid: 1,
279
- "1": "Valid",
280
- Expired: 2,
281
- "2": "Expired",
282
- Revoked: 3,
283
- "3": "Revoked"
278
+ 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" });
279
+ var CredentialType = Object.freeze({
280
+ Basic: 1,
281
+ "1": "Basic",
282
+ X509: 2,
283
+ "2": "X509"
284
284
  });
285
285
  var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
286
286
  }, unregister: () => {
@@ -2033,18 +2033,26 @@ function __wbg_get_imports() {
2033
2033
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2034
2034
  takeObject(arg0);
2035
2035
  };
2036
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2037
+ const ret = BigInt.asUintN(64, arg0);
2038
+ return addHeapObject(ret);
2039
+ };
2036
2040
  imports.wbg.__wbindgen_number_new = function(arg0) {
2037
2041
  const ret = arg0;
2038
2042
  return addHeapObject(ret);
2039
2043
  };
2040
- imports.wbg.__wbg_execute_039e34486627ad47 = function() {
2044
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
2045
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
2046
+ return addHeapObject(ret);
2047
+ };
2048
+ imports.wbg.__wbg_execute_1168d8ced41f5786 = function() {
2041
2049
  return handleError(function(arg0, arg1) {
2042
2050
  const ret = getObject(arg0).execute(CoreCryptoContext.__wrap(arg1));
2043
2051
  return addHeapObject(ret);
2044
2052
  }, arguments);
2045
2053
  };
2046
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2047
- const ret = getStringFromWasm0(arg0, arg1);
2054
+ imports.wbg.__wbg_newacmeorder_new = function(arg0) {
2055
+ const ret = NewAcmeOrder.__wrap(arg0);
2048
2056
  return addHeapObject(ret);
2049
2057
  };
2050
2058
  imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
@@ -2055,34 +2063,26 @@ function __wbg_get_imports() {
2055
2063
  const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2056
2064
  return addHeapObject(ret);
2057
2065
  };
2058
- imports.wbg.__wbg_newacmeorder_new = function(arg0) {
2059
- const ret = NewAcmeOrder.__wrap(arg0);
2060
- return addHeapObject(ret);
2061
- };
2062
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
2063
- const ret = FfiWireE2EIdentity.__wrap(arg0);
2064
- return addHeapObject(ret);
2065
- };
2066
2066
  imports.wbg.__wbg_acmedirectory_new = function(arg0) {
2067
2067
  const ret = AcmeDirectory.__wrap(arg0);
2068
2068
  return addHeapObject(ret);
2069
2069
  };
2070
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2071
- const ret = BigInt.asUintN(64, arg0);
2070
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2071
+ const ret = getStringFromWasm0(arg0, arg1);
2072
2072
  return addHeapObject(ret);
2073
2073
  };
2074
2074
  imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
2075
2075
  const ret = BufferedDecryptedMessage.__wrap(arg0);
2076
2076
  return addHeapObject(ret);
2077
2077
  };
2078
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
2079
- const ret = ProposalBundle.__wrap(arg0);
2080
- return addHeapObject(ret);
2081
- };
2082
2078
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
2083
2079
  const ret = CoreCrypto.__wrap(arg0);
2084
2080
  return addHeapObject(ret);
2085
2081
  };
2082
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
2083
+ const ret = ProposalBundle.__wrap(arg0);
2084
+ return addHeapObject(ret);
2085
+ };
2086
2086
  imports.wbg.__wbg_commitbundle_new = function(arg0) {
2087
2087
  const ret = CommitBundle.__wrap(arg0);
2088
2088
  return addHeapObject(ret);
@@ -2155,6 +2155,10 @@ function __wbg_get_imports() {
2155
2155
  const ret = Date.now();
2156
2156
  return ret;
2157
2157
  };
2158
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2159
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2160
+ return addHeapObject(ret);
2161
+ };
2158
2162
  imports.wbg.__wbindgen_is_null = function(arg0) {
2159
2163
  const ret = getObject(arg0) === null;
2160
2164
  return ret;
@@ -2163,10 +2167,6 @@ function __wbg_get_imports() {
2163
2167
  const ret = getObject(arg0) === undefined;
2164
2168
  return ret;
2165
2169
  };
2166
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2167
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2168
- return addHeapObject(ret);
2169
- };
2170
2170
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2171
2171
  const ret = getObject(arg0) == getObject(arg1);
2172
2172
  return ret;
@@ -2838,12 +2838,12 @@ function __wbg_get_imports() {
2838
2838
  const ret = makeMutClosure(arg0, arg1, 751, __wbg_adapter_54);
2839
2839
  return addHeapObject(ret);
2840
2840
  };
2841
- imports.wbg.__wbindgen_closure_wrapper13858 = function(arg0, arg1, arg2) {
2842
- const ret = makeMutClosure(arg0, arg1, 2166, __wbg_adapter_57);
2841
+ imports.wbg.__wbindgen_closure_wrapper13040 = function(arg0, arg1, arg2) {
2842
+ const ret = makeMutClosure(arg0, arg1, 2019, __wbg_adapter_57);
2843
2843
  return addHeapObject(ret);
2844
2844
  };
2845
- imports.wbg.__wbindgen_closure_wrapper15358 = function(arg0, arg1, arg2) {
2846
- const ret = makeMutClosure(arg0, arg1, 2287, __wbg_adapter_60);
2845
+ imports.wbg.__wbindgen_closure_wrapper15217 = function(arg0, arg1, arg2) {
2846
+ const ret = makeMutClosure(arg0, arg1, 2263, __wbg_adapter_60);
2847
2847
  return addHeapObject(ret);
2848
2848
  };
2849
2849
  return imports;