1:1 decryption takes local address

This commit is contained in:
Rolfe Schmidt
2026-03-27 15:45:07 -07:00
committed by GitHub
parent 955e4c9f1d
commit 98794de745
34 changed files with 611 additions and 161 deletions

View File

@@ -14,7 +14,13 @@ pub trait LibSignalProtocolStore {
fn create_pre_key_bundle(&mut self) -> PreKeyBundle;
fn process_pre_key_bundle(&mut self, remote: &str, pre_key_bundle: PreKeyBundle);
fn encrypt(&mut self, remote: &str, msg: &[u8]) -> (Vec<u8>, CiphertextMessageType);
fn decrypt(&mut self, remote: &str, msg: &[u8], msg_type: CiphertextMessageType) -> Vec<u8>;
fn decrypt(
&mut self,
remote: &str,
local: &str,
msg: &[u8],
msg_type: CiphertextMessageType,
) -> Vec<u8>;
fn encrypt_sealed_sender_v1(
&self,