@signalapp/libsignal-client
Advanced tools
Comparing version 0.26.0 to 0.27.0
@@ -82,2 +82,24 @@ /// <reference types="node" /> | ||
} | ||
export declare class KEMPublicKey { | ||
readonly _nativeHandle: Native.KyberPublicKey; | ||
private constructor(); | ||
static _fromNativeHandle(handle: Native.KyberPublicKey): KEMPublicKey; | ||
static deserialize(buf: Buffer): KEMPublicKey; | ||
serialize(): Buffer; | ||
} | ||
export declare class KEMSecretKey { | ||
readonly _nativeHandle: Native.KyberSecretKey; | ||
private constructor(); | ||
static _fromNativeHandle(handle: Native.KyberSecretKey): KEMSecretKey; | ||
static deserialize(buf: Buffer): KEMSecretKey; | ||
serialize(): Buffer; | ||
} | ||
export declare class KEMKeyPair { | ||
readonly _nativeHandle: Native.KyberKeyPair; | ||
private constructor(); | ||
static _fromNativeHandle(handle: Native.KyberKeyPair): KEMKeyPair; | ||
static generate(): KEMKeyPair; | ||
getPublicKey(): KEMPublicKey; | ||
getSecretKey(): KEMSecretKey; | ||
} | ||
export declare class IdentityKeyPair { | ||
@@ -95,3 +117,3 @@ readonly publicKey: PublicKey; | ||
private constructor(); | ||
static new(registration_id: number, device_id: number, prekey_id: number | null, prekey: PublicKey | null, signed_prekey_id: number, signed_prekey: PublicKey, signed_prekey_signature: Buffer, identity_key: PublicKey): PreKeyBundle; | ||
static new(registration_id: number, device_id: number, prekey_id: number | null, prekey: PublicKey | null, signed_prekey_id: number, signed_prekey: PublicKey, signed_prekey_signature: Buffer, identity_key: PublicKey, kyber_prekey_id?: number | null, kyber_prekey?: KEMPublicKey | null, kyber_prekey_signature?: Buffer | null): PreKeyBundle; | ||
deviceId(): number; | ||
@@ -105,2 +127,5 @@ identityKey(): PublicKey; | ||
signedPreKeySignature(): Buffer; | ||
kyberPreKeyId(): number | null; | ||
kyberPreKeyPublic(): KEMPublicKey | null; | ||
kyberPreKeySignature(): Buffer | null; | ||
} | ||
@@ -131,2 +156,16 @@ export declare class PreKeyRecord { | ||
} | ||
export declare class KyberPreKeyRecord { | ||
readonly _nativeHandle: Native.KyberPreKeyRecord; | ||
private constructor(); | ||
static _fromNativeHandle(nativeHandle: Native.KyberPreKeyRecord): KyberPreKeyRecord; | ||
static new(id: number, timestamp: number, keyPair: KEMKeyPair, signature: Buffer): KyberPreKeyRecord; | ||
serialize(): Buffer; | ||
static deserialize(buffer: Buffer): KyberPreKeyRecord; | ||
id(): number; | ||
keyPair(): KEMKeyPair; | ||
publicKey(): KEMPublicKey; | ||
secretKey(): KEMSecretKey; | ||
signature(): Buffer; | ||
timestamp(): number; | ||
} | ||
export declare class SignalMessage { | ||
@@ -273,2 +312,10 @@ readonly _nativeHandle: Native.SignalMessage; | ||
} | ||
export declare abstract class KyberPreKeyStore implements Native.KyberPreKeyStore { | ||
_saveKyberPreKey(kyberPreKeyId: number, record: Native.KyberPreKeyRecord): Promise<void>; | ||
_getKyberPreKey(kyberPreKeyId: number): Promise<Native.KyberPreKeyRecord>; | ||
_markKyberPreKeyUsed(kyberPreKeyId: number): Promise<void>; | ||
abstract saveKyberPreKey(kyberPreKeyId: number, record: KyberPreKeyRecord): Promise<void>; | ||
abstract getKyberPreKey(kyberPreKeyId: number): Promise<KyberPreKeyRecord>; | ||
abstract markKyberPreKeyUsed(kyberPreKeyId: number): Promise<void>; | ||
} | ||
export declare abstract class SenderKeyStore implements Native.SenderKeyStore { | ||
@@ -326,3 +373,3 @@ _saveSenderKey(sender: Native.ProtocolAddress, distributionId: Native.Uuid, record: Native.SenderKeyRecord): Promise<void>; | ||
export declare function signalDecrypt(message: SignalMessage, address: ProtocolAddress, sessionStore: SessionStore, identityStore: IdentityKeyStore): Promise<Buffer>; | ||
export declare function signalDecryptPreKey(message: PreKeySignalMessage, address: ProtocolAddress, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore): Promise<Buffer>; | ||
export declare function signalDecryptPreKey(message: PreKeySignalMessage, address: ProtocolAddress, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore): Promise<Buffer>; | ||
export declare function sealedSenderEncryptMessage(message: Buffer, address: ProtocolAddress, senderCert: SenderCertificate, sessionStore: SessionStore, identityStore: IdentityKeyStore): Promise<Buffer>; | ||
@@ -332,3 +379,3 @@ export declare function sealedSenderEncrypt(content: UnidentifiedSenderMessageContent, address: ProtocolAddress, identityStore: IdentityKeyStore): Promise<Buffer>; | ||
export declare function sealedSenderMultiRecipientMessageForSingleRecipient(message: Buffer): Buffer; | ||
export declare function sealedSenderDecryptMessage(message: Buffer, trustRoot: PublicKey, timestamp: number, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore): Promise<SealedSenderDecryptionResult>; | ||
export declare function sealedSenderDecryptMessage(message: Buffer, trustRoot: PublicKey, timestamp: number, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore): Promise<SealedSenderDecryptionResult>; | ||
export declare function sealedSenderDecryptToUsmc(message: Buffer, identityStore: IdentityKeyStore): Promise<UnidentifiedSenderMessageContent>; | ||
@@ -335,0 +382,0 @@ export declare class Cds2Client { |
@@ -30,4 +30,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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 = exports.Mp4Sanitizer = exports.io = exports.usernames = void 0; | ||
exports.initLogger = exports.LogLevel = exports.HsmEnclaveClient = void 0; | ||
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.KyberPreKeyStore = 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.KyberPreKeyRecord = exports.SignedPreKeyRecord = exports.PreKeyRecord = exports.PreKeyBundle = exports.IdentityKeyPair = exports.KEMKeyPair = exports.KEMSecretKey = exports.KEMPublicKey = exports.PrivateKey = exports.PublicKey = exports.Aes256GcmSiv = exports.Fingerprint = exports.DisplayableFingerprint = exports.ScannableFingerprint = exports.hkdf = exports.HKDF = exports.ContentHint = exports.Direction = exports.CiphertextMessageType = exports.Mp4Sanitizer = exports.io = exports.usernames = void 0; | ||
exports.initLogger = exports.LogLevel = exports.HsmEnclaveClient = exports.Cds2Client = exports.sealedSenderDecryptToUsmc = exports.sealedSenderDecryptMessage = exports.sealedSenderMultiRecipientMessageForSingleRecipient = exports.sealedSenderMultiRecipientEncrypt = void 0; | ||
const uuid = require("uuid"); | ||
@@ -194,2 +194,50 @@ const Errors = require("./Errors"); | ||
exports.PrivateKey = PrivateKey; | ||
class KEMPublicKey { | ||
constructor(handle) { | ||
this._nativeHandle = handle; | ||
} | ||
static _fromNativeHandle(handle) { | ||
return new KEMPublicKey(handle); | ||
} | ||
static deserialize(buf) { | ||
return new KEMPublicKey(Native.KyberPublicKey_Deserialize(buf)); | ||
} | ||
serialize() { | ||
return Native.KyberPublicKey_Serialize(this); | ||
} | ||
} | ||
exports.KEMPublicKey = KEMPublicKey; | ||
class KEMSecretKey { | ||
constructor(handle) { | ||
this._nativeHandle = handle; | ||
} | ||
static _fromNativeHandle(handle) { | ||
return new KEMSecretKey(handle); | ||
} | ||
static deserialize(buf) { | ||
return new KEMSecretKey(Native.KyberSecretKey_Deserialize(buf)); | ||
} | ||
serialize() { | ||
return Native.KyberSecretKey_Serialize(this); | ||
} | ||
} | ||
exports.KEMSecretKey = KEMSecretKey; | ||
class KEMKeyPair { | ||
constructor(handle) { | ||
this._nativeHandle = handle; | ||
} | ||
static _fromNativeHandle(handle) { | ||
return new KEMKeyPair(handle); | ||
} | ||
static generate() { | ||
return new KEMKeyPair(Native.KyberKeyPair_Generate()); | ||
} | ||
getPublicKey() { | ||
return KEMPublicKey._fromNativeHandle(Native.KyberKeyPair_GetPublicKey(this)); | ||
} | ||
getSecretKey() { | ||
return KEMSecretKey._fromNativeHandle(Native.KyberKeyPair_GetSecretKey(this)); | ||
} | ||
} | ||
exports.KEMKeyPair = KEMKeyPair; | ||
class IdentityKeyPair { | ||
@@ -220,6 +268,6 @@ constructor(publicKey, privateKey) { | ||
} | ||
static new(registration_id, device_id, prekey_id, prekey, signed_prekey_id, signed_prekey, signed_prekey_signature, identity_key) { | ||
static new(registration_id, device_id, prekey_id, prekey, signed_prekey_id, signed_prekey, signed_prekey_signature, identity_key, kyber_prekey_id, kyber_prekey, kyber_prekey_signature) { | ||
return new PreKeyBundle(Native.PreKeyBundle_New(registration_id, device_id, prekey_id, prekey != null ? prekey : null, | ||
//prekey?, | ||
signed_prekey_id, signed_prekey, signed_prekey_signature, identity_key)); | ||
signed_prekey_id, signed_prekey, signed_prekey_signature, identity_key, kyber_prekey_id !== null && kyber_prekey_id !== void 0 ? kyber_prekey_id : null, kyber_prekey !== null && kyber_prekey !== void 0 ? kyber_prekey : null, kyber_prekey_signature !== null && kyber_prekey_signature !== void 0 ? kyber_prekey_signature : Buffer.alloc(0))); | ||
} | ||
@@ -256,2 +304,13 @@ deviceId() { | ||
} | ||
kyberPreKeyId() { | ||
return Native.PreKeyBundle_GetKyberPreKeyId(this); | ||
} | ||
kyberPreKeyPublic() { | ||
const handle = Native.PreKeyBundle_GetKyberPreKeyPublic(this); | ||
return handle == null ? null : KEMPublicKey._fromNativeHandle(handle); | ||
} | ||
kyberPreKeySignature() { | ||
const buf = Native.PreKeyBundle_GetKyberPreKeySignature(this); | ||
return buf.length == 0 ? null : buf; | ||
} | ||
} | ||
@@ -319,2 +378,38 @@ exports.PreKeyBundle = PreKeyBundle; | ||
exports.SignedPreKeyRecord = SignedPreKeyRecord; | ||
class KyberPreKeyRecord { | ||
constructor(handle) { | ||
this._nativeHandle = handle; | ||
} | ||
static _fromNativeHandle(nativeHandle) { | ||
return new KyberPreKeyRecord(nativeHandle); | ||
} | ||
static new(id, timestamp, keyPair, signature) { | ||
return new KyberPreKeyRecord(Native.KyberPreKeyRecord_New(id, timestamp, keyPair, signature)); | ||
} | ||
serialize() { | ||
return Native.KyberPreKeyRecord_Serialize(this); | ||
} | ||
static deserialize(buffer) { | ||
return new KyberPreKeyRecord(Native.KyberPreKeyRecord_Deserialize(buffer)); | ||
} | ||
id() { | ||
return Native.KyberPreKeyRecord_GetId(this); | ||
} | ||
keyPair() { | ||
return KEMKeyPair._fromNativeHandle(Native.KyberPreKeyRecord_GetKeyPair(this)); | ||
} | ||
publicKey() { | ||
return KEMPublicKey._fromNativeHandle(Native.KyberPreKeyRecord_GetPublicKey(this)); | ||
} | ||
secretKey() { | ||
return KEMSecretKey._fromNativeHandle(Native.KyberPreKeyRecord_GetSecretKey(this)); | ||
} | ||
signature() { | ||
return Native.KyberPreKeyRecord_GetSignature(this); | ||
} | ||
timestamp() { | ||
return Native.KyberPreKeyRecord_GetTimestamp(this); | ||
} | ||
} | ||
exports.KyberPreKeyRecord = KyberPreKeyRecord; | ||
class SignalMessage { | ||
@@ -684,2 +779,21 @@ constructor(handle) { | ||
exports.SignedPreKeyStore = SignedPreKeyStore; | ||
class KyberPreKeyStore { | ||
_saveKyberPreKey(kyberPreKeyId, record) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.saveKyberPreKey(kyberPreKeyId, KyberPreKeyRecord._fromNativeHandle(record)); | ||
}); | ||
} | ||
_getKyberPreKey(kyberPreKeyId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const prekey = yield this.getKyberPreKey(kyberPreKeyId); | ||
return prekey._nativeHandle; | ||
}); | ||
} | ||
_markKyberPreKeyUsed(kyberPreKeyId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.markKyberPreKeyUsed(kyberPreKeyId); | ||
}); | ||
} | ||
} | ||
exports.KyberPreKeyStore = KyberPreKeyStore; | ||
class SenderKeyStore { | ||
@@ -826,4 +940,4 @@ _saveSenderKey(sender, distributionId, record) { | ||
exports.signalDecrypt = signalDecrypt; | ||
function signalDecryptPreKey(message, address, sessionStore, identityStore, prekeyStore, signedPrekeyStore) { | ||
return Native.SessionCipher_DecryptPreKeySignalMessage(message, address, sessionStore, identityStore, prekeyStore, signedPrekeyStore, null); | ||
function signalDecryptPreKey(message, address, sessionStore, identityStore, prekeyStore, signedPrekeyStore, kyberPrekeyStore) { | ||
return Native.SessionCipher_DecryptPreKeySignalMessage(message, address, sessionStore, identityStore, prekeyStore, signedPrekeyStore, kyberPrekeyStore, null); | ||
} | ||
@@ -855,5 +969,5 @@ exports.signalDecryptPreKey = signalDecryptPreKey; | ||
exports.sealedSenderMultiRecipientMessageForSingleRecipient = sealedSenderMultiRecipientMessageForSingleRecipient; | ||
function sealedSenderDecryptMessage(message, trustRoot, timestamp, localE164, localUuid, localDeviceId, sessionStore, identityStore, prekeyStore, signedPrekeyStore) { | ||
function sealedSenderDecryptMessage(message, trustRoot, timestamp, localE164, localUuid, localDeviceId, sessionStore, identityStore, prekeyStore, signedPrekeyStore, kyberPrekeyStore) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const ssdr = yield Native.SealedSender_DecryptMessage(message, trustRoot, timestamp, localE164, localUuid, localDeviceId, sessionStore, identityStore, prekeyStore, signedPrekeyStore); | ||
const ssdr = yield Native.SealedSender_DecryptMessage(message, trustRoot, timestamp, localE164, localUuid, localDeviceId, sessionStore, identityStore, prekeyStore, signedPrekeyStore, kyberPrekeyStore); | ||
return SealedSenderDecryptionResult._fromNativeHandle(ssdr); | ||
@@ -860,0 +974,0 @@ }); |
@@ -38,2 +38,8 @@ // | ||
export abstract class KyberPreKeyStore { | ||
_saveKyberPreKey(kyberPreKeyId: number, record: KyberPreKeyRecord): Promise<void>; | ||
_getKyberPreKey(kyberPreKeyId: number): Promise<KyberPreKeyRecord>; | ||
_markKyberPreKeyUsed(kyberPreKeyId: number): Promise<void>; | ||
} | ||
export abstract class SenderKeyStore { | ||
@@ -145,2 +151,19 @@ _saveSenderKey(sender: ProtocolAddress, distributionId: Uuid, record: SenderKeyRecord): Promise<void>; | ||
export function IncrementalMac_Update(mac: Wrapper<IncrementalMac>, bytes: Buffer, offset: number, length: number): Buffer; | ||
export function KyberKeyPair_Generate(): KyberKeyPair; | ||
export function KyberKeyPair_GetPublicKey(keyPair: Wrapper<KyberKeyPair>): KyberPublicKey; | ||
export function KyberKeyPair_GetSecretKey(keyPair: Wrapper<KyberKeyPair>): KyberSecretKey; | ||
export function KyberPreKeyRecord_Deserialize(data: Buffer): KyberPreKeyRecord; | ||
export function KyberPreKeyRecord_GetId(obj: Wrapper<KyberPreKeyRecord>): number; | ||
export function KyberPreKeyRecord_GetKeyPair(obj: Wrapper<KyberPreKeyRecord>): KyberKeyPair; | ||
export function KyberPreKeyRecord_GetPublicKey(obj: Wrapper<KyberPreKeyRecord>): KyberPublicKey; | ||
export function KyberPreKeyRecord_GetSecretKey(obj: Wrapper<KyberPreKeyRecord>): KyberSecretKey; | ||
export function KyberPreKeyRecord_GetSignature(obj: Wrapper<KyberPreKeyRecord>): Buffer; | ||
export function KyberPreKeyRecord_GetTimestamp(obj: Wrapper<KyberPreKeyRecord>): Timestamp; | ||
export function KyberPreKeyRecord_New(id: number, timestamp: Timestamp, keyPair: Wrapper<KyberKeyPair>, signature: Buffer): KyberPreKeyRecord; | ||
export function KyberPreKeyRecord_Serialize(obj: Wrapper<KyberPreKeyRecord>): Buffer; | ||
export function KyberPublicKey_Deserialize(data: Buffer): KyberPublicKey; | ||
export function KyberPublicKey_Equals(lhs: Wrapper<KyberPublicKey>, rhs: Wrapper<KyberPublicKey>): boolean; | ||
export function KyberPublicKey_Serialize(obj: Wrapper<KyberPublicKey>): Buffer; | ||
export function KyberSecretKey_Deserialize(data: Buffer): KyberSecretKey; | ||
export function KyberSecretKey_Serialize(obj: Wrapper<KyberSecretKey>): Buffer; | ||
export function Mp4Sanitizer_Sanitize(input: InputStream, len: Buffer): Promise<SanitizedMetadata>; | ||
@@ -153,2 +176,5 @@ export function PlaintextContent_Deserialize(data: Buffer): PlaintextContent; | ||
export function PreKeyBundle_GetIdentityKey(p: Wrapper<PreKeyBundle>): PublicKey; | ||
export function PreKeyBundle_GetKyberPreKeyId(obj: Wrapper<PreKeyBundle>): number | null; | ||
export function PreKeyBundle_GetKyberPreKeyPublic(bundle: Wrapper<PreKeyBundle>): KyberPublicKey | null; | ||
export function PreKeyBundle_GetKyberPreKeySignature(bundle: Wrapper<PreKeyBundle>): Buffer; | ||
export function PreKeyBundle_GetPreKeyId(obj: Wrapper<PreKeyBundle>): number | null; | ||
@@ -160,3 +186,3 @@ export function PreKeyBundle_GetPreKeyPublic(obj: Wrapper<PreKeyBundle>): PublicKey | null; | ||
export function PreKeyBundle_GetSignedPreKeySignature(obj: Wrapper<PreKeyBundle>): Buffer; | ||
export function PreKeyBundle_New(registrationId: number, deviceId: number, prekeyId: number | null, prekey: Wrapper<PublicKey> | null, signedPrekeyId: number, signedPrekey: Wrapper<PublicKey>, signedPrekeySignature: Buffer, identityKey: Wrapper<PublicKey>): PreKeyBundle; | ||
export function PreKeyBundle_New(registrationId: number, deviceId: number, prekeyId: number | null, prekey: Wrapper<PublicKey> | null, signedPrekeyId: number, signedPrekey: Wrapper<PublicKey>, signedPrekeySignature: Buffer, identityKey: Wrapper<PublicKey>, kyberPrekeyId: number | null, kyberPrekey: Wrapper<KyberPublicKey> | null, kyberPrekeySignature: Buffer): PreKeyBundle; | ||
export function PreKeyRecord_Deserialize(data: Buffer): PreKeyRecord; | ||
@@ -221,3 +247,3 @@ export function PreKeyRecord_GetId(obj: Wrapper<PreKeyRecord>): number; | ||
export function SealedSenderDecryptionResult_Message(obj: Wrapper<SealedSenderDecryptionResult>): Buffer; | ||
export function SealedSender_DecryptMessage(message: Buffer, trustRoot: Wrapper<PublicKey>, timestamp: Timestamp, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore): Promise<SealedSenderDecryptionResult>; | ||
export function SealedSender_DecryptMessage(message: Buffer, trustRoot: Wrapper<PublicKey>, timestamp: Timestamp, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore): Promise<SealedSenderDecryptionResult>; | ||
export function SealedSender_DecryptToUsmc(ctext: Buffer, identityStore: IdentityKeyStore, ctx: null): Promise<UnidentifiedSenderMessageContent>; | ||
@@ -289,3 +315,3 @@ export function SealedSender_Encrypt(destination: Wrapper<ProtocolAddress>, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore, ctx: null): Promise<Buffer>; | ||
export function SessionBuilder_ProcessPreKeyBundle(bundle: Wrapper<PreKeyBundle>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, ctx: null): Promise<void>; | ||
export function SessionCipher_DecryptPreKeySignalMessage(message: Wrapper<PreKeySignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, ctx: null): Promise<Buffer>; | ||
export function SessionCipher_DecryptPreKeySignalMessage(message: Wrapper<PreKeySignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore, ctx: null): Promise<Buffer>; | ||
export function SessionCipher_DecryptSignalMessage(message: Wrapper<SignalMessage>, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, ctx: null): Promise<Buffer>; | ||
@@ -352,2 +378,6 @@ export function SessionCipher_EncryptMessage(ptext: Buffer, protocolAddress: Wrapper<ProtocolAddress>, sessionStore: SessionStore, identityKeyStore: IdentityKeyStore, ctx: null): Promise<CiphertextMessage>; | ||
interface IncrementalMac { readonly __type: unique symbol; } | ||
interface KyberKeyPair { readonly __type: unique symbol; } | ||
interface KyberPreKeyRecord { readonly __type: unique symbol; } | ||
interface KyberPublicKey { readonly __type: unique symbol; } | ||
interface KyberSecretKey { readonly __type: unique symbol; } | ||
interface PlaintextContent { readonly __type: unique symbol; } | ||
@@ -354,0 +384,0 @@ interface PreKeyBundle { readonly __type: unique symbol; } |
{ | ||
"name": "@signalapp/libsignal-client", | ||
"version": "0.26.0", | ||
"version": "0.27.0", | ||
"license": "AGPL-3.0-only", | ||
@@ -35,2 +35,3 @@ "main": "dist/index.js", | ||
"@types/chai-as-promised": "^7.1.3", | ||
"@types/chance": "^1.1.3", | ||
"@types/mocha": "^5.2.7", | ||
@@ -43,2 +44,3 @@ "@types/node": "16.18.3", | ||
"chai-as-promised": "^7.1.1", | ||
"chance": "^1.1.11", | ||
"eslint": "^8.30.0", | ||
@@ -45,0 +47,0 @@ "eslint-config-prettier": "^8.5.0", |
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 6 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
36514297
4185
81
24
6