libsignal-protocol-java
libsignal-protocol-java copied to clipboard
Handle the case of a missing group session signature key
If the library gets into a state where the group session lacks a signature key, make sure that encrypt fails with an InvalidKeyException. This allows the code calling encrypt() to handle the condition by clearing the session.
The library can most easily get into this state if you try to encrypt a message from a session that was previously used for decrypting messages.