Validate signatures in try_decrypt() even if the message isn't encrypted (#3844)

This way we don't need a separate code path for signatures validation for unencrypted
messages. Also, now we degrade encryption only if there are no valid signatures, so the code for
upgrading encryption back isn't needed.
This commit is contained in:
iequidoo
2022-12-20 16:00:33 -03:00
parent 1f7ad78f40
commit ba82ce2798
3 changed files with 107 additions and 154 deletions

View File

@@ -3,6 +3,7 @@
## Unreleased
### Changes
- Validate signatures in try_decrypt() even if the message isn't encrypted #3859
### API-Changes