mirror of
https://github.com/signalapp/libsignal.git
synced 2026-05-09 08:33:13 +02:00
Both the Android and iOS clients currently allow customizing this validatation logic for testing purposes, and iOS additionally wants to log the information about the unwrapped message even if there are problems with it. iOS does also currently log information about the unwrapped message even if the static key being used is wrong, but in order to fix that we'd have to have a secondary return value (either the expected static key, computed during decrypt-to-USMC, or a flag saying whether the comparison failed).