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

@@ -48,12 +48,14 @@ pub async fn encrypt(
pub async fn decrypt(
store: &mut InMemSignalProtocolStore,
remote_address: &ProtocolAddress,
local_address: &ProtocolAddress,
msg: &CiphertextMessage,
) -> Result<Vec<u8>, SignalProtocolError> {
let mut csprng = OsRng.unwrap_err();
message_decrypt(
msg,
remote_address,
local_address,
&mut store.session_store,
&mut store.identity_store,
&mut store.pre_key_store,