@signalapp/libsignal-client
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -337,2 +337,11 @@ /// <reference types="node" /> | ||
export declare function sealedSenderDecryptToUsmc(message: Buffer, identityStore: IdentityKeyStore): Promise<UnidentifiedSenderMessageContent>; | ||
export declare class Cds2Client { | ||
readonly _nativeHandle: Native.Cds2ClientState; | ||
private constructor(); | ||
static new_NOT_FOR_PRODUCTION(mrenclave: Buffer, trustedCaCert: Buffer, attestationMsg: Buffer, earliestValidTimestamp: Date): Cds2Client; | ||
initialRequest(): Buffer; | ||
completeHandshake(buffer: Buffer): void; | ||
establishedSend(buffer: Buffer): Buffer; | ||
establishedRecv(buffer: Buffer): Buffer; | ||
} | ||
export declare class HsmEnclaveClient { | ||
@@ -339,0 +348,0 @@ readonly _nativeHandle: Native.HsmEnclaveClient; |
@@ -8,3 +8,7 @@ "use strict"; | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -27,3 +31,3 @@ if (k2 === undefined) k2 = k; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.initLogger = exports.LogLevel = exports.HsmEnclaveClient = exports.sealedSenderDecryptToUsmc = exports.sealedSenderDecryptMessage = exports.sealedSenderMultiRecipientMessageForSingleRecipient = exports.sealedSenderMultiRecipientEncrypt = exports.sealedSenderEncrypt = exports.sealedSenderEncryptMessage = exports.signalDecryptPreKey = exports.signalDecrypt = exports.signalEncrypt = exports.processPreKeyBundle = exports.DecryptionErrorMessage = exports.PlaintextContent = exports.CiphertextMessage = exports.SealedSenderDecryptionResult = exports.groupDecrypt = exports.groupEncrypt = exports.SenderKeyStore = exports.SignedPreKeyStore = exports.PreKeyStore = exports.IdentityKeyStore = exports.SessionStore = exports.UnidentifiedSenderMessageContent = exports.SenderKeyMessage = exports.processSenderKeyDistributionMessage = exports.SenderKeyDistributionMessage = exports.SenderCertificate = exports.SenderKeyRecord = exports.ServerCertificate = exports.SessionRecord = exports.PreKeySignalMessage = exports.SignalMessage = exports.SignedPreKeyRecord = exports.PreKeyRecord = exports.PreKeyBundle = exports.IdentityKeyPair = exports.PrivateKey = exports.PublicKey = exports.Aes256GcmSiv = exports.Fingerprint = exports.DisplayableFingerprint = exports.ScannableFingerprint = exports.hkdf = exports.HKDF = exports.ContentHint = exports.Direction = exports.CiphertextMessageType = void 0; | ||
exports.initLogger = exports.LogLevel = exports.HsmEnclaveClient = exports.Cds2Client = exports.sealedSenderDecryptToUsmc = exports.sealedSenderDecryptMessage = exports.sealedSenderMultiRecipientMessageForSingleRecipient = exports.sealedSenderMultiRecipientEncrypt = exports.sealedSenderEncrypt = exports.sealedSenderEncryptMessage = exports.signalDecryptPreKey = exports.signalDecrypt = exports.signalEncrypt = exports.processPreKeyBundle = exports.DecryptionErrorMessage = exports.PlaintextContent = exports.CiphertextMessage = exports.SealedSenderDecryptionResult = exports.groupDecrypt = exports.groupEncrypt = exports.SenderKeyStore = exports.SignedPreKeyStore = exports.PreKeyStore = exports.IdentityKeyStore = exports.SessionStore = exports.UnidentifiedSenderMessageContent = exports.SenderKeyMessage = exports.processSenderKeyDistributionMessage = exports.SenderKeyDistributionMessage = exports.SenderCertificate = exports.SenderKeyRecord = exports.ServerCertificate = exports.SessionRecord = exports.PreKeySignalMessage = exports.SignalMessage = exports.SignedPreKeyRecord = exports.PreKeyRecord = exports.PreKeyBundle = exports.IdentityKeyPair = exports.PrivateKey = exports.PublicKey = exports.Aes256GcmSiv = exports.Fingerprint = exports.DisplayableFingerprint = exports.ScannableFingerprint = exports.hkdf = exports.HKDF = exports.ContentHint = exports.Direction = exports.CiphertextMessageType = void 0; | ||
const uuid = require("uuid"); | ||
@@ -869,2 +873,23 @@ const Errors = require("./Errors"); | ||
exports.sealedSenderDecryptToUsmc = sealedSenderDecryptToUsmc; | ||
class Cds2Client { | ||
constructor(nativeHandle) { | ||
this._nativeHandle = nativeHandle; | ||
} | ||
static new_NOT_FOR_PRODUCTION(mrenclave, trustedCaCert, attestationMsg, earliestValidTimestamp) { | ||
return new Cds2Client(Native.Cds2ClientState_New(mrenclave, trustedCaCert, attestationMsg, earliestValidTimestamp.getTime())); | ||
} | ||
initialRequest() { | ||
return Native.Cds2ClientState_InitialRequest(this); | ||
} | ||
completeHandshake(buffer) { | ||
return Native.Cds2ClientState_CompleteHandshake(this, buffer); | ||
} | ||
establishedSend(buffer) { | ||
return Native.Cds2ClientState_EstablishedSend(this, buffer); | ||
} | ||
establishedRecv(buffer) { | ||
return Native.Cds2ClientState_EstablishedRecv(this, buffer); | ||
} | ||
} | ||
exports.Cds2Client = Cds2Client; | ||
class HsmEnclaveClient { | ||
@@ -871,0 +896,0 @@ constructor(nativeHandle) { |
@@ -58,2 +58,7 @@ // | ||
export function AuthCredential_CheckValidContents(buffer: Buffer): void; | ||
export function Cds2ClientState_CompleteHandshake(cli: Wrapper<Cds2ClientState>, handshakeReceived: Buffer): void; | ||
export function Cds2ClientState_EstablishedRecv(cli: Wrapper<Cds2ClientState>, receivedCiphertext: Buffer): Buffer; | ||
export function Cds2ClientState_EstablishedSend(cli: Wrapper<Cds2ClientState>, plaintextToSend: Buffer): Buffer; | ||
export function Cds2ClientState_InitialRequest(obj: Wrapper<Cds2ClientState>): Buffer; | ||
export function Cds2ClientState_New(mrenclave: Buffer, caCert: Buffer, attestationMsg: Buffer, earliestValidTimestamp: Timestamp): Cds2ClientState; | ||
export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage; | ||
@@ -283,2 +288,3 @@ export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Buffer; | ||
interface AuthCredentialResponse { readonly __type: unique symbol; } | ||
interface Cds2ClientState { readonly __type: unique symbol; } | ||
interface CiphertextMessage { readonly __type: unique symbol; } | ||
@@ -285,0 +291,0 @@ interface DecryptionErrorMessage { readonly __type: unique symbol; } |
{ | ||
"name": "@signalapp/libsignal-client", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"license": "AGPL-3.0-only", | ||
@@ -23,3 +23,3 @@ "main": "dist/index.js", | ||
"clean": "rimraf dist build prebuilds", | ||
"test": "electron-mocha --recursive dist/test --require source-map-support/register", | ||
"test": "mocha --recursive dist/test --require source-map-support/register", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx", | ||
@@ -43,4 +43,2 @@ "format": "p() { prettier ${@:- --write} '**/*.{css,js,json,md,scss,ts,tsx}'; }; p" | ||
"chai-as-promised": "^7.1.1", | ||
"electron": "13.3.0", | ||
"electron-mocha": "^10.0", | ||
"eslint": "^7.12.1", | ||
@@ -52,3 +50,3 @@ "eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-more": "^1.0.0", | ||
"mocha": "*", | ||
"mocha": "^9", | ||
"node-gyp": "^8.4.1", | ||
@@ -58,4 +56,4 @@ "prettier": "^1.19.1", | ||
"source-map-support": "^0.5.19", | ||
"typescript": "4.4.2" | ||
"typescript": "4.6.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21932862
22
3157
3