@wireapp/core-crypto 2.0.0 → 3.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/platforms/web/core-crypto-ffi_bg.wasm +0 -0
- package/platforms/web/corecrypto.d.ts +24 -10
- package/platforms/web/corecrypto.js +2465 -2464
package/package.json
CHANGED
|
Binary file
|
|
@@ -28,16 +28,6 @@ declare enum Ciphersuite {
|
|
|
28
28
|
*/
|
|
29
29
|
MLS_256_DHKEMP384_AES256GCM_SHA384_P384 = 7
|
|
30
30
|
}
|
|
31
|
-
declare enum WirePolicy {
|
|
32
|
-
/**
|
|
33
|
-
* Handshake messages are never encrypted
|
|
34
|
-
*/
|
|
35
|
-
Plaintext = 1,
|
|
36
|
-
/**
|
|
37
|
-
* Handshake messages are always encrypted
|
|
38
|
-
*/
|
|
39
|
-
Ciphertext = 2
|
|
40
|
-
}
|
|
41
31
|
declare enum CredentialType {
|
|
42
32
|
/**
|
|
43
33
|
* Just a KeyPair
|
|
@@ -48,6 +38,16 @@ declare enum CredentialType {
|
|
|
48
38
|
*/
|
|
49
39
|
X509 = 2
|
|
50
40
|
}
|
|
41
|
+
declare enum WirePolicy {
|
|
42
|
+
/**
|
|
43
|
+
* Handshake messages are never encrypted
|
|
44
|
+
*/
|
|
45
|
+
Plaintext = 1,
|
|
46
|
+
/**
|
|
47
|
+
* Handshake messages are always encrypted
|
|
48
|
+
*/
|
|
49
|
+
Ciphertext = 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
|
|
@@ -437,6 +437,13 @@ declare class CoreCryptoContext {
|
|
|
437
437
|
/**
|
|
438
438
|
* Returns: [`WasmCryptoResult<()>`]
|
|
439
439
|
*
|
|
440
|
+
* see [core_crypto::proteus::ProteusCentral::try_new]
|
|
441
|
+
* @returns {Promise<any>}
|
|
442
|
+
*/
|
|
443
|
+
proteus_init(): Promise<any>;
|
|
444
|
+
/**
|
|
445
|
+
* Returns: [`WasmCryptoResult<()>`]
|
|
446
|
+
*
|
|
440
447
|
* See [core_crypto::context::CentralContext::proteus_session_from_prekey]
|
|
441
448
|
* @param {string} session_id
|
|
442
449
|
* @param {Uint8Array} prekey
|
|
@@ -1281,6 +1288,10 @@ declare class CoreCryptoContext$1 {
|
|
|
1281
1288
|
* @returns A `Uint8Array` buffer that contains `length` cryptographically-secure random bytes
|
|
1282
1289
|
*/
|
|
1283
1290
|
randomBytes(length: number): Promise<Uint8Array>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Initializes the proteus client
|
|
1293
|
+
*/
|
|
1294
|
+
proteusInit(): Promise<void>;
|
|
1284
1295
|
/**
|
|
1285
1296
|
* Create a Proteus session using a prekey
|
|
1286
1297
|
*
|
|
@@ -2661,6 +2672,9 @@ export declare class CoreCrypto {
|
|
|
2661
2672
|
reseedRng(seed: Uint8Array): Promise<void>;
|
|
2662
2673
|
/**
|
|
2663
2674
|
* Initializes the proteus client
|
|
2675
|
+
*
|
|
2676
|
+
* @deprecated Create a transaction with {@link CoreCrypto.transaction}
|
|
2677
|
+
* and use {@link CoreCryptoContext.proteusInit} instead.
|
|
2664
2678
|
*/
|
|
2665
2679
|
proteusInit(): Promise<void>;
|
|
2666
2680
|
/**
|