mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-26 09:45:16 +02:00
1:1 decryption takes local address
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user