don't check session for symmetric key tagset. re-create tags hash if too many used tags

This commit is contained in:
orignal 2024-02-16 21:30:40 -05:00
parent 900153765a
commit 2b6a95cbee
4 changed files with 52 additions and 23 deletions

View file

@ -117,6 +117,12 @@ namespace garlic
return session->HandleNextMessage (buf, len, shared_from_this (), index);
}
bool ReceiveRatchetTagSet::IsSessionTerminated () const
{
return !m_Session || m_Session->IsTerminated ();
}
SymmetricKeyTagSet::SymmetricKeyTagSet (GarlicDestination * destination, const uint8_t * key):
ReceiveRatchetTagSet (nullptr), m_Destination (destination)
{