@wireapp/core-crypto 4.0.0 → 4.0.1
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 +1 -1
- package/src/core-crypto-ffi_bg.wasm +0 -0
- package/src/core-crypto-ffi_bg.wasm.d.ts +4 -4
- package/src/corecrypto.d.ts +10 -10
- package/src/corecrypto.js +39 -39
package/package.json
CHANGED
Binary file
|
@@ -228,9 +228,9 @@ export function __wbindgen_malloc(a: number, b: number): number;
|
|
228
228
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
229
229
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
230
230
|
export const __wbindgen_export_3: WebAssembly.Table;
|
231
|
-
export function
|
232
|
-
export function
|
233
|
-
export function
|
231
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1879890fdb6b4d62(a: number, b: number, c: number): void;
|
232
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19ee4d2edb024bf0(a: number, b: number, c: number): void;
|
233
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha44976f1fb2b6d28(a: number, b: number, c: number): void;
|
234
234
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
235
235
|
export function __wbindgen_exn_store(a: number): void;
|
236
|
-
export function
|
236
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h3fa2d44732785951(a: number, b: number, c: number, d: number): void;
|
package/src/corecrypto.d.ts
CHANGED
@@ -34,6 +34,16 @@ declare enum CredentialType {
|
|
34
34
|
*/
|
35
35
|
X509 = 2
|
36
36
|
}
|
37
|
+
declare enum WirePolicy {
|
38
|
+
/**
|
39
|
+
* Handshake messages are never encrypted
|
40
|
+
*/
|
41
|
+
Plaintext = 1,
|
42
|
+
/**
|
43
|
+
* Handshake messages are always encrypted
|
44
|
+
*/
|
45
|
+
Ciphertext = 2
|
46
|
+
}
|
37
47
|
declare enum Ciphersuite {
|
38
48
|
/**
|
39
49
|
* DH KEM x25519 | AES-GCM 128 | SHA2-256 | Ed25519
|
@@ -64,16 +74,6 @@ declare enum Ciphersuite {
|
|
64
74
|
*/
|
65
75
|
MLS_256_DHKEMP384_AES256GCM_SHA384_P384 = 7
|
66
76
|
}
|
67
|
-
declare enum WirePolicy {
|
68
|
-
/**
|
69
|
-
* Handshake messages are never encrypted
|
70
|
-
*/
|
71
|
-
Plaintext = 1,
|
72
|
-
/**
|
73
|
-
* Handshake messages are always encrypted
|
74
|
-
*/
|
75
|
-
Ciphertext = 2
|
76
|
-
}
|
77
77
|
declare class AcmeChallenge {
|
78
78
|
free(): void;
|
79
79
|
/**
|
package/src/corecrypto.js
CHANGED
@@ -262,13 +262,13 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
262
262
|
return real;
|
263
263
|
}
|
264
264
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
265
|
-
wasm.
|
265
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1879890fdb6b4d62(arg0, arg1, addHeapObject(arg2));
|
266
266
|
}
|
267
267
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
268
|
-
wasm.
|
268
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19ee4d2edb024bf0(arg0, arg1, addHeapObject(arg2));
|
269
269
|
}
|
270
270
|
function __wbg_adapter_60(arg0, arg1, arg2) {
|
271
|
-
wasm.
|
271
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha44976f1fb2b6d28(arg0, arg1, addHeapObject(arg2));
|
272
272
|
}
|
273
273
|
function getArrayJsValueFromWasm0(ptr, len) {
|
274
274
|
ptr = ptr >>> 0;
|
@@ -321,15 +321,8 @@ function handleError(f, args) {
|
|
321
321
|
}
|
322
322
|
}
|
323
323
|
function __wbg_adapter_489(arg0, arg1, arg2, arg3) {
|
324
|
-
wasm.
|
324
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h3fa2d44732785951(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
325
325
|
}
|
326
|
-
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" });
|
327
|
-
var CredentialType = Object.freeze({
|
328
|
-
Basic: 1,
|
329
|
-
"1": "Basic",
|
330
|
-
X509: 2,
|
331
|
-
"2": "X509"
|
332
|
-
});
|
333
326
|
var DeviceStatus = Object.freeze({
|
334
327
|
Valid: 1,
|
335
328
|
"1": "Valid",
|
@@ -338,6 +331,19 @@ var DeviceStatus = Object.freeze({
|
|
338
331
|
Revoked: 3,
|
339
332
|
"3": "Revoked"
|
340
333
|
});
|
334
|
+
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" });
|
335
|
+
var CredentialType = Object.freeze({
|
336
|
+
Basic: 1,
|
337
|
+
"1": "Basic",
|
338
|
+
X509: 2,
|
339
|
+
"2": "X509"
|
340
|
+
});
|
341
|
+
var WirePolicy = Object.freeze({
|
342
|
+
Plaintext: 1,
|
343
|
+
"1": "Plaintext",
|
344
|
+
Ciphertext: 2,
|
345
|
+
"2": "Ciphertext"
|
346
|
+
});
|
341
347
|
var Ciphersuite = Object.freeze({
|
342
348
|
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
|
343
349
|
"1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
|
@@ -354,12 +360,6 @@ var Ciphersuite = Object.freeze({
|
|
354
360
|
MLS_256_DHKEMP384_AES256GCM_SHA384_P384: 7,
|
355
361
|
"7": "MLS_256_DHKEMP384_AES256GCM_SHA384_P384"
|
356
362
|
});
|
357
|
-
var WirePolicy = Object.freeze({
|
358
|
-
Plaintext: 1,
|
359
|
-
"1": "Plaintext",
|
360
|
-
Ciphertext: 2,
|
361
|
-
"2": "Ciphertext"
|
362
|
-
});
|
363
363
|
var MlsTransportResponseVariant = Object.freeze({ Success: 1, "1": "Success", Retry: 2, "2": "Retry", Abort: 3, "3": "Abort" });
|
364
364
|
var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
365
365
|
}, unregister: () => {
|
@@ -2229,6 +2229,10 @@ function __wbg_get_imports() {
|
|
2229
2229
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
2230
2230
|
takeObject(arg0);
|
2231
2231
|
};
|
2232
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
2233
|
+
const ret = BigInt.asUintN(64, arg0);
|
2234
|
+
return addHeapObject(ret);
|
2235
|
+
};
|
2232
2236
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
2233
2237
|
const ret = arg0;
|
2234
2238
|
return addHeapObject(ret);
|
@@ -2237,34 +2241,30 @@ function __wbg_get_imports() {
|
|
2237
2241
|
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
2238
2242
|
return addHeapObject(ret);
|
2239
2243
|
};
|
2240
|
-
imports.wbg.
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
2244
|
-
|
2245
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
2246
|
-
return addHeapObject(ret);
|
2244
|
+
imports.wbg.__wbg_execute_a1f38c935158e8f4 = function() {
|
2245
|
+
return handleError(function(arg0, arg1) {
|
2246
|
+
const ret = getObject(arg0).execute(CoreCryptoContext.__wrap(arg1));
|
2247
|
+
return addHeapObject(ret);
|
2248
|
+
}, arguments);
|
2247
2249
|
};
|
2248
2250
|
imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
|
2249
2251
|
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
2250
2252
|
return addHeapObject(ret);
|
2251
2253
|
};
|
2252
|
-
imports.wbg.
|
2253
|
-
const ret =
|
2254
|
+
imports.wbg.__wbg_acmedirectory_new = function(arg0) {
|
2255
|
+
const ret = AcmeDirectory.__wrap(arg0);
|
2254
2256
|
return addHeapObject(ret);
|
2255
2257
|
};
|
2256
|
-
imports.wbg.__wbg_execute_4a2ba724b9c437cf = function() {
|
2257
|
-
return handleError(function(arg0, arg1) {
|
2258
|
-
const ret = getObject(arg0).execute(CoreCryptoContext.__wrap(arg1));
|
2259
|
-
return addHeapObject(ret);
|
2260
|
-
}, arguments);
|
2261
|
-
};
|
2262
2258
|
imports.wbg.__wbg_newacmeorder_new = function(arg0) {
|
2263
2259
|
const ret = NewAcmeOrder.__wrap(arg0);
|
2264
2260
|
return addHeapObject(ret);
|
2265
2261
|
};
|
2266
|
-
imports.wbg.
|
2267
|
-
const ret =
|
2262
|
+
imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
|
2263
|
+
const ret = NewAcmeAuthz.__wrap(arg0);
|
2264
|
+
return addHeapObject(ret);
|
2265
|
+
};
|
2266
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
2267
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
2268
2268
|
return addHeapObject(ret);
|
2269
2269
|
};
|
2270
2270
|
imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
|
@@ -3011,16 +3011,16 @@ function __wbg_get_imports() {
|
|
3011
3011
|
const ret = v0;
|
3012
3012
|
return addHeapObject(ret);
|
3013
3013
|
};
|
3014
|
-
imports.wbg.
|
3014
|
+
imports.wbg.__wbindgen_closure_wrapper3578 = function(arg0, arg1, arg2) {
|
3015
3015
|
const ret = makeMutClosure(arg0, arg1, 857, __wbg_adapter_54);
|
3016
3016
|
return addHeapObject(ret);
|
3017
3017
|
};
|
3018
|
-
imports.wbg.
|
3019
|
-
const ret = makeMutClosure(arg0, arg1,
|
3018
|
+
imports.wbg.__wbindgen_closure_wrapper13466 = function(arg0, arg1, arg2) {
|
3019
|
+
const ret = makeMutClosure(arg0, arg1, 2326, __wbg_adapter_57);
|
3020
3020
|
return addHeapObject(ret);
|
3021
3021
|
};
|
3022
|
-
imports.wbg.
|
3023
|
-
const ret = makeMutClosure(arg0, arg1,
|
3022
|
+
imports.wbg.__wbindgen_closure_wrapper14484 = function(arg0, arg1, arg2) {
|
3023
|
+
const ret = makeMutClosure(arg0, arg1, 2514, __wbg_adapter_60);
|
3024
3024
|
return addHeapObject(ret);
|
3025
3025
|
};
|
3026
3026
|
return imports;
|