libsignal-protocol-java icon indicating copy to clipboard operation
libsignal-protocol-java copied to clipboard

Handle the case of a missing group session signature key

Open dkonigsberg opened this issue 8 years ago • 0 comments

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.

dkonigsberg avatar Mar 02 '17 17:03 dkonigsberg