Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Handle the case of a missing group session signature key #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dkonigsberg
Copy link

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.

If we get into a state where the group session lacks a signature key,
make sure the encrypt fails with an InvalidKeyException. This allows the
code calling encrypt() to handle the condition by clearing the session.

We can get into this state if we try to encrypt a message from a session
that was previously used for decrypting messages.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant